2026-05-20 12:33:33,467 - INFO - Domain Default found not creating 2026-05-20 12:33:33,632 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-18055254 not found, creating it 2026-05-20 12:33:34,088 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-18055254, ID : 16cb71ef-a0c3-43b1-9e02-557debe9da4d 2026-05-20 12:33:35,559 - INFO - ================================================================================ 2026-05-20 12:33:35,559 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-20 12:33:35,817 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-05-20 12:33:35,817 - INFO - Initial checks done. Running the testcase now 2026-05-20 12:33:35,817 - INFO - 2026-05-20 12:33:35,817 - INFO - ================================================================================ 2026-05-20 12:33:35,817 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-20 12:33:35,817 - 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-20 12:33:36,106 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-05-20 12:33:36,106 - INFO - Initial checks done. Running the testcase now 2026-05-20 12:33:36,106 - INFO - 2026-05-20 12:33:36,459 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18055254:ctest-vn4-10792656, 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-18055254:ctest-vn4-10792656, 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-18055254:ctest-vn4-10792656, 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-18055254:ctest-vn4-10792656, 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-20 12:33:36,965 - DEBUG - Response for create_network : {'network': {'id': '1103d918-0d3d-4f1a-b6da-a7543656b799', 'name': 'ctest-vn4-10792656', 'tenant_id': '16cb71efa0c343b19e02557debe9da4d', 'project_id': '16cb71efa0c343b19e02557debe9da4d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18055254', 'ctest-vn4-10792656'], 'port_security_enabled': True, 'description': ''}} 2026-05-20 12:33:37,124 - DEBUG - Response for create_subnet : {'subnet': {'id': '77fcc53f-84ea-4355-812b-435b55fb6a34', 'name': '', 'tenant_id': '16cb71efa0c343b19e02557debe9da4d', 'network_id': '1103d918-0d3d-4f1a-b6da-a7543656b799', 'ip_version': 4, 'cidr': '40.31.223.0/26', 'allocation_pools': [{'start': '40.31.223.2', 'end': '40.31.223.62'}], 'gateway_ip': '40.31.223.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.31.223.2', 'tags': [], 'project_id': '16cb71efa0c343b19e02557debe9da4d'}} 2026-05-20 12:33:37,300 - DEBUG - Response for create_subnet : {'subnet': {'id': '0306f7cb-9ef2-4e5d-860e-3623ca3d3dd8', 'name': '', 'tenant_id': '16cb71efa0c343b19e02557debe9da4d', 'network_id': '1103d918-0d3d-4f1a-b6da-a7543656b799', 'ip_version': 6, 'cidr': '23e8:d3eb:3335:4ee0:ff32:d6bb::/96', 'allocation_pools': [{'start': '23e8:d3eb:3335:4ee0:ff32:d6bb:0:2', 'end': '23e8:d3eb:3335:4ee0:ff32:d6bb:ffff:fffe'}], 'gateway_ip': '23e8:d3eb:3335:4ee0:ff32:d6bb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23e8:d3eb:3335:4ee0:ff32:d6bb:0:2', 'tags': [], 'project_id': '16cb71efa0c343b19e02557debe9da4d'}} 2026-05-20 12:33:37,319 - INFO - Created VN ctest-vn4-10792656 2026-05-20 12:33:37,369 - DEBUG - VN ctest-vn4-10792656 UUID is 1103d918-0d3d-4f1a-b6da-a7543656b799 2026-05-20 12:33:37,572 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1103d918-0d3d-4f1a-b6da-a7543656b799', 'name': 'ctest-vn4-10792656', 'tenant_id': '16cb71efa0c343b19e02557debe9da4d', 'project_id': '16cb71efa0c343b19e02557debe9da4d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['77fcc53f-84ea-4355-812b-435b55fb6a34', '0306f7cb-9ef2-4e5d-860e-3623ca3d3dd8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18055254', 'ctest-vn4-10792656'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18055254', 'ctest-policy1-75314282']], 'subnet_ipam': [{'subnet_cidr': '40.31.223.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23e8:d3eb:3335:4ee0:ff32:d6bb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-20 12:33:37,729 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-20 12:33:38,129 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-20 12:33:38,172 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a9782170-3914-47e9-9ea4-bc41b6f15807 2026-05-20 12:33:38,187 - DEBUG - Requesting: http://10.0.0.242:8082/project/16cb71ef-a0c3-43b1-9e02-557debe9da4d 2026-05-20 12:33:38,263 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1103d918-0d3d-4f1a-b6da-a7543656b799 2026-05-20 12:33:38,276 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1103d918-0d3d-4f1a-b6da-a7543656b799 2026-05-20 12:33:38,286 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b4a4defb-b936-4109-9ba8-41ca3eeddf9c 2026-05-20 12:33:38,296 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b4a4defb-b936-4109-9ba8-41ca3eeddf9c 2026-05-20 12:33:38,303 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ad2947f6-0b55-438b-92d3-69418dbc1d28 2026-05-20 12:33:38,310 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-20 12:33:38,310 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1103d918-0d3d-4f1a-b6da-a7543656b799 2026-05-20 12:33:38,318 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b4a4defb-b936-4109-9ba8-41ca3eeddf9c 2026-05-20 12:33:38,333 - INFO - Verified VN network id 11 for VN 1103d918-0d3d-4f1a-b6da-a7543656b799 2026-05-20 12:33:38,333 - INFO - Verifications in API Server for VN ctest-vn4-10792656 passed 2026-05-20 12:33:38,333 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1103d918-0d3d-4f1a-b6da-a7543656b799 2026-05-20 12:33:38,342 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b4a4defb-b936-4109-9ba8-41ca3eeddf9c 2026-05-20 12:33:38,348 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b4a4defb-b936-4109-9ba8-41ca3eeddf9c 2026-05-20 12:33:38,353 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/ad2947f6-0b55-438b-92d3-69418dbc1d28 2026-05-20 12:33:38,364 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18055254:ctest-vn4-10792656', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-18055254', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1226062220899471130', 'uuid-lslong': '13176027639956551577'}, 'enable': 'true', 'created': '2026-05-20T12:33:36', 'last-modified': '2026-05-20T12:33:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.823306'} 2026-05-20 12:33:38,370 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-20 12:33:38,370 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-10792656 passed 2026-05-20 12:33:38,370 - DEBUG - ====Verifying policy data for ctest-vn4-10792656 in API_Server ====== 2026-05-20 12:33:38,370 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-20 12:33:38,375 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a9782170-3914-47e9-9ea4-bc41b6f15807 2026-05-20 12:33:38,386 - DEBUG - Requesting: http://10.0.0.242:8082/project/16cb71ef-a0c3-43b1-9e02-557debe9da4d 2026-05-20 12:33:38,456 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1103d918-0d3d-4f1a-b6da-a7543656b799 2026-05-20 12:33:38,468 - DEBUG - ==>Verifying data for policy with id: 4b6a695b-eb81-48c1-af30-bb4fc81f3008, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-18055254', 'ctest-policy1-75314282'] 2026-05-20 12:33:38,468 - INFO - VN ctest-vn4-10792656 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-20 12:33:38,468 - DEBUG - Verifying the vn in opserver 2026-05-20 12:33:38,468 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18055254:ctest-vn4-10792656 virtual network link through opserver 10.0.0.242 2026-05-20 12:33:38,468 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-05-20 12:33:38,792 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-05-20 12:33:38,882 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18055254:ctest-vn4-10792656', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18055254:ctest-vn4-10792656?flat'} 2026-05-20 12:33:38,882 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-18055254:ctest-vn4-10792656 is found in opserver 2026-05-20 12:33:38,891 - DEBUG - Do not have enough data to verify VN in agent 2026-05-20 12:33:38,895 - DEBUG - VRF ids for VN ctest-vn4-10792656: {} 2026-05-20 12:33:38,896 - DEBUG - ====Verifying data for ctest-policy1-75314282 in API_Server ====== 2026-05-20 12:33:38,896 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-20 12:33:38,902 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a9782170-3914-47e9-9ea4-bc41b6f15807 2026-05-20 12:33:38,912 - DEBUG - Requesting: http://10.0.0.242:8082/project/16cb71ef-a0c3-43b1-9e02-557debe9da4d 2026-05-20 12:33:38,983 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/4b6a695b-eb81-48c1-af30-bb4fc81f3008 2026-05-20 12:33:38,992 - INFO - Verified policy ctest-policy1-75314282 in API Server, Result: True 2026-05-20 12:33:38,992 - INFO - Done with setup and verification, moving onto test .. 2026-05-20 12:33:38,999 - INFO - Deleting VN ctest-vn4-10792656 2026-05-20 12:33:39,129 - DEBUG - Response for deleting network () 2026-05-20 12:33:39,129 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/b4a4defb-b936-4109-9ba8-41ca3eeddf9c 2026-05-20 12:33:39,134 - DEBUG - Response Code: 404 2026-05-20 12:33:39,134 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-05-20 12:33:39,140 - DEBUG - Requesting: http://10.0.0.242:8082/domain/a9782170-3914-47e9-9ea4-bc41b6f15807 2026-05-20 12:33:39,198 - DEBUG - Requesting: http://10.0.0.242:8082/project/16cb71ef-a0c3-43b1-9e02-557debe9da4d 2026-05-20 12:33:39,267 - INFO - Validated that VN ctest-vn4-10792656 is not found in API Server 2026-05-20 12:33:39,277 - DEBUG - VN ctest-vn4-10792656 is not present in Agent 10.0.0.242 2026-05-20 12:33:39,277 - INFO - Validated that VN ctest-vn4-10792656 is not in any agent 2026-05-20 12:33:39,291 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-10792656 info 2026-05-20 12:33:39,314 - INFO - Deleted policy ctest-policy1-75314282 2026-05-20 12:33:39,477 - DEBUG - policy ctest-policy1-75314282 is not found in API Server 2026-05-20 12:33:39,729 - DEBUG - No XMPP flaps were noticed during the test