2026-01-26 02:07:52,490 - INFO - Domain Default found not creating 2026-01-26 02:07:52,667 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83411503 not found, creating it 2026-01-26 02:07:53,115 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83411503, ID : 36d98269-2a7e-41ff-b25d-5d726e36190e 2026-01-26 02:07:54,609 - INFO - ================================================================================ 2026-01-26 02:07:54,609 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 02:07:54,875 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-01-26 02:07:54,875 - INFO - Initial checks done. Running the testcase now 2026-01-26 02:07:54,875 - INFO - 2026-01-26 02:07:54,875 - INFO - ================================================================================ 2026-01-26 02:07:54,875 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 02:07:54,875 - 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-26 02:07:55,166 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-01-26 02:07:55,166 - INFO - Initial checks done. Running the testcase now 2026-01-26 02:07:55,166 - INFO - 2026-01-26 02:07:55,523 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83411503:ctest-vn4-98632302, 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-83411503:ctest-vn4-98632302, 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-83411503:ctest-vn4-98632302, 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-83411503:ctest-vn4-98632302, 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-26 02:07:56,079 - DEBUG - Response for create_network : {'network': {'id': '65324a8a-49f3-40b1-a78d-64a0d9e060ca', 'name': 'ctest-vn4-98632302', 'tenant_id': '36d982692a7e41ffb25d5d726e36190e', 'project_id': '36d982692a7e41ffb25d5d726e36190e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83411503', 'ctest-vn4-98632302'], 'port_security_enabled': True, 'description': ''}} 2026-01-26 02:07:56,260 - DEBUG - Response for create_subnet : {'subnet': {'id': '8cc5ebb4-56f0-4671-9fce-99cc8926a8d5', 'name': '', 'tenant_id': '36d982692a7e41ffb25d5d726e36190e', 'network_id': '65324a8a-49f3-40b1-a78d-64a0d9e060ca', 'ip_version': 4, 'cidr': '30.97.176.64/26', 'allocation_pools': [{'start': '30.97.176.66', 'end': '30.97.176.126'}], 'gateway_ip': '30.97.176.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30.97.176.66', 'tags': [], 'project_id': '36d982692a7e41ffb25d5d726e36190e'}} 2026-01-26 02:07:56,461 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f503a9be-8ce7-4131-b91e-ee9d183217d8', 'name': '', 'tenant_id': '36d982692a7e41ffb25d5d726e36190e', 'network_id': '65324a8a-49f3-40b1-a78d-64a0d9e060ca', 'ip_version': 6, 'cidr': '359a:d926:45a3:8e89:5b5b:41a9::/96', 'allocation_pools': [{'start': '359a:d926:45a3:8e89:5b5b:41a9:0:2', 'end': '359a:d926:45a3:8e89:5b5b:41a9:ffff:fffe'}], 'gateway_ip': '359a:d926:45a3:8e89:5b5b:41a9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '359a:d926:45a3:8e89:5b5b:41a9:0:2', 'tags': [], 'project_id': '36d982692a7e41ffb25d5d726e36190e'}} 2026-01-26 02:07:56,483 - INFO - Created VN ctest-vn4-98632302 2026-01-26 02:07:56,534 - DEBUG - VN ctest-vn4-98632302 UUID is 65324a8a-49f3-40b1-a78d-64a0d9e060ca 2026-01-26 02:07:56,740 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '65324a8a-49f3-40b1-a78d-64a0d9e060ca', 'name': 'ctest-vn4-98632302', 'tenant_id': '36d982692a7e41ffb25d5d726e36190e', 'project_id': '36d982692a7e41ffb25d5d726e36190e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8cc5ebb4-56f0-4671-9fce-99cc8926a8d5', 'f503a9be-8ce7-4131-b91e-ee9d183217d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83411503', 'ctest-vn4-98632302'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83411503', 'ctest-policy1-70273117']], 'subnet_ipam': [{'subnet_cidr': '30.97.176.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '359a:d926:45a3:8e89:5b5b:41a9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-26 02:07:56,934 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-26 02:07:57,245 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-26 02:07:57,279 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2d223296-7686-43c4-838c-434cc6008c04 2026-01-26 02:07:57,291 - DEBUG - Requesting: http://10.0.0.249:8082/project/36d98269-2a7e-41ff-b25d-5d726e36190e 2026-01-26 02:07:57,367 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/65324a8a-49f3-40b1-a78d-64a0d9e060ca 2026-01-26 02:07:57,381 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/65324a8a-49f3-40b1-a78d-64a0d9e060ca 2026-01-26 02:07:57,391 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac7060ed-3034-40ad-be05-4b2232e5db04 2026-01-26 02:07:57,398 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac7060ed-3034-40ad-be05-4b2232e5db04 2026-01-26 02:07:57,405 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/246afea6-b4c0-4a37-aad3-88b6779b470a 2026-01-26 02:07:57,411 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 02:07:57,412 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/65324a8a-49f3-40b1-a78d-64a0d9e060ca 2026-01-26 02:07:57,420 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac7060ed-3034-40ad-be05-4b2232e5db04 2026-01-26 02:07:57,431 - INFO - Verified VN network id 11 for VN 65324a8a-49f3-40b1-a78d-64a0d9e060ca 2026-01-26 02:07:57,431 - INFO - Verifications in API Server for VN ctest-vn4-98632302 passed 2026-01-26 02:07:57,431 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/65324a8a-49f3-40b1-a78d-64a0d9e060ca 2026-01-26 02:07:57,439 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac7060ed-3034-40ad-be05-4b2232e5db04 2026-01-26 02:07:57,445 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac7060ed-3034-40ad-be05-4b2232e5db04 2026-01-26 02:07:57,450 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/246afea6-b4c0-4a37-aad3-88b6779b470a 2026-01-26 02:07:57,461 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83411503:ctest-vn4-98632302', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83411503', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7291972704472875185', 'uuid-lslong': '12073416818063073482'}, 'enable': 'true', 'created': '2026-01-26T02:07:56', 'last-modified': '2026-01-26T02:07:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.745408'} 2026-01-26 02:07:57,466 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 02:07:57,466 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98632302 passed 2026-01-26 02:07:57,466 - DEBUG - ====Verifying policy data for ctest-vn4-98632302 in API_Server ====== 2026-01-26 02:07:57,466 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-26 02:07:57,471 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2d223296-7686-43c4-838c-434cc6008c04 2026-01-26 02:07:57,480 - DEBUG - Requesting: http://10.0.0.249:8082/project/36d98269-2a7e-41ff-b25d-5d726e36190e 2026-01-26 02:07:57,549 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/65324a8a-49f3-40b1-a78d-64a0d9e060ca 2026-01-26 02:07:57,560 - DEBUG - ==>Verifying data for policy with id: b6116712-9488-4750-8be3-40ae208f680b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83411503', 'ctest-policy1-70273117'] 2026-01-26 02:07:57,560 - INFO - VN ctest-vn4-98632302 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-26 02:07:57,560 - DEBUG - Verifying the vn in opserver 2026-01-26 02:07:57,560 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83411503:ctest-vn4-98632302 virtual network link through opserver 10.0.0.249 2026-01-26 02:07:57,560 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-26 02:07:57,861 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-26 02:07:57,923 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83411503:ctest-vn4-98632302', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83411503:ctest-vn4-98632302?flat'} 2026-01-26 02:07:57,924 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83411503:ctest-vn4-98632302 is found in opserver 2026-01-26 02:07:57,933 - DEBUG - Do not have enough data to verify VN in agent 2026-01-26 02:07:57,937 - DEBUG - VRF ids for VN ctest-vn4-98632302: {} 2026-01-26 02:07:57,937 - DEBUG - ====Verifying data for ctest-policy1-70273117 in API_Server ====== 2026-01-26 02:07:57,938 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-26 02:07:57,943 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2d223296-7686-43c4-838c-434cc6008c04 2026-01-26 02:07:57,952 - DEBUG - Requesting: http://10.0.0.249:8082/project/36d98269-2a7e-41ff-b25d-5d726e36190e 2026-01-26 02:07:58,017 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/b6116712-9488-4750-8be3-40ae208f680b 2026-01-26 02:07:58,027 - INFO - Verified policy ctest-policy1-70273117 in API Server, Result: True 2026-01-26 02:07:58,027 - INFO - Done with setup and verification, moving onto test .. 2026-01-26 02:07:58,036 - INFO - Deleting VN ctest-vn4-98632302 2026-01-26 02:07:58,182 - DEBUG - Response for deleting network () 2026-01-26 02:07:58,182 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/ac7060ed-3034-40ad-be05-4b2232e5db04 2026-01-26 02:07:58,188 - DEBUG - Response Code: 404 2026-01-26 02:07:58,188 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-26 02:07:58,194 - DEBUG - Requesting: http://10.0.0.249:8082/domain/2d223296-7686-43c4-838c-434cc6008c04 2026-01-26 02:07:58,247 - DEBUG - Requesting: http://10.0.0.249:8082/project/36d98269-2a7e-41ff-b25d-5d726e36190e 2026-01-26 02:07:58,322 - INFO - Validated that VN ctest-vn4-98632302 is not found in API Server 2026-01-26 02:07:58,336 - DEBUG - VN ctest-vn4-98632302 is not present in Agent 10.0.0.249 2026-01-26 02:07:58,336 - INFO - Validated that VN ctest-vn4-98632302 is not in any agent 2026-01-26 02:07:58,352 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98632302 info 2026-01-26 02:07:58,376 - INFO - Deleted policy ctest-policy1-70273117 2026-01-26 02:07:58,538 - DEBUG - policy ctest-policy1-70273117 is not found in API Server 2026-01-26 02:07:58,793 - DEBUG - No XMPP flaps were noticed during the test
2026-01-26 02:07:58,793 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-26 02:07:58,793 - INFO - -------------------------------------------------------------------------------- 2026-01-26 02:07:59,080 - DEBUG - No XMPP flaps were noticed during the test
2026-01-26 02:07:59,080 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-26 02:07:59,080 - INFO - -------------------------------------------------------------------------------- 2026-01-26 02:07:59,758 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-83411503, ID : 36d98269-2a7e-41ff-b25d-5d726e36190e