2026-05-27 16:23:59,302 - INFO - Domain Default found not creating 2026-05-27 16:23:59,478 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80691210 not found, creating it 2026-05-27 16:23:59,946 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80691210, ID : c24ee64f-0f0c-4894-901d-fa6aca1167bf 2026-05-27 16:24:01,493 - INFO - ================================================================================ 2026-05-27 16:24:01,494 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-27 16:24:01,747 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.192': '0'}} with 2026-05-27 16:24:01,747 - INFO - Initial checks done. Running the testcase now 2026-05-27 16:24:01,747 - INFO - 2026-05-27 16:24:01,747 - INFO - ================================================================================ 2026-05-27 16:24:01,747 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-27 16:24:01,747 - 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-05-27 16:24:02,038 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.192': '0'}} with 2026-05-27 16:24:02,038 - INFO - Initial checks done. Running the testcase now 2026-05-27 16:24:02,038 - INFO - 2026-05-27 16:24:02,401 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80691210:ctest-vn4-17136632, 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-80691210:ctest-vn4-17136632, 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-80691210:ctest-vn4-17136632, 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-80691210:ctest-vn4-17136632, 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-05-27 16:24:02,913 - DEBUG - Response for create_network : {'network': {'id': '136f3673-3a59-4613-b8eb-020b09d09fea', 'name': 'ctest-vn4-17136632', 'tenant_id': 'c24ee64f0f0c4894901dfa6aca1167bf', 'project_id': 'c24ee64f0f0c4894901dfa6aca1167bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80691210', 'ctest-vn4-17136632'], 'port_security_enabled': True, 'description': ''}} 2026-05-27 16:24:03,113 - DEBUG - Response for create_subnet : {'subnet': {'id': '13b3b3bd-54fb-4a57-9b4d-ce43dbe4c356', 'name': '', 'tenant_id': 'c24ee64f0f0c4894901dfa6aca1167bf', 'network_id': '136f3673-3a59-4613-b8eb-020b09d09fea', 'ip_version': 4, 'cidr': '156.228.114.64/26', 'allocation_pools': [{'start': '156.228.114.66', 'end': '156.228.114.126'}], 'gateway_ip': '156.228.114.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.228.114.66', 'tags': [], 'project_id': 'c24ee64f0f0c4894901dfa6aca1167bf'}} 2026-05-27 16:24:03,311 - DEBUG - Response for create_subnet : {'subnet': {'id': '32b64a04-cb49-45e0-8db6-dab897d2e2e7', 'name': '', 'tenant_id': 'c24ee64f0f0c4894901dfa6aca1167bf', 'network_id': '136f3673-3a59-4613-b8eb-020b09d09fea', 'ip_version': 6, 'cidr': '209c:ea43:f1e2:c98a:530:5595::/96', 'allocation_pools': [{'start': '209c:ea43:f1e2:c98a:530:5595:0:2', 'end': '209c:ea43:f1e2:c98a:530:5595:ffff:fffe'}], 'gateway_ip': '209c:ea43:f1e2:c98a:530:5595:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209c:ea43:f1e2:c98a:530:5595:0:2', 'tags': [], 'project_id': 'c24ee64f0f0c4894901dfa6aca1167bf'}} 2026-05-27 16:24:03,332 - INFO - Created VN ctest-vn4-17136632 2026-05-27 16:24:03,385 - DEBUG - VN ctest-vn4-17136632 UUID is 136f3673-3a59-4613-b8eb-020b09d09fea 2026-05-27 16:24:03,585 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '136f3673-3a59-4613-b8eb-020b09d09fea', 'name': 'ctest-vn4-17136632', 'tenant_id': 'c24ee64f0f0c4894901dfa6aca1167bf', 'project_id': 'c24ee64f0f0c4894901dfa6aca1167bf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['13b3b3bd-54fb-4a57-9b4d-ce43dbe4c356', '32b64a04-cb49-45e0-8db6-dab897d2e2e7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80691210', 'ctest-vn4-17136632'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80691210', 'ctest-policy1-94840705']], 'subnet_ipam': [{'subnet_cidr': '156.228.114.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '209c:ea43:f1e2:c98a:530:5595::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-27 16:24:03,749 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-27 16:24:04,045 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-27 16:24:04,075 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b1935a7c-2485-4e97-8396-41f45e2a6ab0 2026-05-27 16:24:04,086 - DEBUG - Requesting: http://10.0.0.141:8082/project/c24ee64f-0f0c-4894-901d-fa6aca1167bf 2026-05-27 16:24:04,155 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/136f3673-3a59-4613-b8eb-020b09d09fea 2026-05-27 16:24:04,166 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/136f3673-3a59-4613-b8eb-020b09d09fea 2026-05-27 16:24:04,175 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/bb181f16-173d-43ec-b780-cc70c304a8b5 2026-05-27 16:24:04,182 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/bb181f16-173d-43ec-b780-cc70c304a8b5 2026-05-27 16:24:04,189 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f0d42a9c-78c0-4f33-96ed-9e97dbdb37a5 2026-05-27 16:24:04,196 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 16:24:04,196 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/136f3673-3a59-4613-b8eb-020b09d09fea 2026-05-27 16:24:04,207 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/bb181f16-173d-43ec-b780-cc70c304a8b5 2026-05-27 16:24:04,222 - INFO - Verified VN network id 11 for VN 136f3673-3a59-4613-b8eb-020b09d09fea 2026-05-27 16:24:04,222 - INFO - Verifications in API Server for VN ctest-vn4-17136632 passed 2026-05-27 16:24:04,222 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/136f3673-3a59-4613-b8eb-020b09d09fea 2026-05-27 16:24:04,231 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/bb181f16-173d-43ec-b780-cc70c304a8b5 2026-05-27 16:24:04,238 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/bb181f16-173d-43ec-b780-cc70c304a8b5 2026-05-27 16:24:04,245 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/f0d42a9c-78c0-4f33-96ed-9e97dbdb37a5 2026-05-27 16:24:04,257 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80691210:ctest-vn4-17136632', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80691210', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1400397877663581715', 'uuid-lslong': '13324746168938307562'}, 'enable': 'true', 'created': '2026-05-27T16:24:02', 'last-modified': '2026-05-27T16:24:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.696205'} 2026-05-27 16:24:04,263 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-27 16:24:04,263 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-17136632 passed 2026-05-27 16:24:04,263 - DEBUG - ====Verifying policy data for ctest-vn4-17136632 in API_Server ====== 2026-05-27 16:24:04,263 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-27 16:24:04,268 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b1935a7c-2485-4e97-8396-41f45e2a6ab0 2026-05-27 16:24:04,278 - DEBUG - Requesting: http://10.0.0.141:8082/project/c24ee64f-0f0c-4894-901d-fa6aca1167bf 2026-05-27 16:24:04,347 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/136f3673-3a59-4613-b8eb-020b09d09fea 2026-05-27 16:24:04,358 - DEBUG - ==>Verifying data for policy with id: 37ca006f-afa6-4a50-be43-5d6e59940096, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80691210', 'ctest-policy1-94840705'] 2026-05-27 16:24:04,358 - INFO - VN ctest-vn4-17136632 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-27 16:24:04,358 - DEBUG - Verifying the vn in opserver 2026-05-27 16:24:04,358 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80691210:ctest-vn4-17136632 virtual network link through opserver 10.0.0.141 2026-05-27 16:24:04,358 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-05-27 16:24:04,651 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-05-27 16:24:04,712 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80691210:ctest-vn4-17136632', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80691210:ctest-vn4-17136632?flat'} 2026-05-27 16:24:04,712 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80691210:ctest-vn4-17136632 is found in opserver 2026-05-27 16:24:04,722 - DEBUG - Do not have enough data to verify VN in agent 2026-05-27 16:24:04,726 - DEBUG - VRF ids for VN ctest-vn4-17136632: {} 2026-05-27 16:24:04,727 - DEBUG - ====Verifying data for ctest-policy1-94840705 in API_Server ====== 2026-05-27 16:24:04,727 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-27 16:24:04,732 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b1935a7c-2485-4e97-8396-41f45e2a6ab0 2026-05-27 16:24:04,744 - DEBUG - Requesting: http://10.0.0.141:8082/project/c24ee64f-0f0c-4894-901d-fa6aca1167bf 2026-05-27 16:24:04,817 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/37ca006f-afa6-4a50-be43-5d6e59940096 2026-05-27 16:24:04,826 - INFO - Verified policy ctest-policy1-94840705 in API Server, Result: True 2026-05-27 16:24:04,826 - INFO - Done with setup and verification, moving onto test .. 2026-05-27 16:24:04,843 - INFO - Deleting VN ctest-vn4-17136632 2026-05-27 16:24:04,973 - DEBUG - Response for deleting network () 2026-05-27 16:24:04,973 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/bb181f16-173d-43ec-b780-cc70c304a8b5 2026-05-27 16:24:04,978 - DEBUG - Response Code: 404 2026-05-27 16:24:04,978 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-05-27 16:24:04,983 - DEBUG - Requesting: http://10.0.0.141:8082/domain/b1935a7c-2485-4e97-8396-41f45e2a6ab0 2026-05-27 16:24:05,039 - DEBUG - Requesting: http://10.0.0.141:8082/project/c24ee64f-0f0c-4894-901d-fa6aca1167bf 2026-05-27 16:24:05,111 - INFO - Validated that VN ctest-vn4-17136632 is not found in API Server 2026-05-27 16:24:05,122 - DEBUG - VN ctest-vn4-17136632 is not present in Agent 10.0.0.141 2026-05-27 16:24:05,122 - INFO - Validated that VN ctest-vn4-17136632 is not in any agent 2026-05-27 16:24:05,139 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-17136632 info 2026-05-27 16:24:05,169 - INFO - Deleted policy ctest-policy1-94840705 2026-05-27 16:24:05,329 - DEBUG - policy ctest-policy1-94840705 is not found in API Server 2026-05-27 16:24:05,587 - DEBUG - No XMPP flaps were noticed during the test 2026-05-27 16:24:05,587 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-27 16:24:05,587 - INFO - -------------------------------------------------------------------------------- 2026-05-27 16:24:05,874 - DEBUG - No XMPP flaps were noticed during the test 2026-05-27 16:24:05,874 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-27 16:24:05,874 - INFO - -------------------------------------------------------------------------------- 2026-05-27 16:24:06,552 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-80691210, ID : c24ee64f-0f0c-4894-901d-fa6aca1167bf