2026-02-03 17:17:59,953 - INFO - Domain Default found not creating 2026-02-03 17:18:00,167 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-77908737 not found, creating it 2026-02-03 17:18:00,688 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-77908737, ID : 4a6eee33-e137-48c7-b4c5-770d100fa39e 2026-02-03 17:18:02,434 - INFO - ================================================================================ 2026-02-03 17:18:02,434 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 17:18:02,709 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2026-02-03 17:18:02,709 - INFO - Initial checks done. Running the testcase now 2026-02-03 17:18:02,709 - INFO - 2026-02-03 17:18:02,709 - INFO - ================================================================================ 2026-02-03 17:18:02,709 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-03 17:18:02,709 - 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-03 17:18:03,002 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2026-02-03 17:18:03,002 - INFO - Initial checks done. Running the testcase now 2026-02-03 17:18:03,003 - INFO - 2026-02-03 17:18:03,393 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77908737:ctest-vn4-03129457, 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-77908737:ctest-vn4-03129457, 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-77908737:ctest-vn4-03129457, 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-77908737:ctest-vn4-03129457, 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-03 17:18:03,948 - DEBUG - Response for create_network : {'network': {'id': '6c5d8b65-ab8c-47a2-8427-6a01a33dc3fc', 'name': 'ctest-vn4-03129457', 'tenant_id': '4a6eee33e13748c7b4c5770d100fa39e', 'project_id': '4a6eee33e13748c7b4c5770d100fa39e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77908737', 'ctest-vn4-03129457'], 'port_security_enabled': True, 'description': ''}} 2026-02-03 17:18:04,119 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d680152-baff-4e2b-943a-cf10bb8a51d0', 'name': '', 'tenant_id': '4a6eee33e13748c7b4c5770d100fa39e', 'network_id': '6c5d8b65-ab8c-47a2-8427-6a01a33dc3fc', 'ip_version': 4, 'cidr': '175.104.133.64/26', 'allocation_pools': [{'start': '175.104.133.66', 'end': '175.104.133.126'}], 'gateway_ip': '175.104.133.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.104.133.66', 'tags': [], 'project_id': '4a6eee33e13748c7b4c5770d100fa39e'}} 2026-02-03 17:18:04,312 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ec57ee6-7799-4653-804c-b13bec491e4a', 'name': '', 'tenant_id': '4a6eee33e13748c7b4c5770d100fa39e', 'network_id': '6c5d8b65-ab8c-47a2-8427-6a01a33dc3fc', 'ip_version': 6, 'cidr': '24d8:9669:9fa2:8fec:3a7:601b::/96', 'allocation_pools': [{'start': '24d8:9669:9fa2:8fec:3a7:601b:0:2', 'end': '24d8:9669:9fa2:8fec:3a7:601b:ffff:fffe'}], 'gateway_ip': '24d8:9669:9fa2:8fec:3a7:601b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24d8:9669:9fa2:8fec:3a7:601b:0:2', 'tags': [], 'project_id': '4a6eee33e13748c7b4c5770d100fa39e'}} 2026-02-03 17:18:04,336 - INFO - Created VN ctest-vn4-03129457 2026-02-03 17:18:04,393 - DEBUG - VN ctest-vn4-03129457 UUID is 6c5d8b65-ab8c-47a2-8427-6a01a33dc3fc 2026-02-03 17:18:04,625 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6c5d8b65-ab8c-47a2-8427-6a01a33dc3fc', 'name': 'ctest-vn4-03129457', 'tenant_id': '4a6eee33e13748c7b4c5770d100fa39e', 'project_id': '4a6eee33e13748c7b4c5770d100fa39e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d680152-baff-4e2b-943a-cf10bb8a51d0', '9ec57ee6-7799-4653-804c-b13bec491e4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77908737', 'ctest-vn4-03129457'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77908737', 'ctest-policy1-54976334']], 'subnet_ipam': [{'subnet_cidr': '175.104.133.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '24d8:9669:9fa2:8fec:3a7:601b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-03 17:18:04,793 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 17:18:05,099 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 17:18:05,137 - DEBUG - Requesting: http://10.0.0.19:8082/domain/70f8c33c-5b94-44dd-82d2-445d008dbba3 2026-02-03 17:18:05,154 - DEBUG - Requesting: http://10.0.0.19:8082/project/4a6eee33-e137-48c7-b4c5-770d100fa39e 2026-02-03 17:18:05,231 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6c5d8b65-ab8c-47a2-8427-6a01a33dc3fc 2026-02-03 17:18:05,244 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6c5d8b65-ab8c-47a2-8427-6a01a33dc3fc 2026-02-03 17:18:05,254 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8facb8da-dc39-4e31-802f-336b1c77b64a 2026-02-03 17:18:05,262 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8facb8da-dc39-4e31-802f-336b1c77b64a 2026-02-03 17:18:05,268 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/8cef41dd-c07a-4e70-8d5e-0dbaf589d80a 2026-02-03 17:18:05,276 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 17:18:05,276 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6c5d8b65-ab8c-47a2-8427-6a01a33dc3fc 2026-02-03 17:18:05,286 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8facb8da-dc39-4e31-802f-336b1c77b64a 2026-02-03 17:18:05,300 - INFO - Verified VN network id 11 for VN 6c5d8b65-ab8c-47a2-8427-6a01a33dc3fc 2026-02-03 17:18:05,300 - INFO - Verifications in API Server for VN ctest-vn4-03129457 passed 2026-02-03 17:18:05,300 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6c5d8b65-ab8c-47a2-8427-6a01a33dc3fc 2026-02-03 17:18:05,311 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8facb8da-dc39-4e31-802f-336b1c77b64a 2026-02-03 17:18:05,320 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8facb8da-dc39-4e31-802f-336b1c77b64a 2026-02-03 17:18:05,330 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/8cef41dd-c07a-4e70-8d5e-0dbaf589d80a 2026-02-03 17:18:05,345 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77908737:ctest-vn4-03129457', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77908737', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7808550597716363170', 'uuid-lslong': '9522696492364448764'}, 'enable': 'true', 'created': '2026-02-03T17:18:03', 'last-modified': '2026-02-03T17:18:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.744495'} 2026-02-03 17:18:05,352 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-03 17:18:05,352 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-03129457 passed 2026-02-03 17:18:05,352 - DEBUG - ====Verifying policy data for ctest-vn4-03129457 in API_Server ====== 2026-02-03 17:18:05,352 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 17:18:05,358 - DEBUG - Requesting: http://10.0.0.19:8082/domain/70f8c33c-5b94-44dd-82d2-445d008dbba3 2026-02-03 17:18:05,369 - DEBUG - Requesting: http://10.0.0.19:8082/project/4a6eee33-e137-48c7-b4c5-770d100fa39e 2026-02-03 17:18:05,446 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6c5d8b65-ab8c-47a2-8427-6a01a33dc3fc 2026-02-03 17:18:05,458 - DEBUG - ==>Verifying data for policy with id: 345c0540-da61-4553-a282-39994143fdef, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77908737', 'ctest-policy1-54976334'] 2026-02-03 17:18:05,458 - INFO - VN ctest-vn4-03129457 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-03 17:18:05,458 - DEBUG - Verifying the vn in opserver 2026-02-03 17:18:05,458 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77908737:ctest-vn4-03129457 virtual network link through opserver 10.0.0.19 2026-02-03 17:18:05,458 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-03 17:18:05,758 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2026-02-03 17:18:05,838 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77908737:ctest-vn4-03129457', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77908737:ctest-vn4-03129457?flat'} 2026-02-03 17:18:05,838 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77908737:ctest-vn4-03129457 is found in opserver 2026-02-03 17:18:05,849 - DEBUG - Do not have enough data to verify VN in agent 2026-02-03 17:18:05,854 - DEBUG - VRF ids for VN ctest-vn4-03129457: {} 2026-02-03 17:18:05,855 - DEBUG - ====Verifying data for ctest-policy1-54976334 in API_Server ====== 2026-02-03 17:18:05,855 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 17:18:05,861 - DEBUG - Requesting: http://10.0.0.19:8082/domain/70f8c33c-5b94-44dd-82d2-445d008dbba3 2026-02-03 17:18:05,873 - DEBUG - Requesting: http://10.0.0.19:8082/project/4a6eee33-e137-48c7-b4c5-770d100fa39e 2026-02-03 17:18:05,945 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/345c0540-da61-4553-a282-39994143fdef 2026-02-03 17:18:05,957 - INFO - Verified policy ctest-policy1-54976334 in API Server, Result: True 2026-02-03 17:18:05,957 - INFO - Done with setup and verification, moving onto test .. 2026-02-03 17:18:05,967 - INFO - Deleting VN ctest-vn4-03129457 2026-02-03 17:18:06,119 - DEBUG - Response for deleting network () 2026-02-03 17:18:06,119 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8facb8da-dc39-4e31-802f-336b1c77b64a 2026-02-03 17:18:06,127 - DEBUG - Response Code: 404 2026-02-03 17:18:06,127 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2026-02-03 17:18:06,133 - DEBUG - Requesting: http://10.0.0.19:8082/domain/70f8c33c-5b94-44dd-82d2-445d008dbba3 2026-02-03 17:18:06,187 - DEBUG - Requesting: http://10.0.0.19:8082/project/4a6eee33-e137-48c7-b4c5-770d100fa39e 2026-02-03 17:18:06,271 - INFO - Validated that VN ctest-vn4-03129457 is not found in API Server 2026-02-03 17:18:06,285 - DEBUG - VN ctest-vn4-03129457 is not present in Agent 10.0.0.19 2026-02-03 17:18:06,285 - INFO - Validated that VN ctest-vn4-03129457 is not in any agent 2026-02-03 17:18:06,301 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-03129457 info 2026-02-03 17:18:06,337 - INFO - Deleted policy ctest-policy1-54976334 2026-02-03 17:18:06,517 - DEBUG - policy ctest-policy1-54976334 is not found in API Server 2026-02-03 17:18:06,790 - DEBUG - No XMPP flaps were noticed during the test
2026-02-03 17:18:06,790 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-03 17:18:06,791 - INFO - -------------------------------------------------------------------------------- 2026-02-03 17:18:07,076 - DEBUG - No XMPP flaps were noticed during the test
2026-02-03 17:18:07,076 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-02-03 17:18:07,076 - INFO - -------------------------------------------------------------------------------- 2026-02-03 17:18:07,811 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-77908737, ID : 4a6eee33-e137-48c7-b4c5-770d100fa39e