2026-06-18 18:27:58,366 - INFO - Domain Default found not creating 2026-06-18 18:27:58,497 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-41169283 not found, creating it 2026-06-18 18:27:58,943 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-41169283, ID : ec2fb73b-2112-4cdc-a036-d7fb78b803eb 2026-06-18 18:28:00,310 - INFO - ================================================================================ 2026-06-18 18:28:00,310 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 18:28:00,570 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-18 18:28:00,570 - INFO - Initial checks done. Running the testcase now 2026-06-18 18:28:00,570 - INFO - 2026-06-18 18:28:00,571 - INFO - ================================================================================ 2026-06-18 18:28:00,571 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-18 18:28:00,571 - 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 18:28:00,862 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-06-18 18:28:00,862 - INFO - Initial checks done. Running the testcase now 2026-06-18 18:28:00,862 - INFO - 2026-06-18 18:28:01,220 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41169283:ctest-vn4-56507277, 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-41169283:ctest-vn4-56507277, 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-41169283:ctest-vn4-56507277, 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-41169283:ctest-vn4-56507277, 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 18:28:01,753 - DEBUG - Response for create_network : {'network': {'id': '42eb05f1-8bac-47a9-b480-d65fc19054da', 'name': 'ctest-vn4-56507277', 'tenant_id': 'ec2fb73b21124cdca036d7fb78b803eb', 'project_id': 'ec2fb73b21124cdca036d7fb78b803eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41169283', 'ctest-vn4-56507277'], 'port_security_enabled': True, 'description': ''}} 2026-06-18 18:28:01,958 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b532fea-25d7-4435-b46e-99e3fca5a3d2', 'name': '', 'tenant_id': 'ec2fb73b21124cdca036d7fb78b803eb', 'network_id': '42eb05f1-8bac-47a9-b480-d65fc19054da', 'ip_version': 4, 'cidr': '149.187.158.64/26', 'allocation_pools': [{'start': '149.187.158.66', 'end': '149.187.158.126'}], 'gateway_ip': '149.187.158.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.187.158.66', 'tags': [], 'project_id': 'ec2fb73b21124cdca036d7fb78b803eb'}} 2026-06-18 18:28:02,090 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e605b485-1bc6-4bf4-921f-d4404c5474c7', 'name': '', 'tenant_id': 'ec2fb73b21124cdca036d7fb78b803eb', 'network_id': '42eb05f1-8bac-47a9-b480-d65fc19054da', 'ip_version': 6, 'cidr': '30ad:113a:2daa:ba38:8979:c9d::/96', 'allocation_pools': [{'start': '30ad:113a:2daa:ba38:8979:c9d:0:2', 'end': '30ad:113a:2daa:ba38:8979:c9d:ffff:fffe'}], 'gateway_ip': '30ad:113a:2daa:ba38:8979:c9d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30ad:113a:2daa:ba38:8979:c9d:0:2', 'tags': [], 'project_id': 'ec2fb73b21124cdca036d7fb78b803eb'}} 2026-06-18 18:28:02,106 - INFO - Created VN ctest-vn4-56507277 2026-06-18 18:28:02,158 - DEBUG - VN ctest-vn4-56507277 UUID is 42eb05f1-8bac-47a9-b480-d65fc19054da 2026-06-18 18:28:02,320 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '42eb05f1-8bac-47a9-b480-d65fc19054da', 'name': 'ctest-vn4-56507277', 'tenant_id': 'ec2fb73b21124cdca036d7fb78b803eb', 'project_id': 'ec2fb73b21124cdca036d7fb78b803eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b532fea-25d7-4435-b46e-99e3fca5a3d2', 'e605b485-1bc6-4bf4-921f-d4404c5474c7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41169283', 'ctest-vn4-56507277'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41169283', 'ctest-policy1-96695492']], 'subnet_ipam': [{'subnet_cidr': '149.187.158.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30ad:113a:2daa:ba38:8979:c9d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-18 18:28:02,478 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 18:28:02,792 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 18:28:02,814 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f2dbac5c-369a-452a-bfb4-30610a9b102b 2026-06-18 18:28:02,825 - DEBUG - Requesting: http://10.0.0.38:8082/project/ec2fb73b-2112-4cdc-a036-d7fb78b803eb 2026-06-18 18:28:02,891 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/42eb05f1-8bac-47a9-b480-d65fc19054da 2026-06-18 18:28:02,902 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/42eb05f1-8bac-47a9-b480-d65fc19054da 2026-06-18 18:28:02,910 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8748f093-2e14-4c75-ae6b-0495ab59c760 2026-06-18 18:28:02,916 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8748f093-2e14-4c75-ae6b-0495ab59c760 2026-06-18 18:28:02,922 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1dcaafd6-41d2-4117-888c-effd624a90fe 2026-06-18 18:28:02,927 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 18:28:02,927 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/42eb05f1-8bac-47a9-b480-d65fc19054da 2026-06-18 18:28:02,935 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8748f093-2e14-4c75-ae6b-0495ab59c760 2026-06-18 18:28:02,947 - INFO - Verified VN network id 11 for VN 42eb05f1-8bac-47a9-b480-d65fc19054da 2026-06-18 18:28:02,947 - INFO - Verifications in API Server for VN ctest-vn4-56507277 passed 2026-06-18 18:28:02,947 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/42eb05f1-8bac-47a9-b480-d65fc19054da 2026-06-18 18:28:02,955 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8748f093-2e14-4c75-ae6b-0495ab59c760 2026-06-18 18:28:02,960 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8748f093-2e14-4c75-ae6b-0495ab59c760 2026-06-18 18:28:02,965 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1dcaafd6-41d2-4117-888c-effd624a90fe 2026-06-18 18:28:02,975 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41169283:ctest-vn4-56507277', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-41169283', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4821954361018828713', 'uuid-lslong': '13006631430603691226'}, 'enable': 'true', 'created': '2026-06-18T18:28:01', 'last-modified': '2026-06-18T18:28:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.673947'} 2026-06-18 18:28:02,980 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-18 18:28:02,980 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-56507277 passed 2026-06-18 18:28:02,980 - DEBUG - ====Verifying policy data for ctest-vn4-56507277 in API_Server ====== 2026-06-18 18:28:02,980 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 18:28:02,984 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f2dbac5c-369a-452a-bfb4-30610a9b102b 2026-06-18 18:28:02,993 - DEBUG - Requesting: http://10.0.0.38:8082/project/ec2fb73b-2112-4cdc-a036-d7fb78b803eb 2026-06-18 18:28:03,059 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/42eb05f1-8bac-47a9-b480-d65fc19054da 2026-06-18 18:28:03,067 - DEBUG - ==>Verifying data for policy with id: a79084c6-d3ee-4f60-b396-00c067415376, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41169283', 'ctest-policy1-96695492'] 2026-06-18 18:28:03,067 - INFO - VN ctest-vn4-56507277 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-18 18:28:03,067 - DEBUG - Verifying the vn in opserver 2026-06-18 18:28:03,067 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41169283:ctest-vn4-56507277 virtual network link through opserver 10.0.0.38 2026-06-18 18:28:03,067 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-18 18:28:03,386 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-18 18:28:03,429 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41169283:ctest-vn4-56507277', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41169283:ctest-vn4-56507277?flat'} 2026-06-18 18:28:03,429 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41169283:ctest-vn4-56507277 is found in opserver 2026-06-18 18:28:03,437 - DEBUG - Do not have enough data to verify VN in agent 2026-06-18 18:28:03,440 - DEBUG - VRF ids for VN ctest-vn4-56507277: {} 2026-06-18 18:28:03,441 - DEBUG - ====Verifying data for ctest-policy1-96695492 in API_Server ====== 2026-06-18 18:28:03,441 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 18:28:03,445 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f2dbac5c-369a-452a-bfb4-30610a9b102b 2026-06-18 18:28:03,454 - DEBUG - Requesting: http://10.0.0.38:8082/project/ec2fb73b-2112-4cdc-a036-d7fb78b803eb 2026-06-18 18:28:03,523 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/a79084c6-d3ee-4f60-b396-00c067415376 2026-06-18 18:28:03,532 - INFO - Verified policy ctest-policy1-96695492 in API Server, Result: True 2026-06-18 18:28:03,532 - INFO - Done with setup and verification, moving onto test .. 2026-06-18 18:28:03,538 - INFO - Deleting VN ctest-vn4-56507277 2026-06-18 18:28:03,640 - DEBUG - Response for deleting network () 2026-06-18 18:28:03,640 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8748f093-2e14-4c75-ae6b-0495ab59c760 2026-06-18 18:28:03,644 - DEBUG - Response Code: 404 2026-06-18 18:28:03,644 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-18 18:28:03,648 - DEBUG - Requesting: http://10.0.0.38:8082/domain/f2dbac5c-369a-452a-bfb4-30610a9b102b 2026-06-18 18:28:03,698 - DEBUG - Requesting: http://10.0.0.38:8082/project/ec2fb73b-2112-4cdc-a036-d7fb78b803eb 2026-06-18 18:28:03,766 - INFO - Validated that VN ctest-vn4-56507277 is not found in API Server 2026-06-18 18:28:03,774 - DEBUG - VN ctest-vn4-56507277 is not present in Agent 10.0.0.38 2026-06-18 18:28:03,774 - INFO - Validated that VN ctest-vn4-56507277 is not in any agent 2026-06-18 18:28:03,786 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-56507277 info 2026-06-18 18:28:03,804 - INFO - Deleted policy ctest-policy1-96695492 2026-06-18 18:28:03,962 - DEBUG - policy ctest-policy1-96695492 is not found in API Server 2026-06-18 18:28:04,214 - DEBUG - No XMPP flaps were noticed during the test 2026-06-18 18:28:04,214 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-18 18:28:04,214 - INFO - -------------------------------------------------------------------------------- 2026-06-18 18:28:04,498 - DEBUG - No XMPP flaps were noticed during the test 2026-06-18 18:28:04,498 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-06-18 18:28:04,498 - INFO - -------------------------------------------------------------------------------- 2026-06-18 18:28:05,149 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-41169283, ID : ec2fb73b-2112-4cdc-a036-d7fb78b803eb