2026-02-04 10:20:49,455 - INFO - Domain Default found not creating 2026-02-04 10:20:49,650 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38813867 not found, creating it 2026-02-04 10:20:50,137 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38813867, ID : abb0541b-3861-4ee4-950a-f5fe5c143214 2026-02-04 10:20:51,644 - INFO - ================================================================================ 2026-02-04 10:20:51,644 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 10:20:51,900 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.25': '0'}} with 2026-02-04 10:20:51,900 - INFO - Initial checks done. Running the testcase now 2026-02-04 10:20:51,900 - INFO - 2026-02-04 10:20:51,901 - INFO - ================================================================================ 2026-02-04 10:20:51,901 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 10:20:51,901 - 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-02-04 10:20:52,187 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.25': '0'}} with 2026-02-04 10:20:52,187 - INFO - Initial checks done. Running the testcase now 2026-02-04 10:20:52,187 - INFO - 2026-02-04 10:20:52,583 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38813867:ctest-vn4-33574520, 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-38813867:ctest-vn4-33574520, 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-38813867:ctest-vn4-33574520, 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-38813867:ctest-vn4-33574520, 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-02-04 10:20:53,112 - DEBUG - Response for create_network : {'network': {'id': 'a09e3880-7498-4ff2-a132-6678e729be24', 'name': 'ctest-vn4-33574520', 'tenant_id': 'abb0541b38614ee4950af5fe5c143214', 'project_id': 'abb0541b38614ee4950af5fe5c143214', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38813867', 'ctest-vn4-33574520'], 'port_security_enabled': True, 'description': ''}} 2026-02-04 10:20:53,278 - DEBUG - Response for create_subnet : {'subnet': {'id': '249958f3-44e7-44d5-98fd-1fab3a21d6b4', 'name': '', 'tenant_id': 'abb0541b38614ee4950af5fe5c143214', 'network_id': 'a09e3880-7498-4ff2-a132-6678e729be24', 'ip_version': 4, 'cidr': '173.78.208.0/26', 'allocation_pools': [{'start': '173.78.208.2', 'end': '173.78.208.62'}], 'gateway_ip': '173.78.208.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.78.208.2', 'tags': [], 'project_id': 'abb0541b38614ee4950af5fe5c143214'}} 2026-02-04 10:20:53,441 - DEBUG - Response for create_subnet : {'subnet': {'id': '88d1642b-81e8-43d9-ae10-164e8ec199f1', 'name': '', 'tenant_id': 'abb0541b38614ee4950af5fe5c143214', 'network_id': 'a09e3880-7498-4ff2-a132-6678e729be24', 'ip_version': 6, 'cidr': '3686:4f0f:732d:9b7e:7558:606a::/96', 'allocation_pools': [{'start': '3686:4f0f:732d:9b7e:7558:606a:0:2', 'end': '3686:4f0f:732d:9b7e:7558:606a:ffff:fffe'}], 'gateway_ip': '3686:4f0f:732d:9b7e:7558:606a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3686:4f0f:732d:9b7e:7558:606a:0:2', 'tags': [], 'project_id': 'abb0541b38614ee4950af5fe5c143214'}} 2026-02-04 10:20:53,464 - INFO - Created VN ctest-vn4-33574520 2026-02-04 10:20:53,514 - DEBUG - VN ctest-vn4-33574520 UUID is a09e3880-7498-4ff2-a132-6678e729be24 2026-02-04 10:20:53,721 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a09e3880-7498-4ff2-a132-6678e729be24', 'name': 'ctest-vn4-33574520', 'tenant_id': 'abb0541b38614ee4950af5fe5c143214', 'project_id': 'abb0541b38614ee4950af5fe5c143214', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['249958f3-44e7-44d5-98fd-1fab3a21d6b4', '88d1642b-81e8-43d9-ae10-164e8ec199f1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38813867', 'ctest-vn4-33574520'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38813867', 'ctest-policy1-92472864']], 'subnet_ipam': [{'subnet_cidr': '173.78.208.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3686:4f0f:732d:9b7e:7558:606a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-04 10:20:53,890 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-04 10:20:54,185 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-04 10:20:54,216 - DEBUG - Requesting: http://10.0.0.240:8082/domain/07992f34-d864-4485-90a8-93c3905f5493 2026-02-04 10:20:54,229 - DEBUG - Requesting: http://10.0.0.240:8082/project/abb0541b-3861-4ee4-950a-f5fe5c143214 2026-02-04 10:20:54,301 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/a09e3880-7498-4ff2-a132-6678e729be24 2026-02-04 10:20:54,314 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/a09e3880-7498-4ff2-a132-6678e729be24 2026-02-04 10:20:54,324 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/2b0fb8b9-562d-4924-84fe-acdebc2e7241 2026-02-04 10:20:54,331 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/2b0fb8b9-562d-4924-84fe-acdebc2e7241 2026-02-04 10:20:54,338 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/ca2b46f2-583b-48ef-a0ec-0e19b30eaed9 2026-02-04 10:20:54,344 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 10:20:54,344 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/a09e3880-7498-4ff2-a132-6678e729be24 2026-02-04 10:20:54,354 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/2b0fb8b9-562d-4924-84fe-acdebc2e7241 2026-02-04 10:20:54,368 - INFO - Verified VN network id 12 for VN a09e3880-7498-4ff2-a132-6678e729be24 2026-02-04 10:20:54,368 - INFO - Verifications in API Server for VN ctest-vn4-33574520 passed 2026-02-04 10:20:54,368 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/a09e3880-7498-4ff2-a132-6678e729be24 2026-02-04 10:20:54,378 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/2b0fb8b9-562d-4924-84fe-acdebc2e7241 2026-02-04 10:20:54,385 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/2b0fb8b9-562d-4924-84fe-acdebc2e7241 2026-02-04 10:20:54,392 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/ca2b46f2-583b-48ef-a0ec-0e19b30eaed9 2026-02-04 10:20:54,406 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38813867:ctest-vn4-33574520', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38813867', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11573750216751861746', 'uuid-lslong': '11615459058402311716'}, 'enable': 'true', 'created': '2026-02-04T10:20:53', 'last-modified': '2026-02-04T10:20:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711651'} 2026-02-04 10:20:54,412 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 10:20:54,412 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33574520 passed 2026-02-04 10:20:54,413 - DEBUG - ====Verifying policy data for ctest-vn4-33574520 in API_Server ====== 2026-02-04 10:20:54,413 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-04 10:20:54,418 - DEBUG - Requesting: http://10.0.0.240:8082/domain/07992f34-d864-4485-90a8-93c3905f5493 2026-02-04 10:20:54,432 - DEBUG - Requesting: http://10.0.0.240:8082/project/abb0541b-3861-4ee4-950a-f5fe5c143214 2026-02-04 10:20:54,503 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/a09e3880-7498-4ff2-a132-6678e729be24 2026-02-04 10:20:54,512 - DEBUG - ==>Verifying data for policy with id: 945b4a85-9d0e-403e-b2a4-32a78599b3aa, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38813867', 'ctest-policy1-92472864'] 2026-02-04 10:20:54,512 - INFO - VN ctest-vn4-33574520 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-04 10:20:54,512 - DEBUG - Verifying the vn in opserver 2026-02-04 10:20:54,512 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38813867:ctest-vn4-33574520 virtual network link through opserver 10.0.0.240 2026-02-04 10:20:54,512 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-02-04 10:20:54,809 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-02-04 10:20:54,878 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38813867:ctest-vn4-33574520', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38813867:ctest-vn4-33574520?flat'} 2026-02-04 10:20:54,878 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38813867:ctest-vn4-33574520 is found in opserver 2026-02-04 10:20:54,889 - DEBUG - Do not have enough data to verify VN in agent 2026-02-04 10:20:54,894 - DEBUG - VRF ids for VN ctest-vn4-33574520: {} 2026-02-04 10:20:54,894 - DEBUG - ====Verifying data for ctest-policy1-92472864 in API_Server ====== 2026-02-04 10:20:54,894 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-04 10:20:54,900 - DEBUG - Requesting: http://10.0.0.240:8082/domain/07992f34-d864-4485-90a8-93c3905f5493 2026-02-04 10:20:54,911 - DEBUG - Requesting: http://10.0.0.240:8082/project/abb0541b-3861-4ee4-950a-f5fe5c143214 2026-02-04 10:20:54,997 - DEBUG - Requesting: http://10.0.0.240:8082/network-policy/945b4a85-9d0e-403e-b2a4-32a78599b3aa 2026-02-04 10:20:55,006 - INFO - Verified policy ctest-policy1-92472864 in API Server, Result: True 2026-02-04 10:20:55,006 - INFO - Done with setup and verification, moving onto test .. 2026-02-04 10:20:55,013 - INFO - Deleting VN ctest-vn4-33574520 2026-02-04 10:20:55,124 - DEBUG - Response for deleting network () 2026-02-04 10:20:55,124 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/2b0fb8b9-562d-4924-84fe-acdebc2e7241 2026-02-04 10:20:55,129 - DEBUG - Response Code: 404 2026-02-04 10:20:55,129 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-02-04 10:20:55,136 - DEBUG - Requesting: http://10.0.0.240:8082/domain/07992f34-d864-4485-90a8-93c3905f5493 2026-02-04 10:20:55,187 - DEBUG - Requesting: http://10.0.0.240:8082/project/abb0541b-3861-4ee4-950a-f5fe5c143214 2026-02-04 10:20:55,257 - INFO - Validated that VN ctest-vn4-33574520 is not found in API Server 2026-02-04 10:20:55,266 - DEBUG - VN ctest-vn4-33574520 is not present in Agent 10.0.0.240 2026-02-04 10:20:55,266 - INFO - Validated that VN ctest-vn4-33574520 is not in any agent 2026-02-04 10:20:55,281 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33574520 info 2026-02-04 10:20:55,305 - INFO - Deleted policy ctest-policy1-92472864 2026-02-04 10:20:55,470 - DEBUG - policy ctest-policy1-92472864 is not found in API Server 2026-02-04 10:20:55,724 - DEBUG - No XMPP flaps were noticed during the test
2026-02-04 10:20:55,725 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-04 10:20:55,725 - INFO - -------------------------------------------------------------------------------- 2026-02-04 10:20:56,011 - DEBUG - No XMPP flaps were noticed during the test
2026-02-04 10:20:56,011 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-04 10:20:56,012 - INFO - -------------------------------------------------------------------------------- 2026-02-04 10:20:56,702 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-38813867, ID : abb0541b-3861-4ee4-950a-f5fe5c143214