2026-03-13 16:58:50,043 - INFO - Domain Default found not creating 2026-03-13 16:58:50,264 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-64260993 not found, creating it 2026-03-13 16:58:50,773 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-64260993, ID : 2cf81acd-15c7-43bb-92d8-94877bcced1a 2026-03-13 16:58:52,461 - INFO - ================================================================================ 2026-03-13 16:58:52,462 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-13 16:58:52,741 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2026-03-13 16:58:52,741 - INFO - Initial checks done. Running the testcase now 2026-03-13 16:58:52,741 - INFO - 2026-03-13 16:58:52,742 - INFO - ================================================================================ 2026-03-13 16:58:52,742 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-13 16:58:52,742 - 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-03-13 16:58:53,032 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2026-03-13 16:58:53,032 - INFO - Initial checks done. Running the testcase now 2026-03-13 16:58:53,032 - INFO - 2026-03-13 16:58:53,500 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64260993:ctest-vn4-79843028, 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-64260993:ctest-vn4-79843028, 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-64260993:ctest-vn4-79843028, 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-64260993:ctest-vn4-79843028, 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-03-13 16:58:54,070 - DEBUG - Response for create_network : {'network': {'id': 'c6ded42c-6437-45d6-9bd4-7582bc4bbb62', 'name': 'ctest-vn4-79843028', 'tenant_id': '2cf81acd15c743bb92d894877bcced1a', 'project_id': '2cf81acd15c743bb92d894877bcced1a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64260993', 'ctest-vn4-79843028'], 'port_security_enabled': True, 'description': ''}} 2026-03-13 16:58:54,251 - DEBUG - Response for create_subnet : {'subnet': {'id': '0241f89c-8da6-4c61-9838-a74b5c569487', 'name': '', 'tenant_id': '2cf81acd15c743bb92d894877bcced1a', 'network_id': 'c6ded42c-6437-45d6-9bd4-7582bc4bbb62', 'ip_version': 4, 'cidr': '123.20.90.128/26', 'allocation_pools': [{'start': '123.20.90.130', 'end': '123.20.90.190'}], 'gateway_ip': '123.20.90.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.20.90.130', 'tags': [], 'project_id': '2cf81acd15c743bb92d894877bcced1a'}} 2026-03-13 16:58:54,452 - DEBUG - Response for create_subnet : {'subnet': {'id': '60559175-0c18-48c6-a7bb-6dc6058c688d', 'name': '', 'tenant_id': '2cf81acd15c743bb92d894877bcced1a', 'network_id': 'c6ded42c-6437-45d6-9bd4-7582bc4bbb62', 'ip_version': 6, 'cidr': '2550:8da:b034:bba5:900e:dc27::/96', 'allocation_pools': [{'start': '2550:8da:b034:bba5:900e:dc27:0:2', 'end': '2550:8da:b034:bba5:900e:dc27:ffff:fffe'}], 'gateway_ip': '2550:8da:b034:bba5:900e:dc27:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2550:8da:b034:bba5:900e:dc27:0:2', 'tags': [], 'project_id': '2cf81acd15c743bb92d894877bcced1a'}} 2026-03-13 16:58:54,477 - INFO - Created VN ctest-vn4-79843028 2026-03-13 16:58:54,532 - DEBUG - VN ctest-vn4-79843028 UUID is c6ded42c-6437-45d6-9bd4-7582bc4bbb62 2026-03-13 16:58:54,762 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c6ded42c-6437-45d6-9bd4-7582bc4bbb62', 'name': 'ctest-vn4-79843028', 'tenant_id': '2cf81acd15c743bb92d894877bcced1a', 'project_id': '2cf81acd15c743bb92d894877bcced1a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0241f89c-8da6-4c61-9838-a74b5c569487', '60559175-0c18-48c6-a7bb-6dc6058c688d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64260993', 'ctest-vn4-79843028'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64260993', 'ctest-policy1-17829626']], 'subnet_ipam': [{'subnet_cidr': '123.20.90.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2550:8da:b034:bba5:900e:dc27::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-13 16:58:54,936 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-13 16:58:55,257 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-13 16:58:55,296 - DEBUG - Requesting: http://10.0.0.249:8082/domain/d29060aa-f28b-49a6-91a7-56c7bf313547 2026-03-13 16:58:55,313 - DEBUG - Requesting: http://10.0.0.249:8082/project/2cf81acd-15c7-43bb-92d8-94877bcced1a 2026-03-13 16:58:55,402 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6ded42c-6437-45d6-9bd4-7582bc4bbb62 2026-03-13 16:58:55,417 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6ded42c-6437-45d6-9bd4-7582bc4bbb62 2026-03-13 16:58:55,431 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/68632c1b-9676-4d2f-8661-8af243d01d94 2026-03-13 16:58:55,443 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/68632c1b-9676-4d2f-8661-8af243d01d94 2026-03-13 16:58:55,452 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/306c5f9c-d000-4492-8ab4-65472b5e65ea 2026-03-13 16:58:55,461 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-13 16:58:55,461 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6ded42c-6437-45d6-9bd4-7582bc4bbb62 2026-03-13 16:58:55,473 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/68632c1b-9676-4d2f-8661-8af243d01d94 2026-03-13 16:58:55,490 - INFO - Verified VN network id 11 for VN c6ded42c-6437-45d6-9bd4-7582bc4bbb62 2026-03-13 16:58:55,491 - INFO - Verifications in API Server for VN ctest-vn4-79843028 passed 2026-03-13 16:58:55,491 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6ded42c-6437-45d6-9bd4-7582bc4bbb62 2026-03-13 16:58:55,503 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/68632c1b-9676-4d2f-8661-8af243d01d94 2026-03-13 16:58:55,512 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/68632c1b-9676-4d2f-8661-8af243d01d94 2026-03-13 16:58:55,522 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/306c5f9c-d000-4492-8ab4-65472b5e65ea 2026-03-13 16:58:55,540 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64260993:ctest-vn4-79843028', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-64260993', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14330124351464490454', 'uuid-lslong': '11228728975306767202'}, 'enable': 'true', 'created': '2026-03-13T16:58:54', 'last-modified': '2026-03-13T16:58:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.805877'} 2026-03-13 16:58:55,550 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-13 16:58:55,550 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-79843028 passed 2026-03-13 16:58:55,550 - DEBUG - ====Verifying policy data for ctest-vn4-79843028 in API_Server ====== 2026-03-13 16:58:55,550 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-13 16:58:55,557 - DEBUG - Requesting: http://10.0.0.249:8082/domain/d29060aa-f28b-49a6-91a7-56c7bf313547 2026-03-13 16:58:55,569 - DEBUG - Requesting: http://10.0.0.249:8082/project/2cf81acd-15c7-43bb-92d8-94877bcced1a 2026-03-13 16:58:55,642 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c6ded42c-6437-45d6-9bd4-7582bc4bbb62 2026-03-13 16:58:55,653 - DEBUG - ==>Verifying data for policy with id: 98810616-c352-4052-bb8c-41fe4248fd59, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64260993', 'ctest-policy1-17829626'] 2026-03-13 16:58:55,653 - INFO - VN ctest-vn4-79843028 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-13 16:58:55,653 - DEBUG - Verifying the vn in opserver 2026-03-13 16:58:55,653 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64260993:ctest-vn4-79843028 virtual network link through opserver 10.0.0.249 2026-03-13 16:58:55,653 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-13 16:58:55,978 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-03-13 16:58:56,051 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64260993:ctest-vn4-79843028', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64260993:ctest-vn4-79843028?flat'} 2026-03-13 16:58:56,051 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64260993:ctest-vn4-79843028 is found in opserver 2026-03-13 16:58:56,061 - DEBUG - Do not have enough data to verify VN in agent 2026-03-13 16:58:56,067 - DEBUG - VRF ids for VN ctest-vn4-79843028: {} 2026-03-13 16:58:56,067 - DEBUG - ====Verifying data for ctest-policy1-17829626 in API_Server ====== 2026-03-13 16:58:56,067 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-13 16:58:56,074 - DEBUG - Requesting: http://10.0.0.249:8082/domain/d29060aa-f28b-49a6-91a7-56c7bf313547 2026-03-13 16:58:56,087 - DEBUG - Requesting: http://10.0.0.249:8082/project/2cf81acd-15c7-43bb-92d8-94877bcced1a 2026-03-13 16:58:56,159 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/98810616-c352-4052-bb8c-41fe4248fd59 2026-03-13 16:58:56,170 - INFO - Verified policy ctest-policy1-17829626 in API Server, Result: True 2026-03-13 16:58:56,170 - INFO - Done with setup and verification, moving onto test .. 2026-03-13 16:58:56,181 - INFO - Deleting VN ctest-vn4-79843028 2026-03-13 16:58:56,340 - DEBUG - Response for deleting network () 2026-03-13 16:58:56,340 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/68632c1b-9676-4d2f-8661-8af243d01d94 2026-03-13 16:58:56,346 - DEBUG - Response Code: 404 2026-03-13 16:58:56,347 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-03-13 16:58:56,353 - DEBUG - Requesting: http://10.0.0.249:8082/domain/d29060aa-f28b-49a6-91a7-56c7bf313547 2026-03-13 16:58:56,406 - DEBUG - Requesting: http://10.0.0.249:8082/project/2cf81acd-15c7-43bb-92d8-94877bcced1a 2026-03-13 16:58:56,483 - INFO - Validated that VN ctest-vn4-79843028 is not found in API Server 2026-03-13 16:58:56,497 - DEBUG - VN ctest-vn4-79843028 is not present in Agent 10.0.0.249 2026-03-13 16:58:56,498 - INFO - Validated that VN ctest-vn4-79843028 is not in any agent 2026-03-13 16:58:56,513 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-79843028 info 2026-03-13 16:58:56,540 - INFO - Deleted policy ctest-policy1-17829626 2026-03-13 16:58:56,712 - DEBUG - policy ctest-policy1-17829626 is not found in API Server 2026-03-13 16:58:56,985 - DEBUG - No XMPP flaps were noticed during the test
2026-03-13 16:58:56,985 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-13 16:58:56,985 - INFO - -------------------------------------------------------------------------------- 2026-03-13 16:58:57,276 - DEBUG - No XMPP flaps were noticed during the test
2026-03-13 16:58:57,276 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-13 16:58:57,276 - INFO - -------------------------------------------------------------------------------- 2026-03-13 16:58:58,057 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-64260993, ID : 2cf81acd-15c7-43bb-92d8-94877bcced1a