2026-08-18 07:17:23,059 - INFO - Domain Default found not creating 2026-08-18 07:17:23,241 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20394528 not found, creating it 2026-08-18 07:17:23,788 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20394528, ID : 8dac5e5a-b70c-4ffc-abf5-7d2e754d9517 2026-08-18 07:17:25,496 - INFO - ================================================================================ 2026-08-18 07:17:25,496 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-18 07:17:25,773 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0'}} with 2026-08-18 07:17:25,773 - INFO - Initial checks done. Running the testcase now 2026-08-18 07:17:25,773 - INFO - 2026-08-18 07:17:25,773 - INFO - ================================================================================ 2026-08-18 07:17:25,773 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-18 07:17:25,773 - 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-08-18 07:17:26,053 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.25': '0'}} with 2026-08-18 07:17:26,053 - INFO - Initial checks done. Running the testcase now 2026-08-18 07:17:26,053 - INFO - 2026-08-18 07:17:26,487 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20394528:ctest-vn4-09588952, 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-20394528:ctest-vn4-09588952, 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-20394528:ctest-vn4-09588952, 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-20394528:ctest-vn4-09588952, 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-08-18 07:17:27,040 - DEBUG - Response for create_network : {'network': {'id': 'fa730c88-f4ec-4c9a-ad07-2a930cf72e22', 'name': 'ctest-vn4-09588952', 'tenant_id': '8dac5e5ab70c4ffcabf57d2e754d9517', 'project_id': '8dac5e5ab70c4ffcabf57d2e754d9517', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20394528', 'ctest-vn4-09588952'], 'port_security_enabled': True, 'description': ''}} 2026-08-18 07:17:27,278 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e312c64c-e6df-4c02-889b-3dc373250123', 'name': '', 'tenant_id': '8dac5e5ab70c4ffcabf57d2e754d9517', 'network_id': 'fa730c88-f4ec-4c9a-ad07-2a930cf72e22', 'ip_version': 4, 'cidr': '81.238.69.64/26', 'allocation_pools': [{'start': '81.238.69.66', 'end': '81.238.69.126'}], 'gateway_ip': '81.238.69.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '81.238.69.66', 'tags': [], 'project_id': '8dac5e5ab70c4ffcabf57d2e754d9517'}} 2026-08-18 07:17:27,476 - DEBUG - Response for create_subnet : {'subnet': {'id': '2ab8818e-118d-4341-9b81-706dca7b3832', 'name': '', 'tenant_id': '8dac5e5ab70c4ffcabf57d2e754d9517', 'network_id': 'fa730c88-f4ec-4c9a-ad07-2a930cf72e22', 'ip_version': 6, 'cidr': '38b1:7fb4:a15b:415b:3bfd:3431::/96', 'allocation_pools': [{'start': '38b1:7fb4:a15b:415b:3bfd:3431:0:2', 'end': '38b1:7fb4:a15b:415b:3bfd:3431:ffff:fffe'}], 'gateway_ip': '38b1:7fb4:a15b:415b:3bfd:3431:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38b1:7fb4:a15b:415b:3bfd:3431:0:2', 'tags': [], 'project_id': '8dac5e5ab70c4ffcabf57d2e754d9517'}} 2026-08-18 07:17:27,499 - INFO - Created VN ctest-vn4-09588952 2026-08-18 07:17:27,552 - DEBUG - VN ctest-vn4-09588952 UUID is fa730c88-f4ec-4c9a-ad07-2a930cf72e22 2026-08-18 07:17:27,786 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fa730c88-f4ec-4c9a-ad07-2a930cf72e22', 'name': 'ctest-vn4-09588952', 'tenant_id': '8dac5e5ab70c4ffcabf57d2e754d9517', 'project_id': '8dac5e5ab70c4ffcabf57d2e754d9517', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e312c64c-e6df-4c02-889b-3dc373250123', '2ab8818e-118d-4341-9b81-706dca7b3832'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20394528', 'ctest-vn4-09588952'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20394528', 'ctest-policy1-72690440']], 'subnet_ipam': [{'subnet_cidr': '81.238.69.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38b1:7fb4:a15b:415b:3bfd:3431::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-18 07:17:27,960 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-08-18 07:17:28,337 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-08-18 07:17:28,366 - DEBUG - Requesting: http://10.0.0.19:8082/domain/666f98dc-567c-422a-b60e-25c7b36bf4c1 2026-08-18 07:17:28,379 - DEBUG - Requesting: http://10.0.0.19:8082/project/8dac5e5a-b70c-4ffc-abf5-7d2e754d9517 2026-08-18 07:17:28,459 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/fa730c88-f4ec-4c9a-ad07-2a930cf72e22 2026-08-18 07:17:28,473 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/fa730c88-f4ec-4c9a-ad07-2a930cf72e22 2026-08-18 07:17:28,484 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/213bab95-ab3b-47e8-9355-31f9e24fad19 2026-08-18 07:17:28,492 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/213bab95-ab3b-47e8-9355-31f9e24fad19 2026-08-18 07:17:28,499 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/63a1ffe2-41fa-48db-bad6-9f0220c2667d 2026-08-18 07:17:28,506 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-18 07:17:28,506 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/fa730c88-f4ec-4c9a-ad07-2a930cf72e22 2026-08-18 07:17:28,519 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/213bab95-ab3b-47e8-9355-31f9e24fad19 2026-08-18 07:17:28,536 - INFO - Verified VN network id 11 for VN fa730c88-f4ec-4c9a-ad07-2a930cf72e22 2026-08-18 07:17:28,536 - INFO - Verifications in API Server for VN ctest-vn4-09588952 passed 2026-08-18 07:17:28,537 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/fa730c88-f4ec-4c9a-ad07-2a930cf72e22 2026-08-18 07:17:28,548 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/213bab95-ab3b-47e8-9355-31f9e24fad19 2026-08-18 07:17:28,556 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/213bab95-ab3b-47e8-9355-31f9e24fad19 2026-08-18 07:17:28,565 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/63a1ffe2-41fa-48db-bad6-9f0220c2667d 2026-08-18 07:17:28,580 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20394528:ctest-vn4-09588952', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20394528', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18046781914167921818', 'uuid-lslong': '12467980904464592418'}, 'enable': 'true', 'created': '2026-08-18T07:17:26', 'last-modified': '2026-08-18T07:17:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.844300'} 2026-08-18 07:17:28,587 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-18 07:17:28,587 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-09588952 passed 2026-08-18 07:17:28,587 - DEBUG - ====Verifying policy data for ctest-vn4-09588952 in API_Server ====== 2026-08-18 07:17:28,588 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-08-18 07:17:28,594 - DEBUG - Requesting: http://10.0.0.19:8082/domain/666f98dc-567c-422a-b60e-25c7b36bf4c1 2026-08-18 07:17:28,607 - DEBUG - Requesting: http://10.0.0.19:8082/project/8dac5e5a-b70c-4ffc-abf5-7d2e754d9517 2026-08-18 07:17:28,685 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/fa730c88-f4ec-4c9a-ad07-2a930cf72e22 2026-08-18 07:17:28,696 - DEBUG - ==>Verifying data for policy with id: b2ca3742-6f18-4618-b23b-20d2ba4c6c6b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20394528', 'ctest-policy1-72690440'] 2026-08-18 07:17:28,696 - INFO - VN ctest-vn4-09588952 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-18 07:17:28,696 - DEBUG - Verifying the vn in opserver 2026-08-18 07:17:28,696 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20394528:ctest-vn4-09588952 virtual network link through opserver 10.0.0.19 2026-08-18 07:17:28,697 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-08-18 07:17:29,071 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-08-18 07:17:29,134 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20394528:ctest-vn4-09588952', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20394528:ctest-vn4-09588952?flat'} 2026-08-18 07:17:29,135 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20394528:ctest-vn4-09588952 is found in opserver 2026-08-18 07:17:29,147 - DEBUG - Do not have enough data to verify VN in agent 2026-08-18 07:17:29,154 - DEBUG - VRF ids for VN ctest-vn4-09588952: {} 2026-08-18 07:17:29,154 - DEBUG - ====Verifying data for ctest-policy1-72690440 in API_Server ====== 2026-08-18 07:17:29,154 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-08-18 07:17:29,162 - DEBUG - Requesting: http://10.0.0.19:8082/domain/666f98dc-567c-422a-b60e-25c7b36bf4c1 2026-08-18 07:17:29,177 - DEBUG - Requesting: http://10.0.0.19:8082/project/8dac5e5a-b70c-4ffc-abf5-7d2e754d9517 2026-08-18 07:17:29,268 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/b2ca3742-6f18-4618-b23b-20d2ba4c6c6b 2026-08-18 07:17:29,282 - INFO - Verified policy ctest-policy1-72690440 in API Server, Result: True 2026-08-18 07:17:29,282 - INFO - Done with setup and verification, moving onto test .. 2026-08-18 07:17:29,292 - INFO - Deleting VN ctest-vn4-09588952 2026-08-18 07:17:29,449 - DEBUG - Response for deleting network () 2026-08-18 07:17:29,450 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/213bab95-ab3b-47e8-9355-31f9e24fad19 2026-08-18 07:17:29,456 - DEBUG - Response Code: 404 2026-08-18 07:17:29,456 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-08-18 07:17:29,465 - DEBUG - Requesting: http://10.0.0.19:8082/domain/666f98dc-567c-422a-b60e-25c7b36bf4c1 2026-08-18 07:17:29,521 - DEBUG - Requesting: http://10.0.0.19:8082/project/8dac5e5a-b70c-4ffc-abf5-7d2e754d9517 2026-08-18 07:17:29,606 - INFO - Validated that VN ctest-vn4-09588952 is not found in API Server 2026-08-18 07:17:29,617 - DEBUG - VN ctest-vn4-09588952 is not present in Agent 10.0.0.19 2026-08-18 07:17:29,617 - INFO - Validated that VN ctest-vn4-09588952 is not in any agent 2026-08-18 07:17:29,636 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-09588952 info 2026-08-18 07:17:29,661 - INFO - Deleted policy ctest-policy1-72690440 2026-08-18 07:17:29,835 - DEBUG - policy ctest-policy1-72690440 is not found in API Server 2026-08-18 07:17:30,097 - DEBUG - No XMPP flaps were noticed during the test