2026-01-20 10:30:03,024 - INFO - Domain Default found not creating 2026-01-20 10:30:03,190 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-25280322 not found, creating it 2026-01-20 10:30:03,646 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-25280322, ID : cd3d5e2a-20d7-47ee-b8c8-fb251cc67370 2026-01-20 10:30:05,094 - INFO - ================================================================================ 2026-01-20 10:30:05,094 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-20 10:30:05,353 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-01-20 10:30:05,353 - INFO - Initial checks done. Running the testcase now 2026-01-20 10:30:05,353 - INFO - 2026-01-20 10:30:05,353 - INFO - ================================================================================ 2026-01-20 10:30:05,353 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-20 10:30:05,353 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2026-01-20 10:30:05,642 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2026-01-20 10:30:05,642 - INFO - Initial checks done. Running the testcase now 2026-01-20 10:30:05,642 - INFO - 2026-01-20 10:30:06,010 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25280322:ctest-vn4-31916167, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25280322:ctest-vn4-31916167, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25280322:ctest-vn4-31916167, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25280322:ctest-vn4-31916167, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2026-01-20 10:30:06,508 - DEBUG - Response for create_network : {'network': {'id': '5ef3ad5b-627d-4047-b9f3-24e475d16370', 'name': 'ctest-vn4-31916167', 'tenant_id': 'cd3d5e2a20d747eeb8c8fb251cc67370', 'project_id': 'cd3d5e2a20d747eeb8c8fb251cc67370', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25280322', 'ctest-vn4-31916167'], 'port_security_enabled': True, 'description': ''}} 2026-01-20 10:30:06,653 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e16f0aa1-caee-421b-8cc3-714a1cd6874b', 'name': '', 'tenant_id': 'cd3d5e2a20d747eeb8c8fb251cc67370', 'network_id': '5ef3ad5b-627d-4047-b9f3-24e475d16370', 'ip_version': 4, 'cidr': '183.159.179.0/26', 'allocation_pools': [{'start': '183.159.179.2', 'end': '183.159.179.62'}], 'gateway_ip': '183.159.179.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '183.159.179.2', 'tags': [], 'project_id': 'cd3d5e2a20d747eeb8c8fb251cc67370'}} 2026-01-20 10:30:06,820 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bb0902c8-6fe1-4c8b-b672-95cdb34ca528', 'name': '', 'tenant_id': 'cd3d5e2a20d747eeb8c8fb251cc67370', 'network_id': '5ef3ad5b-627d-4047-b9f3-24e475d16370', 'ip_version': 6, 'cidr': '3d6e:6230:88ad:b24f:fc05:54a2::/96', 'allocation_pools': [{'start': '3d6e:6230:88ad:b24f:fc05:54a2:0:2', 'end': '3d6e:6230:88ad:b24f:fc05:54a2:ffff:fffe'}], 'gateway_ip': '3d6e:6230:88ad:b24f:fc05:54a2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d6e:6230:88ad:b24f:fc05:54a2:0:2', 'tags': [], 'project_id': 'cd3d5e2a20d747eeb8c8fb251cc67370'}} 2026-01-20 10:30:06,840 - INFO - Created VN ctest-vn4-31916167 2026-01-20 10:30:06,892 - DEBUG - VN ctest-vn4-31916167 UUID is 5ef3ad5b-627d-4047-b9f3-24e475d16370 2026-01-20 10:30:07,073 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5ef3ad5b-627d-4047-b9f3-24e475d16370', 'name': 'ctest-vn4-31916167', 'tenant_id': 'cd3d5e2a20d747eeb8c8fb251cc67370', 'project_id': 'cd3d5e2a20d747eeb8c8fb251cc67370', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e16f0aa1-caee-421b-8cc3-714a1cd6874b', 'bb0902c8-6fe1-4c8b-b672-95cdb34ca528'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25280322', 'ctest-vn4-31916167'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25280322', 'ctest-policy1-97668475']], 'subnet_ipam': [{'subnet_cidr': '183.159.179.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d6e:6230:88ad:b24f:fc05:54a2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-20 10:30:07,228 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 10:30:07,526 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 10:30:07,552 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7018251f-5a66-4dc2-8254-c9c84769efc9 2026-01-20 10:30:07,563 - DEBUG - Requesting: http://10.0.0.38:8082/project/cd3d5e2a-20d7-47ee-b8c8-fb251cc67370 2026-01-20 10:30:07,633 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5ef3ad5b-627d-4047-b9f3-24e475d16370 2026-01-20 10:30:07,643 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5ef3ad5b-627d-4047-b9f3-24e475d16370 2026-01-20 10:30:07,651 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2382208b-ecff-4737-b453-bda1ce044183 2026-01-20 10:30:07,657 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2382208b-ecff-4737-b453-bda1ce044183 2026-01-20 10:30:07,663 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c240d417-7dbb-4ad1-a3d6-cf25cf7c49a1 2026-01-20 10:30:07,668 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-20 10:30:07,668 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5ef3ad5b-627d-4047-b9f3-24e475d16370 2026-01-20 10:30:07,676 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2382208b-ecff-4737-b453-bda1ce044183 2026-01-20 10:30:07,689 - INFO - Verified VN network id 12 for VN 5ef3ad5b-627d-4047-b9f3-24e475d16370 2026-01-20 10:30:07,689 - INFO - Verifications in API Server for VN ctest-vn4-31916167 passed 2026-01-20 10:30:07,689 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5ef3ad5b-627d-4047-b9f3-24e475d16370 2026-01-20 10:30:07,699 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2382208b-ecff-4737-b453-bda1ce044183 2026-01-20 10:30:07,705 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2382208b-ecff-4737-b453-bda1ce044183 2026-01-20 10:30:07,711 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c240d417-7dbb-4ad1-a3d6-cf25cf7c49a1 2026-01-20 10:30:07,721 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25280322:ctest-vn4-31916167', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-25280322', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6842002866911920199', 'uuid-lslong': '13399093880005157744'}, 'enable': 'true', 'created': '2026-01-20T10:30:06', 'last-modified': '2026-01-20T10:30:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.672742'} 2026-01-20 10:30:07,727 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-20 10:30:07,728 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-31916167 passed 2026-01-20 10:30:07,728 - DEBUG - ====Verifying policy data for ctest-vn4-31916167 in API_Server ====== 2026-01-20 10:30:07,728 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 10:30:07,734 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7018251f-5a66-4dc2-8254-c9c84769efc9 2026-01-20 10:30:07,743 - DEBUG - Requesting: http://10.0.0.38:8082/project/cd3d5e2a-20d7-47ee-b8c8-fb251cc67370 2026-01-20 10:30:07,815 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/5ef3ad5b-627d-4047-b9f3-24e475d16370 2026-01-20 10:30:07,824 - DEBUG - ==>Verifying data for policy with id: acba0fa8-a062-419b-9ee1-11e37dd68c43, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-25280322', 'ctest-policy1-97668475'] 2026-01-20 10:30:07,824 - INFO - VN ctest-vn4-31916167 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-20 10:30:07,824 - DEBUG - Verifying the vn in opserver 2026-01-20 10:30:07,824 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25280322:ctest-vn4-31916167 virtual network link through opserver 10.0.0.38 2026-01-20 10:30:07,824 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-20 10:30:08,115 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-01-20 10:30:08,175 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25280322:ctest-vn4-31916167', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25280322:ctest-vn4-31916167?flat'} 2026-01-20 10:30:08,175 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-25280322:ctest-vn4-31916167 is found in opserver 2026-01-20 10:30:08,183 - DEBUG - Do not have enough data to verify VN in agent 2026-01-20 10:30:08,187 - DEBUG - VRF ids for VN ctest-vn4-31916167: {} 2026-01-20 10:30:08,187 - DEBUG - ====Verifying data for ctest-policy1-97668475 in API_Server ====== 2026-01-20 10:30:08,187 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 10:30:08,192 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7018251f-5a66-4dc2-8254-c9c84769efc9 2026-01-20 10:30:08,201 - DEBUG - Requesting: http://10.0.0.38:8082/project/cd3d5e2a-20d7-47ee-b8c8-fb251cc67370 2026-01-20 10:30:08,270 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/acba0fa8-a062-419b-9ee1-11e37dd68c43 2026-01-20 10:30:08,278 - INFO - Verified policy ctest-policy1-97668475 in API Server, Result: True 2026-01-20 10:30:08,278 - INFO - Done with setup and verification, moving onto test .. 2026-01-20 10:30:08,285 - INFO - Deleting VN ctest-vn4-31916167 2026-01-20 10:30:08,393 - DEBUG - Response for deleting network () 2026-01-20 10:30:08,393 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2382208b-ecff-4737-b453-bda1ce044183 2026-01-20 10:30:08,398 - DEBUG - Response Code: 404 2026-01-20 10:30:08,398 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-01-20 10:30:08,404 - DEBUG - Requesting: http://10.0.0.38:8082/domain/7018251f-5a66-4dc2-8254-c9c84769efc9 2026-01-20 10:30:08,457 - DEBUG - Requesting: http://10.0.0.38:8082/project/cd3d5e2a-20d7-47ee-b8c8-fb251cc67370 2026-01-20 10:30:08,522 - INFO - Validated that VN ctest-vn4-31916167 is not found in API Server 2026-01-20 10:30:08,531 - DEBUG - VN ctest-vn4-31916167 is not present in Agent 10.0.0.38 2026-01-20 10:30:08,531 - INFO - Validated that VN ctest-vn4-31916167 is not in any agent 2026-01-20 10:30:08,544 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-31916167 info 2026-01-20 10:30:08,568 - INFO - Deleted policy ctest-policy1-97668475 2026-01-20 10:30:08,732 - DEBUG - policy ctest-policy1-97668475 is not found in API Server 2026-01-20 10:30:08,985 - DEBUG - No XMPP flaps were noticed during the test
2026-01-20 10:30:08,985 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-01-20 10:30:08,985 - INFO - -------------------------------------------------------------------------------- 2026-01-20 10:30:09,272 - DEBUG - No XMPP flaps were noticed during the test
2026-01-20 10:30:09,272 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-20 10:30:09,272 - INFO - -------------------------------------------------------------------------------- 2026-01-20 10:30:09,949 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-25280322, ID : cd3d5e2a-20d7-47ee-b8c8-fb251cc67370