2026-04-21 16:47:52,020 - INFO - Domain Default found not creating 2026-04-21 16:47:52,195 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65837266 not found, creating it 2026-04-21 16:47:52,686 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65837266, ID : 053a70ff-3045-4507-bfe3-96fb20cb175b 2026-04-21 16:47:54,415 - INFO - ================================================================================ 2026-04-21 16:47:54,416 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-21 16:47:54,694 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-21 16:47:54,694 - INFO - Initial checks done. Running the testcase now 2026-04-21 16:47:54,694 - INFO - 2026-04-21 16:47:54,694 - INFO - ================================================================================ 2026-04-21 16:47:54,694 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-21 16:47:54,694 - 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-04-21 16:47:54,983 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-04-21 16:47:54,984 - INFO - Initial checks done. Running the testcase now 2026-04-21 16:47:54,984 - INFO - 2026-04-21 16:47:55,396 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65837266:ctest-vn4-07865122, 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-65837266:ctest-vn4-07865122, 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-65837266:ctest-vn4-07865122, 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-65837266:ctest-vn4-07865122, 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-04-21 16:47:55,939 - DEBUG - Response for create_network : {'network': {'id': 'ab3540b9-7ddf-42ad-a97d-250e0e6679e1', 'name': 'ctest-vn4-07865122', 'tenant_id': '053a70ff30454507bfe396fb20cb175b', 'project_id': '053a70ff30454507bfe396fb20cb175b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65837266', 'ctest-vn4-07865122'], 'port_security_enabled': True, 'description': ''}} 2026-04-21 16:47:56,116 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a3a7921-0af1-477c-9f1d-632ed4252ef3', 'name': '', 'tenant_id': '053a70ff30454507bfe396fb20cb175b', 'network_id': 'ab3540b9-7ddf-42ad-a97d-250e0e6679e1', 'ip_version': 4, 'cidr': '13.243.190.64/26', 'allocation_pools': [{'start': '13.243.190.66', 'end': '13.243.190.126'}], 'gateway_ip': '13.243.190.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '13.243.190.66', 'tags': [], 'project_id': '053a70ff30454507bfe396fb20cb175b'}} 2026-04-21 16:47:56,290 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f45bc8e-ee9e-4538-a3f3-753d96976a04', 'name': '', 'tenant_id': '053a70ff30454507bfe396fb20cb175b', 'network_id': 'ab3540b9-7ddf-42ad-a97d-250e0e6679e1', 'ip_version': 6, 'cidr': '3f75:1df1:a200:35cc:7529:86bd::/96', 'allocation_pools': [{'start': '3f75:1df1:a200:35cc:7529:86bd:0:2', 'end': '3f75:1df1:a200:35cc:7529:86bd:ffff:fffe'}], 'gateway_ip': '3f75:1df1:a200:35cc:7529:86bd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f75:1df1:a200:35cc:7529:86bd:0:2', 'tags': [], 'project_id': '053a70ff30454507bfe396fb20cb175b'}} 2026-04-21 16:47:56,314 - INFO - Created VN ctest-vn4-07865122 2026-04-21 16:47:56,370 - DEBUG - VN ctest-vn4-07865122 UUID is ab3540b9-7ddf-42ad-a97d-250e0e6679e1 2026-04-21 16:47:56,587 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab3540b9-7ddf-42ad-a97d-250e0e6679e1', 'name': 'ctest-vn4-07865122', 'tenant_id': '053a70ff30454507bfe396fb20cb175b', 'project_id': '053a70ff30454507bfe396fb20cb175b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5a3a7921-0af1-477c-9f1d-632ed4252ef3', '0f45bc8e-ee9e-4538-a3f3-753d96976a04'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65837266', 'ctest-vn4-07865122'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65837266', 'ctest-policy1-35378082']], 'subnet_ipam': [{'subnet_cidr': '13.243.190.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f75:1df1:a200:35cc:7529:86bd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-21 16:47:56,754 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-21 16:47:57,093 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-21 16:47:57,128 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8d46f45d-e3ab-45ce-9e96-d142eb89fe68 2026-04-21 16:47:57,141 - DEBUG - Requesting: http://10.0.0.50:8082/project/053a70ff-3045-4507-bfe3-96fb20cb175b 2026-04-21 16:47:57,217 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab3540b9-7ddf-42ad-a97d-250e0e6679e1 2026-04-21 16:47:57,231 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab3540b9-7ddf-42ad-a97d-250e0e6679e1 2026-04-21 16:47:57,242 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fffd7276-3fc1-41bd-ba7e-2052ce62a11c 2026-04-21 16:47:57,251 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fffd7276-3fc1-41bd-ba7e-2052ce62a11c 2026-04-21 16:47:57,260 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a7428e67-f644-4cce-a93e-9152992b2b6b 2026-04-21 16:47:57,267 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-21 16:47:57,267 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab3540b9-7ddf-42ad-a97d-250e0e6679e1 2026-04-21 16:47:57,278 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fffd7276-3fc1-41bd-ba7e-2052ce62a11c 2026-04-21 16:47:57,294 - INFO - Verified VN network id 12 for VN ab3540b9-7ddf-42ad-a97d-250e0e6679e1 2026-04-21 16:47:57,294 - INFO - Verifications in API Server for VN ctest-vn4-07865122 passed 2026-04-21 16:47:57,294 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab3540b9-7ddf-42ad-a97d-250e0e6679e1 2026-04-21 16:47:57,305 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fffd7276-3fc1-41bd-ba7e-2052ce62a11c 2026-04-21 16:47:57,313 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fffd7276-3fc1-41bd-ba7e-2052ce62a11c 2026-04-21 16:47:57,320 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/a7428e67-f644-4cce-a93e-9152992b2b6b 2026-04-21 16:47:57,336 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65837266:ctest-vn4-07865122', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65837266', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12336837919676252845', 'uuid-lslong': '12212958506800019937'}, 'enable': 'true', 'created': '2026-04-21T16:47:55', 'last-modified': '2026-04-21T16:47:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778054'} 2026-04-21 16:47:57,344 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-21 16:47:57,344 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07865122 passed 2026-04-21 16:47:57,344 - DEBUG - ====Verifying policy data for ctest-vn4-07865122 in API_Server ====== 2026-04-21 16:47:57,344 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-21 16:47:57,353 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8d46f45d-e3ab-45ce-9e96-d142eb89fe68 2026-04-21 16:47:57,367 - DEBUG - Requesting: http://10.0.0.50:8082/project/053a70ff-3045-4507-bfe3-96fb20cb175b 2026-04-21 16:47:57,449 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab3540b9-7ddf-42ad-a97d-250e0e6679e1 2026-04-21 16:47:57,461 - DEBUG - ==>Verifying data for policy with id: c33d007e-c1b0-4ffa-bb28-f71c0621d109, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65837266', 'ctest-policy1-35378082'] 2026-04-21 16:47:57,461 - INFO - VN ctest-vn4-07865122 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-21 16:47:57,461 - DEBUG - Verifying the vn in opserver 2026-04-21 16:47:57,461 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65837266:ctest-vn4-07865122 virtual network link through opserver 10.0.0.50 2026-04-21 16:47:57,461 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-21 16:47:57,821 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-04-21 16:47:57,890 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65837266:ctest-vn4-07865122', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65837266:ctest-vn4-07865122?flat'} 2026-04-21 16:47:57,890 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65837266:ctest-vn4-07865122 is found in opserver 2026-04-21 16:47:57,901 - DEBUG - Do not have enough data to verify VN in agent 2026-04-21 16:47:57,905 - DEBUG - VRF ids for VN ctest-vn4-07865122: {} 2026-04-21 16:47:57,906 - DEBUG - ====Verifying data for ctest-policy1-35378082 in API_Server ====== 2026-04-21 16:47:57,906 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-21 16:47:57,912 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8d46f45d-e3ab-45ce-9e96-d142eb89fe68 2026-04-21 16:47:57,922 - DEBUG - Requesting: http://10.0.0.50:8082/project/053a70ff-3045-4507-bfe3-96fb20cb175b 2026-04-21 16:47:58,007 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/c33d007e-c1b0-4ffa-bb28-f71c0621d109 2026-04-21 16:47:58,018 - INFO - Verified policy ctest-policy1-35378082 in API Server, Result: True 2026-04-21 16:47:58,018 - INFO - Done with setup and verification, moving onto test .. 2026-04-21 16:47:58,027 - INFO - Deleting VN ctest-vn4-07865122 2026-04-21 16:47:58,153 - DEBUG - Response for deleting network () 2026-04-21 16:47:58,154 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fffd7276-3fc1-41bd-ba7e-2052ce62a11c 2026-04-21 16:47:58,159 - DEBUG - Response Code: 404 2026-04-21 16:47:58,159 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-04-21 16:47:58,165 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8d46f45d-e3ab-45ce-9e96-d142eb89fe68 2026-04-21 16:47:58,222 - DEBUG - Requesting: http://10.0.0.50:8082/project/053a70ff-3045-4507-bfe3-96fb20cb175b 2026-04-21 16:47:58,295 - INFO - Validated that VN ctest-vn4-07865122 is not found in API Server 2026-04-21 16:47:58,307 - DEBUG - VN ctest-vn4-07865122 is not present in Agent 10.0.0.50 2026-04-21 16:47:58,307 - INFO - Validated that VN ctest-vn4-07865122 is not in any agent 2026-04-21 16:47:58,330 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07865122 info 2026-04-21 16:47:58,355 - INFO - Deleted policy ctest-policy1-35378082 2026-04-21 16:47:58,525 - DEBUG - policy ctest-policy1-35378082 is not found in API Server 2026-04-21 16:47:58,794 - DEBUG - No XMPP flaps were noticed during the test 2026-04-21 16:47:58,794 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-04-21 16:47:58,794 - INFO - -------------------------------------------------------------------------------- 2026-04-21 16:47:59,090 - DEBUG - No XMPP flaps were noticed during the test 2026-04-21 16:47:59,090 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-04-21 16:47:59,090 - INFO - -------------------------------------------------------------------------------- 2026-04-21 16:47:59,843 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-65837266, ID : 053a70ff-3045-4507-bfe3-96fb20cb175b