2026-08-25 23:47:29,523 - INFO - Domain Default found not creating 2026-08-25 23:47:29,705 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42603283 not found, creating it 2026-08-25 23:47:30,186 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42603283, ID : 9ccac7b6-e95e-4b88-9d1c-d082897dbef3 2026-08-25 23:47:31,952 - INFO - ================================================================================ 2026-08-25 23:47:31,953 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 23:47:32,225 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.17': '0'}} with 2026-08-25 23:47:32,225 - INFO - Initial checks done. Running the testcase now 2026-08-25 23:47:32,225 - INFO - 2026-08-25 23:47:32,225 - INFO - ================================================================================ 2026-08-25 23:47:32,226 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-25 23:47:32,226 - 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-25 23:47:32,518 - DEBUG - Nothing to compare xmpp stats {'10.0.0.162': {'10.20.0.17': '0'}} with 2026-08-25 23:47:32,518 - INFO - Initial checks done. Running the testcase now 2026-08-25 23:47:32,518 - INFO - 2026-08-25 23:47:32,961 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42603283:ctest-vn4-32030909, 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-42603283:ctest-vn4-32030909, 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-42603283:ctest-vn4-32030909, 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-42603283:ctest-vn4-32030909, 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-25 23:47:33,501 - DEBUG - Response for create_network : {'network': {'id': '03db5a18-ce65-41ff-9d23-95008b2a0b7f', 'name': 'ctest-vn4-32030909', 'tenant_id': '9ccac7b6e95e4b889d1cd082897dbef3', 'project_id': '9ccac7b6e95e4b889d1cd082897dbef3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42603283', 'ctest-vn4-32030909'], 'port_security_enabled': True, 'description': ''}} 2026-08-25 23:47:33,719 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a514f335-d07e-4f92-9aef-0d3601711258', 'name': '', 'tenant_id': '9ccac7b6e95e4b889d1cd082897dbef3', 'network_id': '03db5a18-ce65-41ff-9d23-95008b2a0b7f', 'ip_version': 4, 'cidr': '182.56.138.192/26', 'allocation_pools': [{'start': '182.56.138.194', 'end': '182.56.138.254'}], 'gateway_ip': '182.56.138.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '182.56.138.194', 'tags': [], 'project_id': '9ccac7b6e95e4b889d1cd082897dbef3'}} 2026-08-25 23:47:33,904 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc6b3ced-1a82-405b-97fc-13f9fbf1b270', 'name': '', 'tenant_id': '9ccac7b6e95e4b889d1cd082897dbef3', 'network_id': '03db5a18-ce65-41ff-9d23-95008b2a0b7f', 'ip_version': 6, 'cidr': '311e:b607:42b7:661e:b06c:1871::/96', 'allocation_pools': [{'start': '311e:b607:42b7:661e:b06c:1871:0:2', 'end': '311e:b607:42b7:661e:b06c:1871:ffff:fffe'}], 'gateway_ip': '311e:b607:42b7:661e:b06c:1871:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '311e:b607:42b7:661e:b06c:1871:0:2', 'tags': [], 'project_id': '9ccac7b6e95e4b889d1cd082897dbef3'}} 2026-08-25 23:47:33,935 - INFO - Created VN ctest-vn4-32030909 2026-08-25 23:47:33,992 - DEBUG - VN ctest-vn4-32030909 UUID is 03db5a18-ce65-41ff-9d23-95008b2a0b7f 2026-08-25 23:47:34,215 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03db5a18-ce65-41ff-9d23-95008b2a0b7f', 'name': 'ctest-vn4-32030909', 'tenant_id': '9ccac7b6e95e4b889d1cd082897dbef3', 'project_id': '9ccac7b6e95e4b889d1cd082897dbef3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['a514f335-d07e-4f92-9aef-0d3601711258', 'dc6b3ced-1a82-405b-97fc-13f9fbf1b270'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42603283', 'ctest-vn4-32030909'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42603283', 'ctest-policy1-15744843']], 'subnet_ipam': [{'subnet_cidr': '182.56.138.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '311e:b607:42b7:661e:b06c:1871::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-08-25 23:47:34,388 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-25 23:47:34,755 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-25 23:47:34,789 - DEBUG - Requesting: http://10.0.0.162:8082/domain/9db896ba-d4cf-437d-846f-a4837f9a7076 2026-08-25 23:47:34,805 - DEBUG - Requesting: http://10.0.0.162:8082/project/9ccac7b6-e95e-4b88-9d1c-d082897dbef3 2026-08-25 23:47:34,890 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/03db5a18-ce65-41ff-9d23-95008b2a0b7f 2026-08-25 23:47:34,904 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/03db5a18-ce65-41ff-9d23-95008b2a0b7f 2026-08-25 23:47:34,915 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/5cbd1fb6-d6c2-417a-a9a2-70a5dd4b8c58 2026-08-25 23:47:34,923 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/5cbd1fb6-d6c2-417a-a9a2-70a5dd4b8c58 2026-08-25 23:47:34,930 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/a4a4fe67-b9a8-4668-b462-e5a7e1311b4b 2026-08-25 23:47:34,937 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 23:47:34,937 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/03db5a18-ce65-41ff-9d23-95008b2a0b7f 2026-08-25 23:47:34,947 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/5cbd1fb6-d6c2-417a-a9a2-70a5dd4b8c58 2026-08-25 23:47:34,962 - INFO - Verified VN network id 11 for VN 03db5a18-ce65-41ff-9d23-95008b2a0b7f 2026-08-25 23:47:34,962 - INFO - Verifications in API Server for VN ctest-vn4-32030909 passed 2026-08-25 23:47:34,962 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/03db5a18-ce65-41ff-9d23-95008b2a0b7f 2026-08-25 23:47:34,974 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/5cbd1fb6-d6c2-417a-a9a2-70a5dd4b8c58 2026-08-25 23:47:34,985 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/5cbd1fb6-d6c2-417a-a9a2-70a5dd4b8c58 2026-08-25 23:47:34,994 - DEBUG - Requesting: http://10.0.0.162:8082/route-target/a4a4fe67-b9a8-4668-b462-e5a7e1311b4b 2026-08-25 23:47:35,012 - DEBUG - Control-node 10.0.0.162 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42603283:ctest-vn4-32030909', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42603283', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '277914864601874943', 'uuid-lslong': '11323057717706886015'}, 'enable': 'true', 'created': '2026-08-25T23:47:33', 'last-modified': '2026-08-25T23:47:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.836310'} 2026-08-25 23:47:35,021 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-25 23:47:35,021 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32030909 passed 2026-08-25 23:47:35,021 - DEBUG - ====Verifying policy data for ctest-vn4-32030909 in API_Server ====== 2026-08-25 23:47:35,021 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-25 23:47:35,029 - DEBUG - Requesting: http://10.0.0.162:8082/domain/9db896ba-d4cf-437d-846f-a4837f9a7076 2026-08-25 23:47:35,041 - DEBUG - Requesting: http://10.0.0.162:8082/project/9ccac7b6-e95e-4b88-9d1c-d082897dbef3 2026-08-25 23:47:35,115 - DEBUG - Requesting: http://10.0.0.162:8082/virtual-network/03db5a18-ce65-41ff-9d23-95008b2a0b7f 2026-08-25 23:47:35,128 - DEBUG - ==>Verifying data for policy with id: 99291e55-fe9e-4b0f-bdae-879276a387f1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42603283', 'ctest-policy1-15744843'] 2026-08-25 23:47:35,128 - INFO - VN ctest-vn4-32030909 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-25 23:47:35,128 - DEBUG - Verifying the vn in opserver 2026-08-25 23:47:35,128 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42603283:ctest-vn4-32030909 virtual network link through opserver 10.0.0.162 2026-08-25 23:47:35,128 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-08-25 23:47:35,493 - DEBUG - Requesting: http://10.0.0.162:8081/analytics/uves/virtual-networks 2026-08-25 23:47:35,548 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42603283:ctest-vn4-32030909', 'href': 'http://10.0.0.162:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42603283:ctest-vn4-32030909?flat'} 2026-08-25 23:47:35,548 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42603283:ctest-vn4-32030909 is found in opserver 2026-08-25 23:47:35,561 - DEBUG - Do not have enough data to verify VN in agent 2026-08-25 23:47:35,568 - DEBUG - VRF ids for VN ctest-vn4-32030909: {} 2026-08-25 23:47:35,568 - DEBUG - ====Verifying data for ctest-policy1-15744843 in API_Server ====== 2026-08-25 23:47:35,568 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-25 23:47:35,575 - DEBUG - Requesting: http://10.0.0.162:8082/domain/9db896ba-d4cf-437d-846f-a4837f9a7076 2026-08-25 23:47:35,587 - DEBUG - Requesting: http://10.0.0.162:8082/project/9ccac7b6-e95e-4b88-9d1c-d082897dbef3 2026-08-25 23:47:35,662 - DEBUG - Requesting: http://10.0.0.162:8082/network-policy/99291e55-fe9e-4b0f-bdae-879276a387f1 2026-08-25 23:47:35,673 - INFO - Verified policy ctest-policy1-15744843 in API Server, Result: True 2026-08-25 23:47:35,673 - INFO - Done with setup and verification, moving onto test .. 2026-08-25 23:47:35,682 - INFO - Deleting VN ctest-vn4-32030909 2026-08-25 23:47:35,817 - DEBUG - Response for deleting network () 2026-08-25 23:47:35,818 - DEBUG - Requesting: http://10.0.0.162:8082/routing-instance/5cbd1fb6-d6c2-417a-a9a2-70a5dd4b8c58 2026-08-25 23:47:35,825 - DEBUG - Response Code: 404 2026-08-25 23:47:35,826 - DEBUG - Requesting: http://10.0.0.162:8082/domains 2026-08-25 23:47:35,835 - DEBUG - Requesting: http://10.0.0.162:8082/domain/9db896ba-d4cf-437d-846f-a4837f9a7076 2026-08-25 23:47:35,893 - DEBUG - Requesting: http://10.0.0.162:8082/project/9ccac7b6-e95e-4b88-9d1c-d082897dbef3 2026-08-25 23:47:35,976 - INFO - Validated that VN ctest-vn4-32030909 is not found in API Server 2026-08-25 23:47:35,989 - DEBUG - VN ctest-vn4-32030909 is not present in Agent 10.0.0.162 2026-08-25 23:47:35,989 - INFO - Validated that VN ctest-vn4-32030909 is not in any agent 2026-08-25 23:47:36,011 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32030909 info 2026-08-25 23:47:36,040 - INFO - Deleted policy ctest-policy1-15744843 2026-08-25 23:47:36,228 - DEBUG - policy ctest-policy1-15744843 is not found in API Server 2026-08-25 23:47:36,497 - DEBUG - No XMPP flaps were noticed during the test
2026-08-25 23:47:36,497 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-08-25 23:47:36,498 - INFO - -------------------------------------------------------------------------------- 2026-08-25 23:47:36,800 - DEBUG - No XMPP flaps were noticed during the test
2026-08-25 23:47:36,800 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-08-25 23:47:36,801 - INFO - -------------------------------------------------------------------------------- 2026-08-25 23:47:37,623 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-42603283, ID : 9ccac7b6-e95e-4b88-9d1c-d082897dbef3