2026-06-19 15:51:53,486 - INFO - Domain Default found not creating 2026-06-19 15:51:53,612 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-46768208 not found, creating it 2026-06-19 15:51:54,027 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-46768208, ID : 093e466b-c7e5-42b2-b7e9-094880182df6 2026-06-19 15:51:55,411 - INFO - ================================================================================ 2026-06-19 15:51:55,412 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 15:51:55,666 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.18': '0'}} with 2026-06-19 15:51:55,667 - INFO - Initial checks done. Running the testcase now 2026-06-19 15:51:55,667 - INFO - 2026-06-19 15:51:55,667 - INFO - ================================================================================ 2026-06-19 15:51:55,667 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-19 15:51:55,667 - 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-06-19 15:51:55,958 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.18': '0'}} with 2026-06-19 15:51:55,958 - INFO - Initial checks done. Running the testcase now 2026-06-19 15:51:55,958 - INFO - 2026-06-19 15:51:56,322 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46768208:ctest-vn4-27678892, 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-46768208:ctest-vn4-27678892, 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-46768208:ctest-vn4-27678892, 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-46768208:ctest-vn4-27678892, 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-06-19 15:51:56,804 - DEBUG - Response for create_network : {'network': {'id': '34636d82-17c4-412e-9768-14ec768bc4c4', 'name': 'ctest-vn4-27678892', 'tenant_id': '093e466bc7e542b2b7e9094880182df6', 'project_id': '093e466bc7e542b2b7e9094880182df6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46768208', 'ctest-vn4-27678892'], 'port_security_enabled': True, 'description': ''}} 2026-06-19 15:51:56,961 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd1b47732-2883-4e94-8ae4-aa09092bfe1b', 'name': '', 'tenant_id': '093e466bc7e542b2b7e9094880182df6', 'network_id': '34636d82-17c4-412e-9768-14ec768bc4c4', 'ip_version': 4, 'cidr': '22.112.62.192/26', 'allocation_pools': [{'start': '22.112.62.194', 'end': '22.112.62.254'}], 'gateway_ip': '22.112.62.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.112.62.194', 'tags': [], 'project_id': '093e466bc7e542b2b7e9094880182df6'}} 2026-06-19 15:51:57,107 - DEBUG - Response for create_subnet : {'subnet': {'id': 'baa9d928-7446-4674-889c-124fa749a552', 'name': '', 'tenant_id': '093e466bc7e542b2b7e9094880182df6', 'network_id': '34636d82-17c4-412e-9768-14ec768bc4c4', 'ip_version': 6, 'cidr': '34a3:fa7a:9bd7:d3cd:cca9:3444::/96', 'allocation_pools': [{'start': '34a3:fa7a:9bd7:d3cd:cca9:3444:0:2', 'end': '34a3:fa7a:9bd7:d3cd:cca9:3444:ffff:fffe'}], 'gateway_ip': '34a3:fa7a:9bd7:d3cd:cca9:3444:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34a3:fa7a:9bd7:d3cd:cca9:3444:0:2', 'tags': [], 'project_id': '093e466bc7e542b2b7e9094880182df6'}} 2026-06-19 15:51:57,121 - INFO - Created VN ctest-vn4-27678892 2026-06-19 15:51:57,170 - DEBUG - VN ctest-vn4-27678892 UUID is 34636d82-17c4-412e-9768-14ec768bc4c4 2026-06-19 15:51:57,337 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '34636d82-17c4-412e-9768-14ec768bc4c4', 'name': 'ctest-vn4-27678892', 'tenant_id': '093e466bc7e542b2b7e9094880182df6', 'project_id': '093e466bc7e542b2b7e9094880182df6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d1b47732-2883-4e94-8ae4-aa09092bfe1b', 'baa9d928-7446-4674-889c-124fa749a552'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46768208', 'ctest-vn4-27678892'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46768208', 'ctest-policy1-57264546']], 'subnet_ipam': [{'subnet_cidr': '22.112.62.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34a3:fa7a:9bd7:d3cd:cca9:3444::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-19 15:51:57,490 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-19 15:51:57,806 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-19 15:51:57,829 - DEBUG - Requesting: http://10.0.0.22:8082/domain/44e9c255-376f-4b7d-9093-b218eb773b21 2026-06-19 15:51:57,844 - DEBUG - Requesting: http://10.0.0.22:8082/project/093e466b-c7e5-42b2-b7e9-094880182df6 2026-06-19 15:51:57,910 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/34636d82-17c4-412e-9768-14ec768bc4c4 2026-06-19 15:51:57,920 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/34636d82-17c4-412e-9768-14ec768bc4c4 2026-06-19 15:51:57,929 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/17036331-2e56-4f71-a986-3daf0d09a0d2 2026-06-19 15:51:57,935 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/17036331-2e56-4f71-a986-3daf0d09a0d2 2026-06-19 15:51:57,941 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6fe7ec03-baf9-4d05-a045-079de2dcf5ce 2026-06-19 15:51:57,946 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 15:51:57,946 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/34636d82-17c4-412e-9768-14ec768bc4c4 2026-06-19 15:51:57,954 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/17036331-2e56-4f71-a986-3daf0d09a0d2 2026-06-19 15:51:57,966 - INFO - Verified VN network id 11 for VN 34636d82-17c4-412e-9768-14ec768bc4c4 2026-06-19 15:51:57,966 - INFO - Verifications in API Server for VN ctest-vn4-27678892 passed 2026-06-19 15:51:57,966 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/34636d82-17c4-412e-9768-14ec768bc4c4 2026-06-19 15:51:57,974 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/17036331-2e56-4f71-a986-3daf0d09a0d2 2026-06-19 15:51:57,979 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/17036331-2e56-4f71-a986-3daf0d09a0d2 2026-06-19 15:51:57,984 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/6fe7ec03-baf9-4d05-a045-079de2dcf5ce 2026-06-19 15:51:57,993 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46768208:ctest-vn4-27678892', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-46768208', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3774981318178521390', 'uuid-lslong': '10909993103138735300'}, 'enable': 'true', 'created': '2026-06-19T15:51:56', 'last-modified': '2026-06-19T15:51:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.675544'} 2026-06-19 15:51:57,998 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-19 15:51:57,998 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-27678892 passed 2026-06-19 15:51:57,999 - DEBUG - ====Verifying policy data for ctest-vn4-27678892 in API_Server ====== 2026-06-19 15:51:57,999 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-19 15:51:58,003 - DEBUG - Requesting: http://10.0.0.22:8082/domain/44e9c255-376f-4b7d-9093-b218eb773b21 2026-06-19 15:51:58,013 - DEBUG - Requesting: http://10.0.0.22:8082/project/093e466b-c7e5-42b2-b7e9-094880182df6 2026-06-19 15:51:58,077 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/34636d82-17c4-412e-9768-14ec768bc4c4 2026-06-19 15:51:58,085 - DEBUG - ==>Verifying data for policy with id: 690c0b9c-14ba-4615-a6a8-419fffe111ae, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46768208', 'ctest-policy1-57264546'] 2026-06-19 15:51:58,085 - INFO - VN ctest-vn4-27678892 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-19 15:51:58,085 - DEBUG - Verifying the vn in opserver 2026-06-19 15:51:58,085 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46768208:ctest-vn4-27678892 virtual network link through opserver 10.0.0.22 2026-06-19 15:51:58,085 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-06-19 15:51:58,397 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-06-19 15:51:58,444 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46768208:ctest-vn4-27678892', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46768208:ctest-vn4-27678892?flat'} 2026-06-19 15:51:58,444 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46768208:ctest-vn4-27678892 is found in opserver 2026-06-19 15:51:58,454 - DEBUG - Do not have enough data to verify VN in agent 2026-06-19 15:51:58,458 - DEBUG - VRF ids for VN ctest-vn4-27678892: {} 2026-06-19 15:51:58,459 - DEBUG - ====Verifying data for ctest-policy1-57264546 in API_Server ====== 2026-06-19 15:51:58,459 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-19 15:51:58,465 - DEBUG - Requesting: http://10.0.0.22:8082/domain/44e9c255-376f-4b7d-9093-b218eb773b21 2026-06-19 15:51:58,474 - DEBUG - Requesting: http://10.0.0.22:8082/project/093e466b-c7e5-42b2-b7e9-094880182df6 2026-06-19 15:51:58,538 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/690c0b9c-14ba-4615-a6a8-419fffe111ae 2026-06-19 15:51:58,546 - INFO - Verified policy ctest-policy1-57264546 in API Server, Result: True 2026-06-19 15:51:58,546 - INFO - Done with setup and verification, moving onto test .. 2026-06-19 15:51:58,553 - INFO - Deleting VN ctest-vn4-27678892 2026-06-19 15:51:58,653 - DEBUG - Response for deleting network () 2026-06-19 15:51:58,653 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/17036331-2e56-4f71-a986-3daf0d09a0d2 2026-06-19 15:51:58,657 - DEBUG - Response Code: 404 2026-06-19 15:51:58,658 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-06-19 15:51:58,662 - DEBUG - Requesting: http://10.0.0.22:8082/domain/44e9c255-376f-4b7d-9093-b218eb773b21 2026-06-19 15:51:58,715 - DEBUG - Requesting: http://10.0.0.22:8082/project/093e466b-c7e5-42b2-b7e9-094880182df6 2026-06-19 15:51:58,781 - INFO - Validated that VN ctest-vn4-27678892 is not found in API Server 2026-06-19 15:51:58,789 - DEBUG - VN ctest-vn4-27678892 is not present in Agent 10.0.0.22 2026-06-19 15:51:58,789 - INFO - Validated that VN ctest-vn4-27678892 is not in any agent 2026-06-19 15:51:58,801 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-27678892 info 2026-06-19 15:51:58,820 - INFO - Deleted policy ctest-policy1-57264546 2026-06-19 15:51:58,978 - DEBUG - policy ctest-policy1-57264546 is not found in API Server 2026-06-19 15:51:59,230 - DEBUG - No XMPP flaps were noticed during the test 2026-06-19 15:51:59,230 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-19 15:51:59,230 - INFO - -------------------------------------------------------------------------------- 2026-06-19 15:51:59,520 - DEBUG - No XMPP flaps were noticed during the test 2026-06-19 15:51:59,520 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-19 15:51:59,520 - INFO - -------------------------------------------------------------------------------- 2026-06-19 15:52:00,179 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-46768208, ID : 093e466b-c7e5-42b2-b7e9-094880182df6