2026-04-20 02:07:23,324 - INFO - Domain Default found not creating 2026-04-20 02:07:23,458 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-92666684 not found, creating it 2026-04-20 02:07:23,893 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-92666684, ID : a5bf1b14-8e3e-425b-b658-da890131ea4f 2026-04-20 02:07:25,258 - INFO - ================================================================================ 2026-04-20 02:07:25,258 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 02:07:25,516 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2026-04-20 02:07:25,517 - INFO - Initial checks done. Running the testcase now 2026-04-20 02:07:25,517 - INFO - 2026-04-20 02:07:25,517 - INFO - ================================================================================ 2026-04-20 02:07:25,517 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 02:07:25,517 - 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-04-20 02:07:25,808 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with 2026-04-20 02:07:25,808 - INFO - Initial checks done. Running the testcase now 2026-04-20 02:07:25,808 - INFO - 2026-04-20 02:07:26,146 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92666684:ctest-vn4-83105437, 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-92666684:ctest-vn4-83105437, 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-92666684:ctest-vn4-83105437, 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-92666684:ctest-vn4-83105437, 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-04-20 02:07:26,619 - DEBUG - Response for create_network : {'network': {'id': 'c7c5ed11-e0a8-4002-8a90-d156b208f3d5', 'name': 'ctest-vn4-83105437', 'tenant_id': 'a5bf1b148e3e425bb658da890131ea4f', 'project_id': 'a5bf1b148e3e425bb658da890131ea4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92666684', 'ctest-vn4-83105437'], 'port_security_enabled': True, 'description': ''}} 2026-04-20 02:07:26,824 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b34e424-9f5f-4d77-852c-9f1857cd467c', 'name': '', 'tenant_id': 'a5bf1b148e3e425bb658da890131ea4f', 'network_id': 'c7c5ed11-e0a8-4002-8a90-d156b208f3d5', 'ip_version': 4, 'cidr': '168.74.221.64/26', 'allocation_pools': [{'start': '168.74.221.66', 'end': '168.74.221.126'}], 'gateway_ip': '168.74.221.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.74.221.66', 'tags': [], 'project_id': 'a5bf1b148e3e425bb658da890131ea4f'}} 2026-04-20 02:07:26,982 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c0fd4ee-0c64-4b6f-be76-e12c7140b9ca', 'name': '', 'tenant_id': 'a5bf1b148e3e425bb658da890131ea4f', 'network_id': 'c7c5ed11-e0a8-4002-8a90-d156b208f3d5', 'ip_version': 6, 'cidr': '2b7c:150a:3428:47f3:54c3:3663::/96', 'allocation_pools': [{'start': '2b7c:150a:3428:47f3:54c3:3663:0:2', 'end': '2b7c:150a:3428:47f3:54c3:3663:ffff:fffe'}], 'gateway_ip': '2b7c:150a:3428:47f3:54c3:3663:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b7c:150a:3428:47f3:54c3:3663:0:2', 'tags': [], 'project_id': 'a5bf1b148e3e425bb658da890131ea4f'}} 2026-04-20 02:07:26,998 - INFO - Created VN ctest-vn4-83105437 2026-04-20 02:07:27,047 - DEBUG - VN ctest-vn4-83105437 UUID is c7c5ed11-e0a8-4002-8a90-d156b208f3d5 2026-04-20 02:07:27,218 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c7c5ed11-e0a8-4002-8a90-d156b208f3d5', 'name': 'ctest-vn4-83105437', 'tenant_id': 'a5bf1b148e3e425bb658da890131ea4f', 'project_id': 'a5bf1b148e3e425bb658da890131ea4f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b34e424-9f5f-4d77-852c-9f1857cd467c', '4c0fd4ee-0c64-4b6f-be76-e12c7140b9ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92666684', 'ctest-vn4-83105437'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92666684', 'ctest-policy1-76663284']], 'subnet_ipam': [{'subnet_cidr': '168.74.221.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b7c:150a:3428:47f3:54c3:3663::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-20 02:07:27,375 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-20 02:07:27,666 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-20 02:07:27,692 - DEBUG - Requesting: http://10.0.0.41:8082/domain/8dbe7c18-3fac-4f6b-8993-d8c652ef417b 2026-04-20 02:07:27,702 - DEBUG - Requesting: http://10.0.0.41:8082/project/a5bf1b14-8e3e-425b-b658-da890131ea4f 2026-04-20 02:07:27,770 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7c5ed11-e0a8-4002-8a90-d156b208f3d5 2026-04-20 02:07:27,780 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7c5ed11-e0a8-4002-8a90-d156b208f3d5 2026-04-20 02:07:27,788 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/836f93eb-8b93-4a73-a12e-4830d917ef17 2026-04-20 02:07:27,793 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/836f93eb-8b93-4a73-a12e-4830d917ef17 2026-04-20 02:07:27,798 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/485f3629-ab01-4e98-bdd7-db975d704f14 2026-04-20 02:07:27,802 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 02:07:27,802 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7c5ed11-e0a8-4002-8a90-d156b208f3d5 2026-04-20 02:07:27,810 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/836f93eb-8b93-4a73-a12e-4830d917ef17 2026-04-20 02:07:27,820 - INFO - Verified VN network id 12 for VN c7c5ed11-e0a8-4002-8a90-d156b208f3d5 2026-04-20 02:07:27,820 - INFO - Verifications in API Server for VN ctest-vn4-83105437 passed 2026-04-20 02:07:27,820 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7c5ed11-e0a8-4002-8a90-d156b208f3d5 2026-04-20 02:07:27,828 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/836f93eb-8b93-4a73-a12e-4830d917ef17 2026-04-20 02:07:27,833 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/836f93eb-8b93-4a73-a12e-4830d917ef17 2026-04-20 02:07:27,838 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/485f3629-ab01-4e98-bdd7-db975d704f14 2026-04-20 02:07:27,847 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92666684:ctest-vn4-83105437', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-92666684', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14395172444999008258', 'uuid-lslong': '9984710544164713429'}, 'enable': 'true', 'created': '2026-04-20T02:07:26', 'last-modified': '2026-04-20T02:07:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.649738'} 2026-04-20 02:07:27,851 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 02:07:27,852 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-83105437 passed 2026-04-20 02:07:27,852 - DEBUG - ====Verifying policy data for ctest-vn4-83105437 in API_Server ====== 2026-04-20 02:07:27,852 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-20 02:07:27,856 - DEBUG - Requesting: http://10.0.0.41:8082/domain/8dbe7c18-3fac-4f6b-8993-d8c652ef417b 2026-04-20 02:07:27,865 - DEBUG - Requesting: http://10.0.0.41:8082/project/a5bf1b14-8e3e-425b-b658-da890131ea4f 2026-04-20 02:07:27,930 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c7c5ed11-e0a8-4002-8a90-d156b208f3d5 2026-04-20 02:07:27,938 - DEBUG - ==>Verifying data for policy with id: 63166f04-0550-4e1d-a5d2-1f9861820d3d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-92666684', 'ctest-policy1-76663284'] 2026-04-20 02:07:27,938 - INFO - VN ctest-vn4-83105437 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-20 02:07:27,938 - DEBUG - Verifying the vn in opserver 2026-04-20 02:07:27,938 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92666684:ctest-vn4-83105437 virtual network link through opserver 10.0.0.41 2026-04-20 02:07:27,938 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-04-20 02:07:28,227 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-04-20 02:07:28,280 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92666684:ctest-vn4-83105437', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92666684:ctest-vn4-83105437?flat'} 2026-04-20 02:07:28,280 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-92666684:ctest-vn4-83105437 is found in opserver 2026-04-20 02:07:28,289 - DEBUG - Do not have enough data to verify VN in agent 2026-04-20 02:07:28,293 - DEBUG - VRF ids for VN ctest-vn4-83105437: {} 2026-04-20 02:07:28,293 - DEBUG - ====Verifying data for ctest-policy1-76663284 in API_Server ====== 2026-04-20 02:07:28,293 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-20 02:07:28,298 - DEBUG - Requesting: http://10.0.0.41:8082/domain/8dbe7c18-3fac-4f6b-8993-d8c652ef417b 2026-04-20 02:07:28,307 - DEBUG - Requesting: http://10.0.0.41:8082/project/a5bf1b14-8e3e-425b-b658-da890131ea4f 2026-04-20 02:07:28,373 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/63166f04-0550-4e1d-a5d2-1f9861820d3d 2026-04-20 02:07:28,381 - INFO - Verified policy ctest-policy1-76663284 in API Server, Result: True 2026-04-20 02:07:28,381 - INFO - Done with setup and verification, moving onto test .. 2026-04-20 02:07:28,390 - INFO - Deleting VN ctest-vn4-83105437 2026-04-20 02:07:28,484 - DEBUG - Response for deleting network () 2026-04-20 02:07:28,484 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/836f93eb-8b93-4a73-a12e-4830d917ef17 2026-04-20 02:07:28,487 - DEBUG - Response Code: 404 2026-04-20 02:07:28,488 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-04-20 02:07:28,492 - DEBUG - Requesting: http://10.0.0.41:8082/domain/8dbe7c18-3fac-4f6b-8993-d8c652ef417b 2026-04-20 02:07:28,543 - DEBUG - Requesting: http://10.0.0.41:8082/project/a5bf1b14-8e3e-425b-b658-da890131ea4f 2026-04-20 02:07:28,609 - INFO - Validated that VN ctest-vn4-83105437 is not found in API Server 2026-04-20 02:07:28,618 - DEBUG - VN ctest-vn4-83105437 is not present in Agent 10.0.0.41 2026-04-20 02:07:28,618 - INFO - Validated that VN ctest-vn4-83105437 is not in any agent 2026-04-20 02:07:28,629 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-83105437 info 2026-04-20 02:07:28,648 - INFO - Deleted policy ctest-policy1-76663284 2026-04-20 02:07:28,807 - DEBUG - policy ctest-policy1-76663284 is not found in API Server 2026-04-20 02:07:29,055 - DEBUG - No XMPP flaps were noticed during the test