2026-06-18 14:11:05,518 - INFO - Domain Default found not creating 2026-06-18 14:11:05,656 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68111896 not found, creating it 2026-06-18 14:11:06,094 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68111896, ID : 090a98df-e518-4d61-af80-ececefe00e4e 2026-06-18 14:11:07,683 - INFO - ================================================================================ 2026-06-18 14:11:07,683 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 14:11:07,951 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-18 14:11:07,951 - INFO - Initial checks done. Running the testcase now 2026-06-18 14:11:07,951 - INFO - 2026-06-18 14:11:07,951 - INFO - ================================================================================ 2026-06-18 14:11:07,951 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 14:11:07,951 - 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-18 14:11:08,240 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-18 14:11:08,240 - INFO - Initial checks done. Running the testcase now 2026-06-18 14:11:08,240 - INFO - 2026-06-18 14:11:08,653 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68111896:ctest-vn4-51649608, 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-68111896:ctest-vn4-51649608, 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-68111896:ctest-vn4-51649608, 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-68111896:ctest-vn4-51649608, 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-18 14:11:09,140 - DEBUG - Response for create_network : {'network': {'id': 'e6c2460e-edd9-4e73-b245-13a261d6c811', 'name': 'ctest-vn4-51649608', 'tenant_id': '090a98dfe5184d61af80ececefe00e4e', 'project_id': '090a98dfe5184d61af80ececefe00e4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68111896', 'ctest-vn4-51649608'], 'port_security_enabled': True, 'description': ''}} 2026-06-18 14:11:09,305 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa4279f7-f981-46a1-84ce-3cc8890b128c', 'name': '', 'tenant_id': '090a98dfe5184d61af80ececefe00e4e', 'network_id': 'e6c2460e-edd9-4e73-b245-13a261d6c811', 'ip_version': 4, 'cidr': '214.5.10.128/26', 'allocation_pools': [{'start': '214.5.10.130', 'end': '214.5.10.190'}], 'gateway_ip': '214.5.10.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214.5.10.130', 'tags': [], 'project_id': '090a98dfe5184d61af80ececefe00e4e'}} 2026-06-18 14:11:09,508 - DEBUG - Response for create_subnet : {'subnet': {'id': '394eccf5-d93c-459d-9c4f-5dddf6cac65b', 'name': '', 'tenant_id': '090a98dfe5184d61af80ececefe00e4e', 'network_id': 'e6c2460e-edd9-4e73-b245-13a261d6c811', 'ip_version': 6, 'cidr': '260e:e6c9:50bc:8e1a:4232:4291::/96', 'allocation_pools': [{'start': '260e:e6c9:50bc:8e1a:4232:4291:0:2', 'end': '260e:e6c9:50bc:8e1a:4232:4291:ffff:fffe'}], 'gateway_ip': '260e:e6c9:50bc:8e1a:4232:4291:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '260e:e6c9:50bc:8e1a:4232:4291:0:2', 'tags': [], 'project_id': '090a98dfe5184d61af80ececefe00e4e'}} 2026-06-18 14:11:09,525 - INFO - Created VN ctest-vn4-51649608 2026-06-18 14:11:09,575 - DEBUG - VN ctest-vn4-51649608 UUID is e6c2460e-edd9-4e73-b245-13a261d6c811 2026-06-18 14:11:09,763 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e6c2460e-edd9-4e73-b245-13a261d6c811', 'name': 'ctest-vn4-51649608', 'tenant_id': '090a98dfe5184d61af80ececefe00e4e', 'project_id': '090a98dfe5184d61af80ececefe00e4e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa4279f7-f981-46a1-84ce-3cc8890b128c', '394eccf5-d93c-459d-9c4f-5dddf6cac65b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68111896', 'ctest-vn4-51649608'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68111896', 'ctest-policy1-10573653']], 'subnet_ipam': [{'subnet_cidr': '214.5.10.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '260e:e6c9:50bc:8e1a:4232:4291::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-18 14:11:09,919 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 14:11:10,294 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 14:11:10,325 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fbd3fc36-612d-4093-a3df-8730abea2e9c 2026-06-18 14:11:10,335 - DEBUG - Requesting: http://10.0.0.38:8082/project/090a98df-e518-4d61-af80-ececefe00e4e 2026-06-18 14:11:10,407 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6c2460e-edd9-4e73-b245-13a261d6c811 2026-06-18 14:11:10,419 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6c2460e-edd9-4e73-b245-13a261d6c811 2026-06-18 14:11:10,428 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/abc4c40a-ef86-4707-a6a7-4bb90fdec8bc 2026-06-18 14:11:10,435 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/abc4c40a-ef86-4707-a6a7-4bb90fdec8bc 2026-06-18 14:11:10,441 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/81241855-f485-4e31-b051-7e1426b6f1d7 2026-06-18 14:11:10,447 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 14:11:10,447 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6c2460e-edd9-4e73-b245-13a261d6c811 2026-06-18 14:11:10,455 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/abc4c40a-ef86-4707-a6a7-4bb90fdec8bc 2026-06-18 14:11:10,467 - INFO - Verified VN network id 11 for VN e6c2460e-edd9-4e73-b245-13a261d6c811 2026-06-18 14:11:10,467 - INFO - Verifications in API Server for VN ctest-vn4-51649608 passed 2026-06-18 14:11:10,467 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6c2460e-edd9-4e73-b245-13a261d6c811 2026-06-18 14:11:10,477 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/abc4c40a-ef86-4707-a6a7-4bb90fdec8bc 2026-06-18 14:11:10,483 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/abc4c40a-ef86-4707-a6a7-4bb90fdec8bc 2026-06-18 14:11:10,489 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/81241855-f485-4e31-b051-7e1426b6f1d7 2026-06-18 14:11:10,499 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68111896:ctest-vn4-51649608', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68111896', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16627929804139220595', 'uuid-lslong': '12845695100291303441'}, 'enable': 'true', 'created': '2026-06-18T14:11:09', 'last-modified': '2026-06-18T14:11:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.761631'} 2026-06-18 14:11:10,506 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 14:11:10,506 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-51649608 passed 2026-06-18 14:11:10,506 - DEBUG - ====Verifying policy data for ctest-vn4-51649608 in API_Server ====== 2026-06-18 14:11:10,506 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 14:11:10,511 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fbd3fc36-612d-4093-a3df-8730abea2e9c 2026-06-18 14:11:10,520 - DEBUG - Requesting: http://10.0.0.38:8082/project/090a98df-e518-4d61-af80-ececefe00e4e 2026-06-18 14:11:10,600 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e6c2460e-edd9-4e73-b245-13a261d6c811 2026-06-18 14:11:10,610 - DEBUG - ==>Verifying data for policy with id: 2bc09cd6-1929-4a51-986c-0956e17022de, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68111896', 'ctest-policy1-10573653'] 2026-06-18 14:11:10,610 - INFO - VN ctest-vn4-51649608 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-18 14:11:10,610 - DEBUG - Verifying the vn in opserver 2026-06-18 14:11:10,610 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68111896:ctest-vn4-51649608 virtual network link through opserver 10.0.0.38 2026-06-18 14:11:10,610 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-18 14:11:10,971 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-18 14:11:11,032 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68111896:ctest-vn4-51649608', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68111896:ctest-vn4-51649608?flat'} 2026-06-18 14:11:11,032 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68111896:ctest-vn4-51649608 is found in opserver 2026-06-18 14:11:11,043 - DEBUG - Do not have enough data to verify VN in agent 2026-06-18 14:11:11,049 - DEBUG - VRF ids for VN ctest-vn4-51649608: {} 2026-06-18 14:11:11,049 - DEBUG - ====Verifying data for ctest-policy1-10573653 in API_Server ====== 2026-06-18 14:11:11,049 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 14:11:11,054 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fbd3fc36-612d-4093-a3df-8730abea2e9c 2026-06-18 14:11:11,064 - DEBUG - Requesting: http://10.0.0.38:8082/project/090a98df-e518-4d61-af80-ececefe00e4e 2026-06-18 14:11:11,144 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/2bc09cd6-1929-4a51-986c-0956e17022de 2026-06-18 14:11:11,153 - INFO - Verified policy ctest-policy1-10573653 in API Server, Result: True 2026-06-18 14:11:11,153 - INFO - Done with setup and verification, moving onto test .. 2026-06-18 14:11:11,160 - INFO - Deleting VN ctest-vn4-51649608 2026-06-18 14:11:11,281 - DEBUG - Response for deleting network () 2026-06-18 14:11:11,281 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/abc4c40a-ef86-4707-a6a7-4bb90fdec8bc 2026-06-18 14:11:11,287 - DEBUG - Response Code: 404 2026-06-18 14:11:11,287 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 14:11:11,291 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fbd3fc36-612d-4093-a3df-8730abea2e9c 2026-06-18 14:11:11,343 - DEBUG - Requesting: http://10.0.0.38:8082/project/090a98df-e518-4d61-af80-ececefe00e4e 2026-06-18 14:11:11,409 - INFO - Validated that VN ctest-vn4-51649608 is not found in API Server 2026-06-18 14:11:11,420 - DEBUG - VN ctest-vn4-51649608 is not present in Agent 10.0.0.38 2026-06-18 14:11:11,420 - INFO - Validated that VN ctest-vn4-51649608 is not in any agent 2026-06-18 14:11:11,434 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-51649608 info 2026-06-18 14:11:11,453 - INFO - Deleted policy ctest-policy1-10573653 2026-06-18 14:11:11,619 - DEBUG - policy ctest-policy1-10573653 is not found in API Server 2026-06-18 14:11:11,875 - DEBUG - No XMPP flaps were noticed during the test
2026-06-18 14:11:11,875 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-06-18 14:11:11,875 - INFO - -------------------------------------------------------------------------------- 2026-06-18 14:11:12,172 - DEBUG - No XMPP flaps were noticed during the test
2026-06-18 14:11:12,172 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-06-18 14:11:12,172 - INFO - -------------------------------------------------------------------------------- 2026-06-18 14:11:12,924 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-68111896, ID : 090a98df-e518-4d61-af80-ececefe00e4e