2026-10-27 17:03:11,181 - INFO - Domain Default found not creating 2026-10-27 17:03:11,393 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11650280 not found, creating it 2026-10-27 17:03:11,958 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11650280, ID : e67884d0-ad44-4b7b-bec1-72fd17144950 2026-10-27 17:03:13,812 - INFO - ================================================================================ 2026-10-27 17:03:13,812 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-27 17:03:14,088 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-10-27 17:03:14,088 - INFO - Initial checks done. Running the testcase now 2026-10-27 17:03:14,088 - INFO - 2026-10-27 17:03:14,088 - INFO - ================================================================================ 2026-10-27 17:03:14,088 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-10-27 17:03:14,088 - 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-10-27 17:03:14,399 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-10-27 17:03:14,399 - INFO - Initial checks done. Running the testcase now 2026-10-27 17:03:14,399 - INFO - 2026-10-27 17:03:14,877 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11650280:ctest-vn4-65807576, 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-11650280:ctest-vn4-65807576, 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-11650280:ctest-vn4-65807576, 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-11650280:ctest-vn4-65807576, 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-10-27 17:03:15,429 - DEBUG - Response for create_network : {'network': {'id': 'b02eeef7-a944-478e-9e7e-f30049e097c1', 'name': 'ctest-vn4-65807576', 'tenant_id': 'e67884d0ad444b7bbec172fd17144950', 'project_id': 'e67884d0ad444b7bbec172fd17144950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11650280', 'ctest-vn4-65807576'], 'port_security_enabled': True, 'description': ''}} 2026-10-27 17:03:15,654 - DEBUG - Response for create_subnet : {'subnet': {'id': '278c8dc3-26b7-45e0-8604-15a68ae6c294', 'name': '', 'tenant_id': 'e67884d0ad444b7bbec172fd17144950', 'network_id': 'b02eeef7-a944-478e-9e7e-f30049e097c1', 'ip_version': 4, 'cidr': '208.173.145.64/26', 'allocation_pools': [{'start': '208.173.145.66', 'end': '208.173.145.126'}], 'gateway_ip': '208.173.145.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.173.145.66', 'tags': [], 'project_id': 'e67884d0ad444b7bbec172fd17144950'}} 2026-10-27 17:03:15,833 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c7212739-9d07-498f-8e1d-d3a7aa7dd419', 'name': '', 'tenant_id': 'e67884d0ad444b7bbec172fd17144950', 'network_id': 'b02eeef7-a944-478e-9e7e-f30049e097c1', 'ip_version': 6, 'cidr': '30a0:660f:10af:9b8d:d2b7:1208::/96', 'allocation_pools': [{'start': '30a0:660f:10af:9b8d:d2b7:1208:0:2', 'end': '30a0:660f:10af:9b8d:d2b7:1208:ffff:fffe'}], 'gateway_ip': '30a0:660f:10af:9b8d:d2b7:1208:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '30a0:660f:10af:9b8d:d2b7:1208:0:2', 'tags': [], 'project_id': 'e67884d0ad444b7bbec172fd17144950'}} 2026-10-27 17:03:15,857 - INFO - Created VN ctest-vn4-65807576 2026-10-27 17:03:15,913 - DEBUG - VN ctest-vn4-65807576 UUID is b02eeef7-a944-478e-9e7e-f30049e097c1 2026-10-27 17:03:16,142 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b02eeef7-a944-478e-9e7e-f30049e097c1', 'name': 'ctest-vn4-65807576', 'tenant_id': 'e67884d0ad444b7bbec172fd17144950', 'project_id': 'e67884d0ad444b7bbec172fd17144950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['278c8dc3-26b7-45e0-8604-15a68ae6c294', 'c7212739-9d07-498f-8e1d-d3a7aa7dd419'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11650280', 'ctest-vn4-65807576'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11650280', 'ctest-policy1-62739178']], 'subnet_ipam': [{'subnet_cidr': '208.173.145.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '30a0:660f:10af:9b8d:d2b7:1208::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-10-27 17:03:16,313 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-27 17:03:16,684 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-27 17:03:16,717 - DEBUG - Requesting: http://10.0.0.38:8082/domain/75c4af02-2b30-49d8-9e27-b8c56a186453 2026-10-27 17:03:16,733 - DEBUG - Requesting: http://10.0.0.38:8082/project/e67884d0-ad44-4b7b-bec1-72fd17144950 2026-10-27 17:03:16,821 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b02eeef7-a944-478e-9e7e-f30049e097c1 2026-10-27 17:03:16,838 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b02eeef7-a944-478e-9e7e-f30049e097c1 2026-10-27 17:03:16,850 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cc47ecb4-a2d5-44a1-9ca3-61746301912a 2026-10-27 17:03:16,858 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cc47ecb4-a2d5-44a1-9ca3-61746301912a 2026-10-27 17:03:16,866 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f10a77aa-7aee-4ffa-8677-4b1d5495ad2f 2026-10-27 17:03:16,874 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-27 17:03:16,874 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b02eeef7-a944-478e-9e7e-f30049e097c1 2026-10-27 17:03:16,885 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cc47ecb4-a2d5-44a1-9ca3-61746301912a 2026-10-27 17:03:16,902 - INFO - Verified VN network id 12 for VN b02eeef7-a944-478e-9e7e-f30049e097c1 2026-10-27 17:03:16,902 - INFO - Verifications in API Server for VN ctest-vn4-65807576 passed 2026-10-27 17:03:16,902 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b02eeef7-a944-478e-9e7e-f30049e097c1 2026-10-27 17:03:16,920 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cc47ecb4-a2d5-44a1-9ca3-61746301912a 2026-10-27 17:03:16,929 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cc47ecb4-a2d5-44a1-9ca3-61746301912a 2026-10-27 17:03:16,938 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f10a77aa-7aee-4ffa-8677-4b1d5495ad2f 2026-10-27 17:03:16,954 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11650280:ctest-vn4-65807576', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11650280', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12695347147068163982', 'uuid-lslong': '11420832887623161793'}, 'enable': 'true', 'created': '2026-10-27T17:03:15', 'last-modified': '2026-10-27T17:03:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.844416'} 2026-10-27 17:03:16,961 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-10-27 17:03:16,962 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-65807576 passed 2026-10-27 17:03:16,962 - DEBUG - ====Verifying policy data for ctest-vn4-65807576 in API_Server ====== 2026-10-27 17:03:16,962 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-27 17:03:16,969 - DEBUG - Requesting: http://10.0.0.38:8082/domain/75c4af02-2b30-49d8-9e27-b8c56a186453 2026-10-27 17:03:16,982 - DEBUG - Requesting: http://10.0.0.38:8082/project/e67884d0-ad44-4b7b-bec1-72fd17144950 2026-10-27 17:03:17,057 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b02eeef7-a944-478e-9e7e-f30049e097c1 2026-10-27 17:03:17,068 - DEBUG - ==>Verifying data for policy with id: 51ac9f84-117d-4311-9984-e8136282014c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11650280', 'ctest-policy1-62739178'] 2026-10-27 17:03:17,068 - INFO - VN ctest-vn4-65807576 Policy verification: verify_vn_policy_in_api_server, status: True 2026-10-27 17:03:17,068 - DEBUG - Verifying the vn in opserver 2026-10-27 17:03:17,068 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11650280:ctest-vn4-65807576 virtual network link through opserver 10.0.0.38 2026-10-27 17:03:17,068 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-27 17:03:17,442 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-10-27 17:03:17,500 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11650280:ctest-vn4-65807576', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11650280:ctest-vn4-65807576?flat'} 2026-10-27 17:03:17,500 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11650280:ctest-vn4-65807576 is found in opserver 2026-10-27 17:03:17,511 - DEBUG - Do not have enough data to verify VN in agent 2026-10-27 17:03:17,517 - DEBUG - VRF ids for VN ctest-vn4-65807576: {} 2026-10-27 17:03:17,518 - DEBUG - ====Verifying data for ctest-policy1-62739178 in API_Server ====== 2026-10-27 17:03:17,518 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-27 17:03:17,525 - DEBUG - Requesting: http://10.0.0.38:8082/domain/75c4af02-2b30-49d8-9e27-b8c56a186453 2026-10-27 17:03:17,538 - DEBUG - Requesting: http://10.0.0.38:8082/project/e67884d0-ad44-4b7b-bec1-72fd17144950 2026-10-27 17:03:17,609 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/51ac9f84-117d-4311-9984-e8136282014c 2026-10-27 17:03:17,619 - INFO - Verified policy ctest-policy1-62739178 in API Server, Result: True 2026-10-27 17:03:17,619 - INFO - Done with setup and verification, moving onto test .. 2026-10-27 17:03:17,628 - INFO - Deleting VN ctest-vn4-65807576 2026-10-27 17:03:17,756 - DEBUG - Response for deleting network () 2026-10-27 17:03:17,756 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cc47ecb4-a2d5-44a1-9ca3-61746301912a 2026-10-27 17:03:17,761 - DEBUG - Response Code: 404 2026-10-27 17:03:17,762 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-10-27 17:03:17,769 - DEBUG - Requesting: http://10.0.0.38:8082/domain/75c4af02-2b30-49d8-9e27-b8c56a186453 2026-10-27 17:03:17,822 - DEBUG - Requesting: http://10.0.0.38:8082/project/e67884d0-ad44-4b7b-bec1-72fd17144950 2026-10-27 17:03:17,902 - INFO - Validated that VN ctest-vn4-65807576 is not found in API Server 2026-10-27 17:03:17,914 - DEBUG - VN ctest-vn4-65807576 is not present in Agent 10.0.0.38 2026-10-27 17:03:17,914 - INFO - Validated that VN ctest-vn4-65807576 is not in any agent 2026-10-27 17:03:17,931 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-65807576 info 2026-10-27 17:03:17,957 - INFO - Deleted policy ctest-policy1-62739178 2026-10-27 17:03:18,133 - DEBUG - policy ctest-policy1-62739178 is not found in API Server 2026-10-27 17:03:18,402 - DEBUG - No XMPP flaps were noticed during the test