2026-02-16 14:28:51,363 - INFO - Domain Default found not creating 2026-02-16 14:28:51,502 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-76919734 not found, creating it 2026-02-16 14:28:51,922 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-76919734, ID : 62159e4f-2fbc-485a-b8c7-f078673b4d13 2026-02-16 14:28:53,442 - INFO - ================================================================================ 2026-02-16 14:28:53,442 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 14:28:53,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2026-02-16 14:28:53,705 - INFO - Initial checks done. Running the testcase now 2026-02-16 14:28:53,705 - INFO - 2026-02-16 14:28:53,705 - INFO - ================================================================================ 2026-02-16 14:28:53,705 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-16 14:28:53,705 - 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-02-16 14:28:53,991 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with 2026-02-16 14:28:53,991 - INFO - Initial checks done. Running the testcase now 2026-02-16 14:28:53,992 - INFO - 2026-02-16 14:28:54,337 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76919734:ctest-vn4-80579142, 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-76919734:ctest-vn4-80579142, 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-76919734:ctest-vn4-80579142, 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-76919734:ctest-vn4-80579142, 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-02-16 14:28:54,818 - DEBUG - Response for create_network : {'network': {'id': '4f37088a-fec3-4e0a-bacd-fd89d5c329bc', 'name': 'ctest-vn4-80579142', 'tenant_id': '62159e4f2fbc485ab8c7f078673b4d13', 'project_id': '62159e4f2fbc485ab8c7f078673b4d13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76919734', 'ctest-vn4-80579142'], 'port_security_enabled': True, 'description': ''}} 2026-02-16 14:28:54,975 - DEBUG - Response for create_subnet : {'subnet': {'id': '47d6ab90-ea5a-4e8e-9f6a-6c41f622c5b0', 'name': '', 'tenant_id': '62159e4f2fbc485ab8c7f078673b4d13', 'network_id': '4f37088a-fec3-4e0a-bacd-fd89d5c329bc', 'ip_version': 4, 'cidr': '47.49.213.0/26', 'allocation_pools': [{'start': '47.49.213.2', 'end': '47.49.213.62'}], 'gateway_ip': '47.49.213.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.49.213.2', 'tags': [], 'project_id': '62159e4f2fbc485ab8c7f078673b4d13'}} 2026-02-16 14:28:55,114 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a28a24e-66b4-491d-9266-de90ed0ede0b', 'name': '', 'tenant_id': '62159e4f2fbc485ab8c7f078673b4d13', 'network_id': '4f37088a-fec3-4e0a-bacd-fd89d5c329bc', 'ip_version': 6, 'cidr': '2b7a:5dca:aa6e:4614:1453:a9f8::/96', 'allocation_pools': [{'start': '2b7a:5dca:aa6e:4614:1453:a9f8:0:2', 'end': '2b7a:5dca:aa6e:4614:1453:a9f8:ffff:fffe'}], 'gateway_ip': '2b7a:5dca:aa6e:4614:1453:a9f8:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b7a:5dca:aa6e:4614:1453:a9f8:0:2', 'tags': [], 'project_id': '62159e4f2fbc485ab8c7f078673b4d13'}} 2026-02-16 14:28:55,132 - INFO - Created VN ctest-vn4-80579142 2026-02-16 14:28:55,183 - DEBUG - VN ctest-vn4-80579142 UUID is 4f37088a-fec3-4e0a-bacd-fd89d5c329bc 2026-02-16 14:28:55,367 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4f37088a-fec3-4e0a-bacd-fd89d5c329bc', 'name': 'ctest-vn4-80579142', 'tenant_id': '62159e4f2fbc485ab8c7f078673b4d13', 'project_id': '62159e4f2fbc485ab8c7f078673b4d13', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['47d6ab90-ea5a-4e8e-9f6a-6c41f622c5b0', '5a28a24e-66b4-491d-9266-de90ed0ede0b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76919734', 'ctest-vn4-80579142'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76919734', 'ctest-policy1-39194970']], 'subnet_ipam': [{'subnet_cidr': '47.49.213.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b7a:5dca:aa6e:4614:1453:a9f8::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-16 14:28:55,527 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-16 14:28:55,820 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-16 14:28:55,850 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7bcbe08c-9307-4caf-9f14-0ef09591ea4f 2026-02-16 14:28:55,862 - DEBUG - Requesting: http://10.0.0.33:8082/project/62159e4f-2fbc-485a-b8c7-f078673b4d13 2026-02-16 14:28:55,930 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4f37088a-fec3-4e0a-bacd-fd89d5c329bc 2026-02-16 14:28:55,940 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4f37088a-fec3-4e0a-bacd-fd89d5c329bc 2026-02-16 14:28:55,948 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4ac50cc8-642d-439d-82a8-e1de693733f7 2026-02-16 14:28:55,954 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4ac50cc8-642d-439d-82a8-e1de693733f7 2026-02-16 14:28:55,959 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/43b7591c-5161-4f45-855f-3695cb587ebd 2026-02-16 14:28:55,965 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 14:28:55,965 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4f37088a-fec3-4e0a-bacd-fd89d5c329bc 2026-02-16 14:28:55,973 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4ac50cc8-642d-439d-82a8-e1de693733f7 2026-02-16 14:28:55,985 - INFO - Verified VN network id 11 for VN 4f37088a-fec3-4e0a-bacd-fd89d5c329bc 2026-02-16 14:28:55,985 - INFO - Verifications in API Server for VN ctest-vn4-80579142 passed 2026-02-16 14:28:55,985 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4f37088a-fec3-4e0a-bacd-fd89d5c329bc 2026-02-16 14:28:55,995 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4ac50cc8-642d-439d-82a8-e1de693733f7 2026-02-16 14:28:56,002 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4ac50cc8-642d-439d-82a8-e1de693733f7 2026-02-16 14:28:56,008 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/43b7591c-5161-4f45-855f-3695cb587ebd 2026-02-16 14:28:56,017 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76919734:ctest-vn4-80579142', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-76919734', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5708040445788114442', 'uuid-lslong': '13460693629718964668'}, 'enable': 'true', 'created': '2026-02-16T14:28:54', 'last-modified': '2026-02-16T14:28:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.673982'} 2026-02-16 14:28:56,023 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-16 14:28:56,023 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-80579142 passed 2026-02-16 14:28:56,024 - DEBUG - ====Verifying policy data for ctest-vn4-80579142 in API_Server ====== 2026-02-16 14:28:56,024 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-16 14:28:56,028 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7bcbe08c-9307-4caf-9f14-0ef09591ea4f 2026-02-16 14:28:56,037 - DEBUG - Requesting: http://10.0.0.33:8082/project/62159e4f-2fbc-485a-b8c7-f078673b4d13 2026-02-16 14:28:56,104 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4f37088a-fec3-4e0a-bacd-fd89d5c329bc 2026-02-16 14:28:56,112 - DEBUG - ==>Verifying data for policy with id: 81cab3a4-368d-4808-a45b-6f531b0d0d6a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76919734', 'ctest-policy1-39194970'] 2026-02-16 14:28:56,112 - INFO - VN ctest-vn4-80579142 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-16 14:28:56,112 - DEBUG - Verifying the vn in opserver 2026-02-16 14:28:56,112 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76919734:ctest-vn4-80579142 virtual network link through opserver 10.0.0.33 2026-02-16 14:28:56,113 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-16 14:28:56,401 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-16 14:28:56,453 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76919734:ctest-vn4-80579142', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76919734:ctest-vn4-80579142?flat'} 2026-02-16 14:28:56,453 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76919734:ctest-vn4-80579142 is found in opserver 2026-02-16 14:28:56,462 - DEBUG - Do not have enough data to verify VN in agent 2026-02-16 14:28:56,466 - DEBUG - VRF ids for VN ctest-vn4-80579142: {} 2026-02-16 14:28:56,467 - DEBUG - ====Verifying data for ctest-policy1-39194970 in API_Server ====== 2026-02-16 14:28:56,467 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-16 14:28:56,471 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7bcbe08c-9307-4caf-9f14-0ef09591ea4f 2026-02-16 14:28:56,480 - DEBUG - Requesting: http://10.0.0.33:8082/project/62159e4f-2fbc-485a-b8c7-f078673b4d13 2026-02-16 14:28:56,546 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/81cab3a4-368d-4808-a45b-6f531b0d0d6a 2026-02-16 14:28:56,554 - INFO - Verified policy ctest-policy1-39194970 in API Server, Result: True 2026-02-16 14:28:56,554 - INFO - Done with setup and verification, moving onto test .. 2026-02-16 14:28:56,562 - INFO - Deleting VN ctest-vn4-80579142 2026-02-16 14:28:56,679 - DEBUG - Response for deleting network () 2026-02-16 14:28:56,679 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4ac50cc8-642d-439d-82a8-e1de693733f7 2026-02-16 14:28:56,684 - DEBUG - Response Code: 404 2026-02-16 14:28:56,684 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-16 14:28:56,692 - DEBUG - Requesting: http://10.0.0.33:8082/domain/7bcbe08c-9307-4caf-9f14-0ef09591ea4f 2026-02-16 14:28:56,744 - DEBUG - Requesting: http://10.0.0.33:8082/project/62159e4f-2fbc-485a-b8c7-f078673b4d13 2026-02-16 14:28:56,814 - INFO - Validated that VN ctest-vn4-80579142 is not found in API Server 2026-02-16 14:28:56,823 - DEBUG - VN ctest-vn4-80579142 is not present in Agent 10.0.0.33 2026-02-16 14:28:56,823 - INFO - Validated that VN ctest-vn4-80579142 is not in any agent 2026-02-16 14:28:56,835 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-80579142 info 2026-02-16 14:28:56,855 - INFO - Deleted policy ctest-policy1-39194970 2026-02-16 14:28:57,015 - DEBUG - policy ctest-policy1-39194970 is not found in API Server 2026-02-16 14:28:57,268 - DEBUG - No XMPP flaps were noticed during the test