2026-05-28 02:07:58,594 - INFO - Domain Default found not creating 2026-05-28 02:07:58,787 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-59089079 not found, creating it 2026-05-28 02:07:59,320 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-59089079, ID : e44fdd78-da19-4f4e-9fc1-f1658d5fa210 2026-05-28 02:08:00,951 - INFO - ================================================================================ 2026-05-28 02:08:00,951 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 02:08:01,205 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.200': '0'}} with 2026-05-28 02:08:01,205 - INFO - Initial checks done. Running the testcase now 2026-05-28 02:08:01,206 - INFO - 2026-05-28 02:08:01,206 - INFO - ================================================================================ 2026-05-28 02:08:01,206 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-28 02:08:01,206 - 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-28 02:08:01,499 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.200': '0'}} with 2026-05-28 02:08:01,499 - INFO - Initial checks done. Running the testcase now 2026-05-28 02:08:01,500 - INFO - 2026-05-28 02:08:01,863 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59089079:ctest-vn4-60691974, 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-59089079:ctest-vn4-60691974, 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-59089079:ctest-vn4-60691974, 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-59089079:ctest-vn4-60691974, 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-28 02:08:02,375 - DEBUG - Response for create_network : {'network': {'id': '03353f74-0e22-45bc-aae9-53968abbd8d1', 'name': 'ctest-vn4-60691974', 'tenant_id': 'e44fdd78da194f4e9fc1f1658d5fa210', 'project_id': 'e44fdd78da194f4e9fc1f1658d5fa210', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59089079', 'ctest-vn4-60691974'], 'port_security_enabled': True, 'description': ''}} 2026-05-28 02:08:02,585 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b964bf9d-2d5b-4fee-b726-e847acc3f8a3', 'name': '', 'tenant_id': 'e44fdd78da194f4e9fc1f1658d5fa210', 'network_id': '03353f74-0e22-45bc-aae9-53968abbd8d1', 'ip_version': 4, 'cidr': '166.71.249.0/26', 'allocation_pools': [{'start': '166.71.249.2', 'end': '166.71.249.62'}], 'gateway_ip': '166.71.249.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '166.71.249.2', 'tags': [], 'project_id': 'e44fdd78da194f4e9fc1f1658d5fa210'}} 2026-05-28 02:08:02,774 - DEBUG - Response for create_subnet : {'subnet': {'id': '32e13456-17ff-4fa1-9630-b273f32d8d7f', 'name': '', 'tenant_id': 'e44fdd78da194f4e9fc1f1658d5fa210', 'network_id': '03353f74-0e22-45bc-aae9-53968abbd8d1', 'ip_version': 6, 'cidr': '321d:4f11:d35f:48b5:549c:664d::/96', 'allocation_pools': [{'start': '321d:4f11:d35f:48b5:549c:664d:0:2', 'end': '321d:4f11:d35f:48b5:549c:664d:ffff:fffe'}], 'gateway_ip': '321d:4f11:d35f:48b5:549c:664d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '321d:4f11:d35f:48b5:549c:664d:0:2', 'tags': [], 'project_id': 'e44fdd78da194f4e9fc1f1658d5fa210'}} 2026-05-28 02:08:02,797 - INFO - Created VN ctest-vn4-60691974 2026-05-28 02:08:02,848 - DEBUG - VN ctest-vn4-60691974 UUID is 03353f74-0e22-45bc-aae9-53968abbd8d1 2026-05-28 02:08:03,080 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03353f74-0e22-45bc-aae9-53968abbd8d1', 'name': 'ctest-vn4-60691974', 'tenant_id': 'e44fdd78da194f4e9fc1f1658d5fa210', 'project_id': 'e44fdd78da194f4e9fc1f1658d5fa210', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b964bf9d-2d5b-4fee-b726-e847acc3f8a3', '32e13456-17ff-4fa1-9630-b273f32d8d7f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59089079', 'ctest-vn4-60691974'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59089079', 'ctest-policy1-54331241']], 'subnet_ipam': [{'subnet_cidr': '166.71.249.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '321d:4f11:d35f:48b5:549c:664d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-28 02:08:03,244 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-28 02:08:03,542 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-28 02:08:03,577 - DEBUG - Requesting: http://10.0.0.242:8082/domain/835cf756-9b77-471d-ab84-cb65b49d7eb9 2026-05-28 02:08:03,589 - DEBUG - Requesting: http://10.0.0.242:8082/project/e44fdd78-da19-4f4e-9fc1-f1658d5fa210 2026-05-28 02:08:03,669 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/03353f74-0e22-45bc-aae9-53968abbd8d1 2026-05-28 02:08:03,682 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/03353f74-0e22-45bc-aae9-53968abbd8d1 2026-05-28 02:08:03,693 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e6454350-52be-4111-85b7-760f3fcb0b21 2026-05-28 02:08:03,710 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e6454350-52be-4111-85b7-760f3fcb0b21 2026-05-28 02:08:03,718 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/bc1a5cc2-17f4-428f-af8e-d736d363db4e 2026-05-28 02:08:03,726 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 02:08:03,726 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/03353f74-0e22-45bc-aae9-53968abbd8d1 2026-05-28 02:08:03,737 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e6454350-52be-4111-85b7-760f3fcb0b21 2026-05-28 02:08:03,752 - INFO - Verified VN network id 11 for VN 03353f74-0e22-45bc-aae9-53968abbd8d1 2026-05-28 02:08:03,752 - INFO - Verifications in API Server for VN ctest-vn4-60691974 passed 2026-05-28 02:08:03,752 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/03353f74-0e22-45bc-aae9-53968abbd8d1 2026-05-28 02:08:03,763 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e6454350-52be-4111-85b7-760f3fcb0b21 2026-05-28 02:08:03,771 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e6454350-52be-4111-85b7-760f3fcb0b21 2026-05-28 02:08:03,778 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/bc1a5cc2-17f4-428f-af8e-d736d363db4e 2026-05-28 02:08:03,790 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59089079:ctest-vn4-60691974', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-59089079', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '231160723565331900', 'uuid-lslong': '12315466562059098321'}, 'enable': 'true', 'created': '2026-05-28T02:08:02', 'last-modified': '2026-05-28T02:08:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.750546'} 2026-05-28 02:08:03,796 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-28 02:08:03,796 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-60691974 passed 2026-05-28 02:08:03,796 - DEBUG - ====Verifying policy data for ctest-vn4-60691974 in API_Server ====== 2026-05-28 02:08:03,796 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-28 02:08:03,802 - DEBUG - Requesting: http://10.0.0.242:8082/domain/835cf756-9b77-471d-ab84-cb65b49d7eb9 2026-05-28 02:08:03,814 - DEBUG - Requesting: http://10.0.0.242:8082/project/e44fdd78-da19-4f4e-9fc1-f1658d5fa210 2026-05-28 02:08:03,895 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/03353f74-0e22-45bc-aae9-53968abbd8d1 2026-05-28 02:08:03,904 - DEBUG - ==>Verifying data for policy with id: 78467b12-4317-42d2-a821-f8443a6e800b, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-59089079', 'ctest-policy1-54331241'] 2026-05-28 02:08:03,904 - INFO - VN ctest-vn4-60691974 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-28 02:08:03,905 - DEBUG - Verifying the vn in opserver 2026-05-28 02:08:03,905 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59089079:ctest-vn4-60691974 virtual network link through opserver 10.0.0.242 2026-05-28 02:08:03,905 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-05-28 02:08:04,201 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-05-28 02:08:04,269 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59089079:ctest-vn4-60691974', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59089079:ctest-vn4-60691974?flat'} 2026-05-28 02:08:04,269 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-59089079:ctest-vn4-60691974 is found in opserver 2026-05-28 02:08:04,278 - DEBUG - Do not have enough data to verify VN in agent 2026-05-28 02:08:04,283 - DEBUG - VRF ids for VN ctest-vn4-60691974: {} 2026-05-28 02:08:04,283 - DEBUG - ====Verifying data for ctest-policy1-54331241 in API_Server ====== 2026-05-28 02:08:04,283 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-28 02:08:04,289 - DEBUG - Requesting: http://10.0.0.242:8082/domain/835cf756-9b77-471d-ab84-cb65b49d7eb9 2026-05-28 02:08:04,300 - DEBUG - Requesting: http://10.0.0.242:8082/project/e44fdd78-da19-4f4e-9fc1-f1658d5fa210 2026-05-28 02:08:04,373 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/78467b12-4317-42d2-a821-f8443a6e800b 2026-05-28 02:08:04,383 - INFO - Verified policy ctest-policy1-54331241 in API Server, Result: True 2026-05-28 02:08:04,383 - INFO - Done with setup and verification, moving onto test .. 2026-05-28 02:08:04,392 - INFO - Deleting VN ctest-vn4-60691974 2026-05-28 02:08:04,519 - DEBUG - Response for deleting network () 2026-05-28 02:08:04,519 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/e6454350-52be-4111-85b7-760f3fcb0b21 2026-05-28 02:08:04,525 - DEBUG - Response Code: 404 2026-05-28 02:08:04,525 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-28 02:08:04,531 - DEBUG - Requesting: http://10.0.0.242:8082/domain/835cf756-9b77-471d-ab84-cb65b49d7eb9 2026-05-28 02:08:04,586 - DEBUG - Requesting: http://10.0.0.242:8082/project/e44fdd78-da19-4f4e-9fc1-f1658d5fa210 2026-05-28 02:08:04,656 - INFO - Validated that VN ctest-vn4-60691974 is not found in API Server 2026-05-28 02:08:04,667 - DEBUG - VN ctest-vn4-60691974 is not present in Agent 10.0.0.242 2026-05-28 02:08:04,667 - INFO - Validated that VN ctest-vn4-60691974 is not in any agent 2026-05-28 02:08:04,686 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-60691974 info 2026-05-28 02:08:04,717 - INFO - Deleted policy ctest-policy1-54331241 2026-05-28 02:08:04,880 - DEBUG - policy ctest-policy1-54331241 is not found in API Server 2026-05-28 02:08:05,138 - DEBUG - No XMPP flaps were noticed during the test