2026-05-05 11:20:22,939 - INFO - Domain Default found not creating 2026-05-05 11:20:23,117 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-28272436 not found, creating it 2026-05-05 11:20:23,599 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-28272436, ID : ec08e89a-9262-4dc2-a755-273a829b6110 2026-05-05 11:20:25,122 - INFO - ================================================================================ 2026-05-05 11:20:25,122 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-05 11:20:25,389 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-05 11:20:25,389 - INFO - Initial checks done. Running the testcase now 2026-05-05 11:20:25,389 - INFO - 2026-05-05 11:20:25,389 - INFO - ================================================================================ 2026-05-05 11:20:25,389 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-05 11:20:25,389 - 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-05 11:20:25,696 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-05-05 11:20:25,696 - INFO - Initial checks done. Running the testcase now 2026-05-05 11:20:25,696 - INFO - 2026-05-05 11:20:26,064 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28272436:ctest-vn4-42079085, 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-28272436:ctest-vn4-42079085, 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-28272436:ctest-vn4-42079085, 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-28272436:ctest-vn4-42079085, 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-05 11:20:26,603 - DEBUG - Response for create_network : {'network': {'id': '171dd38b-2ccc-4d77-a1e9-647bcc669e9f', 'name': 'ctest-vn4-42079085', 'tenant_id': 'ec08e89a92624dc2a755273a829b6110', 'project_id': 'ec08e89a92624dc2a755273a829b6110', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28272436', 'ctest-vn4-42079085'], 'port_security_enabled': True, 'description': ''}} 2026-05-05 11:20:26,813 - DEBUG - Response for create_subnet : {'subnet': {'id': '85ae224a-55f1-419e-8ef1-51cf2a2868e8', 'name': '', 'tenant_id': 'ec08e89a92624dc2a755273a829b6110', 'network_id': '171dd38b-2ccc-4d77-a1e9-647bcc669e9f', 'ip_version': 4, 'cidr': '42.23.171.192/26', 'allocation_pools': [{'start': '42.23.171.194', 'end': '42.23.171.254'}], 'gateway_ip': '42.23.171.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.23.171.194', 'tags': [], 'project_id': 'ec08e89a92624dc2a755273a829b6110'}} 2026-05-05 11:20:26,970 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a56140d-2474-4c37-a01c-cf2ade7ca9ea', 'name': '', 'tenant_id': 'ec08e89a92624dc2a755273a829b6110', 'network_id': '171dd38b-2ccc-4d77-a1e9-647bcc669e9f', 'ip_version': 6, 'cidr': '3d67:31d2:6fe2:cf7e:5d17:61b7::/96', 'allocation_pools': [{'start': '3d67:31d2:6fe2:cf7e:5d17:61b7:0:2', 'end': '3d67:31d2:6fe2:cf7e:5d17:61b7:ffff:fffe'}], 'gateway_ip': '3d67:31d2:6fe2:cf7e:5d17:61b7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d67:31d2:6fe2:cf7e:5d17:61b7:0:2', 'tags': [], 'project_id': 'ec08e89a92624dc2a755273a829b6110'}} 2026-05-05 11:20:26,998 - INFO - Created VN ctest-vn4-42079085 2026-05-05 11:20:27,060 - DEBUG - VN ctest-vn4-42079085 UUID is 171dd38b-2ccc-4d77-a1e9-647bcc669e9f 2026-05-05 11:20:27,269 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '171dd38b-2ccc-4d77-a1e9-647bcc669e9f', 'name': 'ctest-vn4-42079085', 'tenant_id': 'ec08e89a92624dc2a755273a829b6110', 'project_id': 'ec08e89a92624dc2a755273a829b6110', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['85ae224a-55f1-419e-8ef1-51cf2a2868e8', '5a56140d-2474-4c37-a01c-cf2ade7ca9ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28272436', 'ctest-vn4-42079085'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28272436', 'ctest-policy1-25682275']], 'subnet_ipam': [{'subnet_cidr': '42.23.171.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d67:31d2:6fe2:cf7e:5d17:61b7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-05 11:20:27,444 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-05 11:20:27,742 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-05 11:20:27,775 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c5e05166-0929-4b8c-b37c-e184f4a91b0c 2026-05-05 11:20:27,790 - DEBUG - Requesting: http://10.0.0.50:8082/project/ec08e89a-9262-4dc2-a755-273a829b6110 2026-05-05 11:20:27,869 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/171dd38b-2ccc-4d77-a1e9-647bcc669e9f 2026-05-05 11:20:27,883 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/171dd38b-2ccc-4d77-a1e9-647bcc669e9f 2026-05-05 11:20:27,897 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3aa62b28-e181-479b-911d-9c742b0ccd03 2026-05-05 11:20:27,904 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3aa62b28-e181-479b-911d-9c742b0ccd03 2026-05-05 11:20:27,911 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/efbdc4b5-b70b-4960-ab99-e19a28066d60 2026-05-05 11:20:27,918 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-05 11:20:27,918 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/171dd38b-2ccc-4d77-a1e9-647bcc669e9f 2026-05-05 11:20:27,928 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3aa62b28-e181-479b-911d-9c742b0ccd03 2026-05-05 11:20:27,942 - INFO - Verified VN network id 11 for VN 171dd38b-2ccc-4d77-a1e9-647bcc669e9f 2026-05-05 11:20:27,942 - INFO - Verifications in API Server for VN ctest-vn4-42079085 passed 2026-05-05 11:20:27,942 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/171dd38b-2ccc-4d77-a1e9-647bcc669e9f 2026-05-05 11:20:27,953 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3aa62b28-e181-479b-911d-9c742b0ccd03 2026-05-05 11:20:27,960 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3aa62b28-e181-479b-911d-9c742b0ccd03 2026-05-05 11:20:27,968 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/efbdc4b5-b70b-4960-ab99-e19a28066d60 2026-05-05 11:20:27,981 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28272436:ctest-vn4-42079085', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-28272436', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1665720031902453111', 'uuid-lslong': '11666966792553012895'}, 'enable': 'true', 'created': '2026-05-05T11:20:26', 'last-modified': '2026-05-05T11:20:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.741255'} 2026-05-05 11:20:27,989 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-05 11:20:27,989 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-42079085 passed 2026-05-05 11:20:27,989 - DEBUG - ====Verifying policy data for ctest-vn4-42079085 in API_Server ====== 2026-05-05 11:20:27,989 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-05 11:20:27,997 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c5e05166-0929-4b8c-b37c-e184f4a91b0c 2026-05-05 11:20:28,013 - DEBUG - Requesting: http://10.0.0.50:8082/project/ec08e89a-9262-4dc2-a755-273a829b6110 2026-05-05 11:20:28,087 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/171dd38b-2ccc-4d77-a1e9-647bcc669e9f 2026-05-05 11:20:28,097 - DEBUG - ==>Verifying data for policy with id: 40b11784-fabd-491b-a720-a5e836e62f98, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-28272436', 'ctest-policy1-25682275'] 2026-05-05 11:20:28,097 - INFO - VN ctest-vn4-42079085 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-05 11:20:28,097 - DEBUG - Verifying the vn in opserver 2026-05-05 11:20:28,097 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28272436:ctest-vn4-42079085 virtual network link through opserver 10.0.0.50 2026-05-05 11:20:28,097 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-05 11:20:28,396 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-05-05 11:20:28,468 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28272436:ctest-vn4-42079085', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28272436:ctest-vn4-42079085?flat'} 2026-05-05 11:20:28,468 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-28272436:ctest-vn4-42079085 is found in opserver 2026-05-05 11:20:28,479 - DEBUG - Do not have enough data to verify VN in agent 2026-05-05 11:20:28,485 - DEBUG - VRF ids for VN ctest-vn4-42079085: {} 2026-05-05 11:20:28,485 - DEBUG - ====Verifying data for ctest-policy1-25682275 in API_Server ====== 2026-05-05 11:20:28,485 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-05 11:20:28,491 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c5e05166-0929-4b8c-b37c-e184f4a91b0c 2026-05-05 11:20:28,504 - DEBUG - Requesting: http://10.0.0.50:8082/project/ec08e89a-9262-4dc2-a755-273a829b6110 2026-05-05 11:20:28,575 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/40b11784-fabd-491b-a720-a5e836e62f98 2026-05-05 11:20:28,585 - INFO - Verified policy ctest-policy1-25682275 in API Server, Result: True 2026-05-05 11:20:28,585 - INFO - Done with setup and verification, moving onto test .. 2026-05-05 11:20:28,594 - INFO - Deleting VN ctest-vn4-42079085 2026-05-05 11:20:28,713 - DEBUG - Response for deleting network () 2026-05-05 11:20:28,713 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3aa62b28-e181-479b-911d-9c742b0ccd03 2026-05-05 11:20:28,720 - DEBUG - Response Code: 404 2026-05-05 11:20:28,720 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-05-05 11:20:28,726 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c5e05166-0929-4b8c-b37c-e184f4a91b0c 2026-05-05 11:20:28,782 - DEBUG - Requesting: http://10.0.0.50:8082/project/ec08e89a-9262-4dc2-a755-273a829b6110 2026-05-05 11:20:28,861 - INFO - Validated that VN ctest-vn4-42079085 is not found in API Server 2026-05-05 11:20:28,872 - DEBUG - VN ctest-vn4-42079085 is not present in Agent 10.0.0.50 2026-05-05 11:20:28,872 - INFO - Validated that VN ctest-vn4-42079085 is not in any agent 2026-05-05 11:20:28,889 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-42079085 info 2026-05-05 11:20:28,918 - INFO - Deleted policy ctest-policy1-25682275 2026-05-05 11:20:29,083 - DEBUG - policy ctest-policy1-25682275 is not found in API Server 2026-05-05 11:20:29,336 - DEBUG - No XMPP flaps were noticed during the test 2026-05-05 11:20:29,336 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-05 11:20:29,336 - INFO - -------------------------------------------------------------------------------- 2026-05-05 11:20:29,636 - DEBUG - No XMPP flaps were noticed during the test 2026-05-05 11:20:29,636 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-05-05 11:20:29,636 - INFO - -------------------------------------------------------------------------------- 2026-05-05 11:20:30,336 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-28272436, ID : ec08e89a-9262-4dc2-a755-273a829b6110