2026-06-16 10:54:40,030 - INFO - Domain Default found not creating 2026-06-16 10:54:40,207 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06513612 not found, creating it 2026-06-16 10:54:40,657 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06513612, ID : a1b87350-e51d-4b8b-8679-1e67e1368f88 2026-06-16 10:54:42,273 - INFO - ================================================================================ 2026-06-16 10:54:42,273 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-16 10:54:42,534 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-16 10:54:42,535 - INFO - Initial checks done. Running the testcase now 2026-06-16 10:54:42,535 - INFO - 2026-06-16 10:54:42,535 - INFO - ================================================================================ 2026-06-16 10:54:42,535 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-16 10:54:42,535 - 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-16 10:54:42,836 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-06-16 10:54:42,836 - INFO - Initial checks done. Running the testcase now 2026-06-16 10:54:42,836 - INFO - 2026-06-16 10:54:43,241 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06513612:ctest-vn4-32733697, 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-06513612:ctest-vn4-32733697, 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-06513612:ctest-vn4-32733697, 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-06513612:ctest-vn4-32733697, 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-16 10:54:43,769 - DEBUG - Response for create_network : {'network': {'id': '7b7c924f-38f9-48a2-9c86-73553b78faa3', 'name': 'ctest-vn4-32733697', 'tenant_id': 'a1b87350e51d4b8b86791e67e1368f88', 'project_id': 'a1b87350e51d4b8b86791e67e1368f88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06513612', 'ctest-vn4-32733697'], 'port_security_enabled': True, 'description': ''}} 2026-06-16 10:54:43,921 - DEBUG - Response for create_subnet : {'subnet': {'id': '73d5ea9e-158d-449b-88fd-6ee89468c4bb', 'name': '', 'tenant_id': 'a1b87350e51d4b8b86791e67e1368f88', 'network_id': '7b7c924f-38f9-48a2-9c86-73553b78faa3', 'ip_version': 4, 'cidr': '42.156.161.128/26', 'allocation_pools': [{'start': '42.156.161.130', 'end': '42.156.161.190'}], 'gateway_ip': '42.156.161.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '42.156.161.130', 'tags': [], 'project_id': 'a1b87350e51d4b8b86791e67e1368f88'}} 2026-06-16 10:54:44,143 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d20b706-e565-4a80-ada8-5166302aa6aa', 'name': '', 'tenant_id': 'a1b87350e51d4b8b86791e67e1368f88', 'network_id': '7b7c924f-38f9-48a2-9c86-73553b78faa3', 'ip_version': 6, 'cidr': '2889:4f1a:8e4e:81e5:8058:cc82::/96', 'allocation_pools': [{'start': '2889:4f1a:8e4e:81e5:8058:cc82:0:2', 'end': '2889:4f1a:8e4e:81e5:8058:cc82:ffff:fffe'}], 'gateway_ip': '2889:4f1a:8e4e:81e5:8058:cc82:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2889:4f1a:8e4e:81e5:8058:cc82:0:2', 'tags': [], 'project_id': 'a1b87350e51d4b8b86791e67e1368f88'}} 2026-06-16 10:54:44,161 - INFO - Created VN ctest-vn4-32733697 2026-06-16 10:54:44,215 - DEBUG - VN ctest-vn4-32733697 UUID is 7b7c924f-38f9-48a2-9c86-73553b78faa3 2026-06-16 10:54:44,410 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7b7c924f-38f9-48a2-9c86-73553b78faa3', 'name': 'ctest-vn4-32733697', 'tenant_id': 'a1b87350e51d4b8b86791e67e1368f88', 'project_id': 'a1b87350e51d4b8b86791e67e1368f88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['73d5ea9e-158d-449b-88fd-6ee89468c4bb', '4d20b706-e565-4a80-ada8-5166302aa6aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06513612', 'ctest-vn4-32733697'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06513612', 'ctest-policy1-88181466']], 'subnet_ipam': [{'subnet_cidr': '42.156.161.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2889:4f1a:8e4e:81e5:8058:cc82::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-16 10:54:44,571 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 10:54:44,895 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 10:54:44,929 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d144f4fc-0984-409e-b738-0f5352836e54 2026-06-16 10:54:44,942 - DEBUG - Requesting: http://10.0.0.50:8082/project/a1b87350-e51d-4b8b-8679-1e67e1368f88 2026-06-16 10:54:45,015 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b7c924f-38f9-48a2-9c86-73553b78faa3 2026-06-16 10:54:45,029 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b7c924f-38f9-48a2-9c86-73553b78faa3 2026-06-16 10:54:45,040 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/71eb566c-a866-416d-95ff-552c2e1c07e2 2026-06-16 10:54:45,047 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/71eb566c-a866-416d-95ff-552c2e1c07e2 2026-06-16 10:54:45,054 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ec17e939-3444-4bc5-b9f2-6650469bd927 2026-06-16 10:54:45,060 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-16 10:54:45,060 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b7c924f-38f9-48a2-9c86-73553b78faa3 2026-06-16 10:54:45,070 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/71eb566c-a866-416d-95ff-552c2e1c07e2 2026-06-16 10:54:45,084 - INFO - Verified VN network id 9 for VN 7b7c924f-38f9-48a2-9c86-73553b78faa3 2026-06-16 10:54:45,085 - INFO - Verifications in API Server for VN ctest-vn4-32733697 passed 2026-06-16 10:54:45,085 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b7c924f-38f9-48a2-9c86-73553b78faa3 2026-06-16 10:54:45,095 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/71eb566c-a866-416d-95ff-552c2e1c07e2 2026-06-16 10:54:45,101 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/71eb566c-a866-416d-95ff-552c2e1c07e2 2026-06-16 10:54:45,108 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ec17e939-3444-4bc5-b9f2-6650469bd927 2026-06-16 10:54:45,123 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06513612:ctest-vn4-32733697', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06513612', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8898147832733190306', 'uuid-lslong': '11278829126703184547'}, 'enable': 'true', 'created': '2026-06-16T10:54:43', 'last-modified': '2026-06-16T10:54:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.742756'} 2026-06-16 10:54:45,129 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-16 10:54:45,129 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-32733697 passed 2026-06-16 10:54:45,129 - DEBUG - ====Verifying policy data for ctest-vn4-32733697 in API_Server ====== 2026-06-16 10:54:45,129 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 10:54:45,135 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d144f4fc-0984-409e-b738-0f5352836e54 2026-06-16 10:54:45,146 - DEBUG - Requesting: http://10.0.0.50:8082/project/a1b87350-e51d-4b8b-8679-1e67e1368f88 2026-06-16 10:54:45,224 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7b7c924f-38f9-48a2-9c86-73553b78faa3 2026-06-16 10:54:45,235 - DEBUG - ==>Verifying data for policy with id: 6ad2f751-078b-4ad5-aaf9-78251871e471, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06513612', 'ctest-policy1-88181466'] 2026-06-16 10:54:45,235 - INFO - VN ctest-vn4-32733697 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-16 10:54:45,235 - DEBUG - Verifying the vn in opserver 2026-06-16 10:54:45,235 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06513612:ctest-vn4-32733697 virtual network link through opserver 10.0.0.50 2026-06-16 10:54:45,235 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-16 10:54:45,575 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-16 10:54:45,637 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06513612:ctest-vn4-32733697', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06513612:ctest-vn4-32733697?flat'} 2026-06-16 10:54:45,637 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06513612:ctest-vn4-32733697 is found in opserver 2026-06-16 10:54:45,652 - DEBUG - Do not have enough data to verify VN in agent 2026-06-16 10:54:45,656 - DEBUG - VRF ids for VN ctest-vn4-32733697: {} 2026-06-16 10:54:45,657 - DEBUG - ====Verifying data for ctest-policy1-88181466 in API_Server ====== 2026-06-16 10:54:45,657 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 10:54:45,664 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d144f4fc-0984-409e-b738-0f5352836e54 2026-06-16 10:54:45,674 - DEBUG - Requesting: http://10.0.0.50:8082/project/a1b87350-e51d-4b8b-8679-1e67e1368f88 2026-06-16 10:54:45,748 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/6ad2f751-078b-4ad5-aaf9-78251871e471 2026-06-16 10:54:45,757 - INFO - Verified policy ctest-policy1-88181466 in API Server, Result: True 2026-06-16 10:54:45,757 - INFO - Done with setup and verification, moving onto test .. 2026-06-16 10:54:45,766 - INFO - Deleting VN ctest-vn4-32733697 2026-06-16 10:54:45,877 - DEBUG - Response for deleting network () 2026-06-16 10:54:45,878 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/71eb566c-a866-416d-95ff-552c2e1c07e2 2026-06-16 10:54:45,883 - DEBUG - Response Code: 404 2026-06-16 10:54:45,883 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-16 10:54:45,888 - DEBUG - Requesting: http://10.0.0.50:8082/domain/d144f4fc-0984-409e-b738-0f5352836e54 2026-06-16 10:54:45,940 - DEBUG - Requesting: http://10.0.0.50:8082/project/a1b87350-e51d-4b8b-8679-1e67e1368f88 2026-06-16 10:54:46,016 - INFO - Validated that VN ctest-vn4-32733697 is not found in API Server 2026-06-16 10:54:46,027 - DEBUG - VN ctest-vn4-32733697 is not present in Agent 10.0.0.50 2026-06-16 10:54:46,027 - INFO - Validated that VN ctest-vn4-32733697 is not in any agent 2026-06-16 10:54:46,041 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-32733697 info 2026-06-16 10:54:46,070 - INFO - Deleted policy ctest-policy1-88181466 2026-06-16 10:54:46,243 - DEBUG - policy ctest-policy1-88181466 is not found in API Server 2026-06-16 10:54:46,516 - DEBUG - No XMPP flaps were noticed during the test