2026-08-14 08:56:01,485 - INFO - Domain Default found not creating 2026-08-14 08:56:01,658 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35264164 not found, creating it 2026-08-14 08:56:02,132 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35264164, ID : f31cb3f4-485c-4d34-93bf-520f3f29d424 2026-08-14 08:56:03,729 - INFO - ================================================================================ 2026-08-14 08:56:03,729 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-14 08:56:03,985 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.25': '0'}} with 2026-08-14 08:56:03,985 - INFO - Initial checks done. Running the testcase now 2026-08-14 08:56:03,985 - INFO - 2026-08-14 08:56:03,985 - INFO - ================================================================================ 2026-08-14 08:56:03,985 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-08-14 08:56:03,985 - 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-14 08:56:04,275 - DEBUG - Nothing to compare xmpp stats {'10.0.0.163': {'10.20.0.25': '0'}} with 2026-08-14 08:56:04,275 - INFO - Initial checks done. Running the testcase now 2026-08-14 08:56:04,275 - INFO - 2026-08-14 08:56:04,679 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35264164:ctest-vn4-48187734, 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-35264164:ctest-vn4-48187734, 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-35264164:ctest-vn4-48187734, 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-35264164:ctest-vn4-48187734, 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-14 08:56:05,232 - DEBUG - Response for create_network : {'network': {'id': '1c2785b6-c03b-42b7-9c76-38166b397a2a', 'name': 'ctest-vn4-48187734', 'tenant_id': 'f31cb3f4485c4d3493bf520f3f29d424', 'project_id': 'f31cb3f4485c4d3493bf520f3f29d424', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35264164', 'ctest-vn4-48187734'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-08-14 08:56:05,466 - DEBUG - Response for create_subnet : {'subnet': {'id': '9b4e9266-33d6-404c-a9db-1f9655090cee', 'name': '', 'tenant_id': 'f31cb3f4485c4d3493bf520f3f29d424', 'network_id': '1c2785b6-c03b-42b7-9c76-38166b397a2a', 'ip_version': 4, 'cidr': '94.100.90.64/26', 'allocation_pools': [{'start': '94.100.90.66', 'end': '94.100.90.126'}], 'gateway_ip': '94.100.90.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-08-14T08:56:05.396898', 'updated_at': '2026-08-14T08:56:05.396898', 'dns_server_address': '94.100.90.66', 'tags': [], 'project_id': 'f31cb3f4485c4d3493bf520f3f29d424'}} 2026-08-14 08:56:05,810 - DEBUG - Response for create_subnet : {'subnet': {'id': '3992392d-7baf-4ba8-aaa5-fade741ee7ac', 'name': '', 'tenant_id': 'f31cb3f4485c4d3493bf520f3f29d424', 'network_id': '1c2785b6-c03b-42b7-9c76-38166b397a2a', 'ip_version': 6, 'cidr': '2ca2:56b:f98b:1462:bd2f:4ef3::/96', 'allocation_pools': [{'start': '2ca2:56b:f98b:1462:bd2f:4ef3:0:2', 'end': '2ca2:56b:f98b:1462:bd2f:4ef3:ffff:fffe'}], 'gateway_ip': '2ca2:56b:f98b:1462:bd2f:4ef3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-08-14T08:56:05.657905', 'updated_at': '2026-08-14T08:56:05.657905', 'dns_server_address': '2ca2:56b:f98b:1462:bd2f:4ef3:0:2', 'tags': [], 'project_id': 'f31cb3f4485c4d3493bf520f3f29d424'}} 2026-08-14 08:56:05,838 - INFO - Created VN ctest-vn4-48187734 2026-08-14 08:56:05,897 - DEBUG - VN ctest-vn4-48187734 UUID is 1c2785b6-c03b-42b7-9c76-38166b397a2a 2026-08-14 08:56:06,129 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c2785b6-c03b-42b7-9c76-38166b397a2a', 'name': 'ctest-vn4-48187734', 'tenant_id': 'f31cb3f4485c4d3493bf520f3f29d424', 'project_id': 'f31cb3f4485c4d3493bf520f3f29d424', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9b4e9266-33d6-404c-a9db-1f9655090cee', '3992392d-7baf-4ba8-aaa5-fade741ee7ac'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35264164', 'ctest-vn4-48187734'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35264164', 'ctest-policy1-59232606']], 'subnet_ipam': [{'subnet_cidr': '94.100.90.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ca2:56b:f98b:1462:bd2f:4ef3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-08-14T08:56:05.196112', 'updated_at': '2026-08-14T08:56:05.704478'}} 2026-08-14 08:56:06,293 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-08-14 08:56:06,620 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-08-14 08:56:06,647 - DEBUG - Requesting: http://10.0.0.163:8082/domain/feb00bb1-dd77-4ad3-a16b-4634f8bbb996 2026-08-14 08:56:06,659 - DEBUG - Requesting: http://10.0.0.163:8082/project/f31cb3f4-485c-4d34-93bf-520f3f29d424 2026-08-14 08:56:06,732 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/1c2785b6-c03b-42b7-9c76-38166b397a2a 2026-08-14 08:56:06,745 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/1c2785b6-c03b-42b7-9c76-38166b397a2a 2026-08-14 08:56:06,756 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/be7c15be-b02d-4c54-9cee-037584d89ddd 2026-08-14 08:56:06,765 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/be7c15be-b02d-4c54-9cee-037584d89ddd 2026-08-14 08:56:06,772 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/177c0712-986c-4a9e-b6e3-c45ea0d8d28c 2026-08-14 08:56:06,778 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-14 08:56:06,778 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/1c2785b6-c03b-42b7-9c76-38166b397a2a 2026-08-14 08:56:06,788 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/be7c15be-b02d-4c54-9cee-037584d89ddd 2026-08-14 08:56:06,805 - INFO - Verified VN network id 11 for VN 1c2785b6-c03b-42b7-9c76-38166b397a2a 2026-08-14 08:56:06,805 - INFO - Verifications in API Server for VN ctest-vn4-48187734 passed 2026-08-14 08:56:06,805 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/1c2785b6-c03b-42b7-9c76-38166b397a2a 2026-08-14 08:56:06,814 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/be7c15be-b02d-4c54-9cee-037584d89ddd 2026-08-14 08:56:06,822 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/be7c15be-b02d-4c54-9cee-037584d89ddd 2026-08-14 08:56:06,831 - DEBUG - Requesting: http://10.0.0.163:8082/route-target/177c0712-986c-4a9e-b6e3-c45ea0d8d28c 2026-08-14 08:56:06,848 - DEBUG - Control-node 10.0.0.163 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35264164:ctest-vn4-48187734', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35264164', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2028737177109349047', 'uuid-lslong': '11274260386107980330'}, 'enable': 'true', 'created': '2026-08-14T08:56:05', 'last-modified': '2026-08-14T08:56:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.745644'} 2026-08-14 08:56:06,857 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-08-14 08:56:06,857 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48187734 passed 2026-08-14 08:56:06,857 - DEBUG - ====Verifying policy data for ctest-vn4-48187734 in API_Server ====== 2026-08-14 08:56:06,857 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-08-14 08:56:06,863 - DEBUG - Requesting: http://10.0.0.163:8082/domain/feb00bb1-dd77-4ad3-a16b-4634f8bbb996 2026-08-14 08:56:06,874 - DEBUG - Requesting: http://10.0.0.163:8082/project/f31cb3f4-485c-4d34-93bf-520f3f29d424 2026-08-14 08:56:06,950 - DEBUG - Requesting: http://10.0.0.163:8082/virtual-network/1c2785b6-c03b-42b7-9c76-38166b397a2a 2026-08-14 08:56:06,961 - DEBUG - ==>Verifying data for policy with id: 3b14e483-aece-4453-8c48-04bbded74fb8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35264164', 'ctest-policy1-59232606'] 2026-08-14 08:56:06,961 - INFO - VN ctest-vn4-48187734 Policy verification: verify_vn_policy_in_api_server, status: True 2026-08-14 08:56:06,961 - DEBUG - Verifying the vn in opserver 2026-08-14 08:56:06,961 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35264164:ctest-vn4-48187734 virtual network link through opserver 10.0.0.163 2026-08-14 08:56:06,962 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-08-14 08:56:07,283 - DEBUG - Requesting: http://10.0.0.163:8081/analytics/uves/virtual-networks 2026-08-14 08:56:07,339 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35264164:ctest-vn4-48187734', 'href': 'http://10.0.0.163:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35264164:ctest-vn4-48187734?flat'} 2026-08-14 08:56:07,339 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35264164:ctest-vn4-48187734 is found in opserver 2026-08-14 08:56:07,348 - DEBUG - Do not have enough data to verify VN in agent 2026-08-14 08:56:07,353 - DEBUG - VRF ids for VN ctest-vn4-48187734: {} 2026-08-14 08:56:07,353 - DEBUG - ====Verifying data for ctest-policy1-59232606 in API_Server ====== 2026-08-14 08:56:07,353 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-08-14 08:56:07,359 - DEBUG - Requesting: http://10.0.0.163:8082/domain/feb00bb1-dd77-4ad3-a16b-4634f8bbb996 2026-08-14 08:56:07,370 - DEBUG - Requesting: http://10.0.0.163:8082/project/f31cb3f4-485c-4d34-93bf-520f3f29d424 2026-08-14 08:56:07,449 - DEBUG - Requesting: http://10.0.0.163:8082/network-policy/3b14e483-aece-4453-8c48-04bbded74fb8 2026-08-14 08:56:07,460 - INFO - Verified policy ctest-policy1-59232606 in API Server, Result: True 2026-08-14 08:56:07,460 - INFO - Done with setup and verification, moving onto test .. 2026-08-14 08:56:07,470 - INFO - Deleting VN ctest-vn4-48187734 2026-08-14 08:56:07,618 - DEBUG - Response for deleting network () 2026-08-14 08:56:07,618 - DEBUG - Requesting: http://10.0.0.163:8082/routing-instance/be7c15be-b02d-4c54-9cee-037584d89ddd 2026-08-14 08:56:07,624 - DEBUG - Response Code: 404 2026-08-14 08:56:07,624 - DEBUG - Requesting: http://10.0.0.163:8082/domains 2026-08-14 08:56:07,630 - DEBUG - Requesting: http://10.0.0.163:8082/domain/feb00bb1-dd77-4ad3-a16b-4634f8bbb996 2026-08-14 08:56:07,686 - DEBUG - Requesting: http://10.0.0.163:8082/project/f31cb3f4-485c-4d34-93bf-520f3f29d424 2026-08-14 08:56:07,758 - INFO - Validated that VN ctest-vn4-48187734 is not found in API Server 2026-08-14 08:56:07,771 - DEBUG - VN ctest-vn4-48187734 is not present in Agent 10.0.0.163 2026-08-14 08:56:07,771 - INFO - Validated that VN ctest-vn4-48187734 is not in any agent 2026-08-14 08:56:07,788 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48187734 info 2026-08-14 08:56:07,823 - INFO - Deleted policy ctest-policy1-59232606 2026-08-14 08:56:07,989 - DEBUG - policy ctest-policy1-59232606 is not found in API Server 2026-08-14 08:56:08,252 - DEBUG - No XMPP flaps were noticed during the test
2026-08-14 08:56:08,252 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-08-14 08:56:08,252 - INFO - -------------------------------------------------------------------------------- 2026-08-14 08:56:08,540 - DEBUG - No XMPP flaps were noticed during the test
2026-08-14 08:56:08,540 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-08-14 08:56:08,540 - INFO - -------------------------------------------------------------------------------- 2026-08-14 08:56:09,272 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-35264164, ID : f31cb3f4-485c-4d34-93bf-520f3f29d424