2026-05-11 02:43:56,882 - INFO - Domain Default found not creating 2026-05-11 02:43:57,075 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-77572133 not found, creating it 2026-05-11 02:43:57,650 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-77572133, ID : bfad82a0-de3b-487e-be95-5195a390c43b 2026-05-11 02:44:00,102 - INFO - ================================================================================ 2026-05-11 02:44:00,102 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-11 02:44:01,417 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.129': '0', '10.20.0.193': '0'}, '10.0.0.240': {'10.20.0.129': '0', '10.20.0.18': '0'}} with 2026-05-11 02:44:01,417 - INFO - Initial checks done. Running the testcase now 2026-05-11 02:44:01,417 - INFO - 2026-05-11 02:44:01,417 - INFO - ================================================================================ 2026-05-11 02:44:01,417 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-11 02:44:01,417 - 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-05-11 02:44:02,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.129': '0', '10.20.0.193': '0'}, '10.0.0.240': {'10.20.0.129': '0', '10.20.0.18': '0'}} with 2026-05-11 02:44:02,706 - INFO - Initial checks done. Running the testcase now 2026-05-11 02:44:02,706 - INFO - 2026-05-11 02:44:03,077 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77572133:ctest-vn4-86636443, 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-77572133:ctest-vn4-86636443, 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-77572133:ctest-vn4-86636443, 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-77572133:ctest-vn4-86636443, 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-05-11 02:44:03,740 - DEBUG - Response for create_network : {'network': {'id': '94f4b3a2-8924-4225-b7ff-807198cd3b48', 'name': 'ctest-vn4-86636443', 'tenant_id': 'bfad82a0de3b487ebe955195a390c43b', 'project_id': 'bfad82a0de3b487ebe955195a390c43b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77572133', 'ctest-vn4-86636443'], 'port_security_enabled': True, 'description': ''}} 2026-05-11 02:44:04,087 - DEBUG - Response for create_subnet : {'subnet': {'id': '43da526b-1fbb-4d3b-aee8-0717f7f4760a', 'name': '', 'tenant_id': 'bfad82a0de3b487ebe955195a390c43b', 'network_id': '94f4b3a2-8924-4225-b7ff-807198cd3b48', 'ip_version': 4, 'cidr': '206.192.238.128/26', 'allocation_pools': [{'start': '206.192.238.130', 'end': '206.192.238.190'}], 'gateway_ip': '206.192.238.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.192.238.130', 'tags': [], 'project_id': 'bfad82a0de3b487ebe955195a390c43b'}} 2026-05-11 02:44:04,293 - DEBUG - Response for create_subnet : {'subnet': {'id': '4905f2f9-24ef-4d5f-84fb-e77bfd5e3a8c', 'name': '', 'tenant_id': 'bfad82a0de3b487ebe955195a390c43b', 'network_id': '94f4b3a2-8924-4225-b7ff-807198cd3b48', 'ip_version': 6, 'cidr': '24b6:50dc:63cc:25c0:b6cb:f657::/96', 'allocation_pools': [{'start': '24b6:50dc:63cc:25c0:b6cb:f657:0:2', 'end': '24b6:50dc:63cc:25c0:b6cb:f657:ffff:fffe'}], 'gateway_ip': '24b6:50dc:63cc:25c0:b6cb:f657:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24b6:50dc:63cc:25c0:b6cb:f657:0:2', 'tags': [], 'project_id': 'bfad82a0de3b487ebe955195a390c43b'}} 2026-05-11 02:44:04,320 - INFO - Created VN ctest-vn4-86636443 2026-05-11 02:44:04,335 - DEBUG - VN ctest-vn4-86636443 UUID is 94f4b3a2-8924-4225-b7ff-807198cd3b48 2026-05-11 02:44:04,585 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '94f4b3a2-8924-4225-b7ff-807198cd3b48', 'name': 'ctest-vn4-86636443', 'tenant_id': 'bfad82a0de3b487ebe955195a390c43b', 'project_id': 'bfad82a0de3b487ebe955195a390c43b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43da526b-1fbb-4d3b-aee8-0717f7f4760a', '4905f2f9-24ef-4d5f-84fb-e77bfd5e3a8c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77572133', 'ctest-vn4-86636443'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77572133', 'ctest-policy1-65697663']], 'subnet_ipam': [{'subnet_cidr': '206.192.238.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24b6:50dc:63cc:25c0:b6cb:f657::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-11 02:44:04,717 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-11 02:44:05,017 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-11 02:44:05,058 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a797b29a-b743-4bb0-b070-a90ae89983d0 2026-05-11 02:44:05,077 - DEBUG - Requesting: http://10.0.0.141:8082/project/bfad82a0-de3b-487e-be95-5195a390c43b 2026-05-11 02:44:05,197 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/94f4b3a2-8924-4225-b7ff-807198cd3b48 2026-05-11 02:44:05,212 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/94f4b3a2-8924-4225-b7ff-807198cd3b48 2026-05-11 02:44:05,224 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/048a28e0-3554-4c58-9931-4caf70e02871 2026-05-11 02:44:05,232 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/048a28e0-3554-4c58-9931-4caf70e02871 2026-05-11 02:44:05,240 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4b84a53b-3e85-4a8f-8e31-7398e6604044 2026-05-11 02:44:05,248 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-11 02:44:05,248 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/94f4b3a2-8924-4225-b7ff-807198cd3b48 2026-05-11 02:44:05,258 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/048a28e0-3554-4c58-9931-4caf70e02871 2026-05-11 02:44:05,275 - INFO - Verified VN network id 13 for VN 94f4b3a2-8924-4225-b7ff-807198cd3b48 2026-05-11 02:44:05,275 - INFO - Verifications in API Server for VN ctest-vn4-86636443 passed 2026-05-11 02:44:05,275 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/94f4b3a2-8924-4225-b7ff-807198cd3b48 2026-05-11 02:44:05,286 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/048a28e0-3554-4c58-9931-4caf70e02871 2026-05-11 02:44:05,295 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/048a28e0-3554-4c58-9931-4caf70e02871 2026-05-11 02:44:05,303 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/4b84a53b-3e85-4a8f-8e31-7398e6604044 2026-05-11 02:44:05,316 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77572133:ctest-vn4-86636443', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77572133', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10733401322597663269', 'uuid-lslong': '13258457053385276232'}, 'enable': 'true', 'created': '2026-05-11T02:44:03', 'last-modified': '2026-05-11T02:44:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.773539'} 2026-05-11 02:44:05,322 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-11 02:44:05,329 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77572133:ctest-vn4-86636443', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77572133', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10733401322597663269', 'uuid-lslong': '13258457053385276232'}, 'enable': 'true', 'created': '2026-05-11T02:44:03', 'last-modified': '2026-05-11T02:44:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.789087'} 2026-05-11 02:44:05,336 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-11 02:44:05,343 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77572133:ctest-vn4-86636443', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77572133', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10733401322597663269', 'uuid-lslong': '13258457053385276232'}, 'enable': 'true', 'created': '2026-05-11T02:44:03', 'last-modified': '2026-05-11T02:44:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.793571'} 2026-05-11 02:44:05,352 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-11 02:44:05,352 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-86636443 passed 2026-05-11 02:44:05,353 - DEBUG - ====Verifying policy data for ctest-vn4-86636443 in API_Server ====== 2026-05-11 02:44:05,353 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-11 02:44:05,362 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a797b29a-b743-4bb0-b070-a90ae89983d0 2026-05-11 02:44:05,377 - DEBUG - Requesting: http://10.0.0.141:8082/project/bfad82a0-de3b-487e-be95-5195a390c43b 2026-05-11 02:44:05,471 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/94f4b3a2-8924-4225-b7ff-807198cd3b48 2026-05-11 02:44:05,491 - DEBUG - ==>Verifying data for policy with id: 2b11ccf2-c6cb-414f-9fb3-1ca969c312aa, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77572133', 'ctest-policy1-65697663'] 2026-05-11 02:44:05,491 - INFO - VN ctest-vn4-86636443 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-11 02:44:05,491 - DEBUG - Verifying the vn in opserver 2026-05-11 02:44:05,491 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77572133:ctest-vn4-86636443 virtual network link through opserver 10.0.0.141 2026-05-11 02:44:05,491 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-05-11 02:44:05,784 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-05-11 02:44:05,853 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77572133:ctest-vn4-86636443', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77572133:ctest-vn4-86636443?flat'} 2026-05-11 02:44:05,853 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77572133:ctest-vn4-86636443 virtual network link through opserver 10.0.0.249 2026-05-11 02:44:05,853 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-11 02:44:06,150 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-05-11 02:44:06,219 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77572133:ctest-vn4-86636443', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77572133:ctest-vn4-86636443?flat'} 2026-05-11 02:44:06,219 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77572133:ctest-vn4-86636443 virtual network link through opserver 10.0.0.27 2026-05-11 02:44:06,219 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-05-11 02:44:06,517 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-05-11 02:44:06,584 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77572133:ctest-vn4-86636443', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77572133:ctest-vn4-86636443?flat'} 2026-05-11 02:44:06,584 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77572133:ctest-vn4-86636443 is found in opserver 2026-05-11 02:44:06,607 - DEBUG - Do not have enough data to verify VN in agent 2026-05-11 02:44:06,618 - DEBUG - VRF ids for VN ctest-vn4-86636443: {} 2026-05-11 02:44:06,618 - DEBUG - ====Verifying data for ctest-policy1-65697663 in API_Server ====== 2026-05-11 02:44:06,618 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-11 02:44:06,625 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a797b29a-b743-4bb0-b070-a90ae89983d0 2026-05-11 02:44:06,637 - DEBUG - Requesting: http://10.0.0.141:8082/project/bfad82a0-de3b-487e-be95-5195a390c43b 2026-05-11 02:44:06,746 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/2b11ccf2-c6cb-414f-9fb3-1ca969c312aa 2026-05-11 02:44:06,759 - INFO - Verified policy ctest-policy1-65697663 in API Server, Result: True 2026-05-11 02:44:06,760 - INFO - Done with setup and verification, moving onto test .. 2026-05-11 02:44:06,774 - INFO - Deleting VN ctest-vn4-86636443 2026-05-11 02:44:06,992 - DEBUG - Response for deleting network () 2026-05-11 02:44:06,992 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/048a28e0-3554-4c58-9931-4caf70e02871 2026-05-11 02:44:07,008 - DEBUG - Response Code: 404 2026-05-11 02:44:07,008 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-11 02:44:07,018 - DEBUG - Requesting: http://10.0.0.141:8082/domain/a797b29a-b743-4bb0-b070-a90ae89983d0 2026-05-11 02:44:07,040 - DEBUG - Requesting: http://10.0.0.141:8082/project/bfad82a0-de3b-487e-be95-5195a390c43b 2026-05-11 02:44:07,142 - INFO - Validated that VN ctest-vn4-86636443 is not found in API Server 2026-05-11 02:44:07,153 - DEBUG - VN ctest-vn4-86636443 is not present in Agent 10.0.0.23 2026-05-11 02:44:07,164 - DEBUG - VN ctest-vn4-86636443 is not present in Agent 10.0.0.240 2026-05-11 02:44:07,164 - INFO - Validated that VN ctest-vn4-86636443 is not in any agent 2026-05-11 02:44:07,197 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-86636443 info 2026-05-11 02:44:07,242 - INFO - Deleted policy ctest-policy1-65697663 2026-05-11 02:44:07,421 - DEBUG - policy ctest-policy1-65697663 is not found in API Server 2026-05-11 02:44:08,704 - DEBUG - No XMPP flaps were noticed during the test 2026-05-11 02:44:08,704 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-05-11 02:44:08,704 - INFO - -------------------------------------------------------------------------------- 2026-05-11 02:44:10,022 - DEBUG - No XMPP flaps were noticed during the test 2026-05-11 02:44:10,022 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-05-11 02:44:10,022 - INFO - -------------------------------------------------------------------------------- 2026-05-11 02:44:10,831 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-77572133, ID : bfad82a0-de3b-487e-be95-5195a390c43b