2026-04-21 22:14:52,143 - INFO - Domain Default found not creating 2026-04-21 22:14:52,332 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43297651 not found, creating it 2026-04-21 22:14:52,862 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43297651, ID : 7ac2466e-9257-4820-b397-aafa6babbd3f 2026-04-21 22:14:54,404 - INFO - ================================================================================ 2026-04-21 22:14:54,404 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-21 22:14:54,663 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-21 22:14:54,663 - INFO - Initial checks done. Running the testcase now 2026-04-21 22:14:54,663 - INFO - 2026-04-21 22:14:54,664 - INFO - ================================================================================ 2026-04-21 22:14:54,664 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-21 22:14:54,664 - 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-04-21 22:14:54,955 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-04-21 22:14:54,955 - INFO - Initial checks done. Running the testcase now 2026-04-21 22:14:54,955 - INFO - 2026-04-21 22:14:55,331 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43297651:ctest-vn4-33273244, 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-43297651:ctest-vn4-33273244, 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-43297651:ctest-vn4-33273244, 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-43297651:ctest-vn4-33273244, 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-04-21 22:14:55,840 - DEBUG - Response for create_network : {'network': {'id': '3ef9dd36-ed6b-4407-ae95-d794d8ee7e39', 'name': 'ctest-vn4-33273244', 'tenant_id': '7ac2466e92574820b397aafa6babbd3f', 'project_id': '7ac2466e92574820b397aafa6babbd3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43297651', 'ctest-vn4-33273244'], 'port_security_enabled': True, 'description': ''}} 2026-04-21 22:14:56,063 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dde335c8-86d7-46f8-a06e-63aaa2bb5cf5', 'name': '', 'tenant_id': '7ac2466e92574820b397aafa6babbd3f', 'network_id': '3ef9dd36-ed6b-4407-ae95-d794d8ee7e39', 'ip_version': 4, 'cidr': '208.254.140.128/26', 'allocation_pools': [{'start': '208.254.140.130', 'end': '208.254.140.190'}], 'gateway_ip': '208.254.140.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208.254.140.130', 'tags': [], 'project_id': '7ac2466e92574820b397aafa6babbd3f'}} 2026-04-21 22:14:56,212 - DEBUG - Response for create_subnet : {'subnet': {'id': '17348b0d-7d4a-4bcc-807f-f1a6422bf3d5', 'name': '', 'tenant_id': '7ac2466e92574820b397aafa6babbd3f', 'network_id': '3ef9dd36-ed6b-4407-ae95-d794d8ee7e39', 'ip_version': 6, 'cidr': '3bb6:4969:26d5:b9ac:cb08:8b1b::/96', 'allocation_pools': [{'start': '3bb6:4969:26d5:b9ac:cb08:8b1b:0:2', 'end': '3bb6:4969:26d5:b9ac:cb08:8b1b:ffff:fffe'}], 'gateway_ip': '3bb6:4969:26d5:b9ac:cb08:8b1b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3bb6:4969:26d5:b9ac:cb08:8b1b:0:2', 'tags': [], 'project_id': '7ac2466e92574820b397aafa6babbd3f'}} 2026-04-21 22:14:56,233 - INFO - Created VN ctest-vn4-33273244 2026-04-21 22:14:56,286 - DEBUG - VN ctest-vn4-33273244 UUID is 3ef9dd36-ed6b-4407-ae95-d794d8ee7e39 2026-04-21 22:14:56,496 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3ef9dd36-ed6b-4407-ae95-d794d8ee7e39', 'name': 'ctest-vn4-33273244', 'tenant_id': '7ac2466e92574820b397aafa6babbd3f', 'project_id': '7ac2466e92574820b397aafa6babbd3f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dde335c8-86d7-46f8-a06e-63aaa2bb5cf5', '17348b0d-7d4a-4bcc-807f-f1a6422bf3d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43297651', 'ctest-vn4-33273244'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43297651', 'ctest-policy1-31762863']], 'subnet_ipam': [{'subnet_cidr': '208.254.140.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3bb6:4969:26d5:b9ac:cb08:8b1b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-21 22:14:56,674 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 22:14:56,982 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 22:14:57,016 - DEBUG - Requesting: http://10.0.0.38:8082/domain/33208cc1-0030-4a05-8a55-a4435d63b726 2026-04-21 22:14:57,030 - DEBUG - Requesting: http://10.0.0.38:8082/project/7ac2466e-9257-4820-b397-aafa6babbd3f 2026-04-21 22:14:57,104 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3ef9dd36-ed6b-4407-ae95-d794d8ee7e39 2026-04-21 22:14:57,117 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3ef9dd36-ed6b-4407-ae95-d794d8ee7e39 2026-04-21 22:14:57,129 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/993450e3-55a9-4e04-a4b2-d798f004c362 2026-04-21 22:14:57,136 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/993450e3-55a9-4e04-a4b2-d798f004c362 2026-04-21 22:14:57,143 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/734fd69b-cc7f-46ab-b09c-fd32336f308c 2026-04-21 22:14:57,150 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-21 22:14:57,150 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3ef9dd36-ed6b-4407-ae95-d794d8ee7e39 2026-04-21 22:14:57,161 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/993450e3-55a9-4e04-a4b2-d798f004c362 2026-04-21 22:14:57,177 - INFO - Verified VN network id 11 for VN 3ef9dd36-ed6b-4407-ae95-d794d8ee7e39 2026-04-21 22:14:57,177 - INFO - Verifications in API Server for VN ctest-vn4-33273244 passed 2026-04-21 22:14:57,178 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3ef9dd36-ed6b-4407-ae95-d794d8ee7e39 2026-04-21 22:14:57,188 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/993450e3-55a9-4e04-a4b2-d798f004c362 2026-04-21 22:14:57,196 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/993450e3-55a9-4e04-a4b2-d798f004c362 2026-04-21 22:14:57,205 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/734fd69b-cc7f-46ab-b09c-fd32336f308c 2026-04-21 22:14:57,217 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43297651:ctest-vn4-33273244', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43297651', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4537901327533687815', 'uuid-lslong': '12580198168423988793'}, 'enable': 'true', 'created': '2026-04-21T22:14:55', 'last-modified': '2026-04-21T22:14:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.754399'} 2026-04-21 22:14:57,224 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-21 22:14:57,224 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33273244 passed 2026-04-21 22:14:57,224 - DEBUG - ====Verifying policy data for ctest-vn4-33273244 in API_Server ====== 2026-04-21 22:14:57,224 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 22:14:57,230 - DEBUG - Requesting: http://10.0.0.38:8082/domain/33208cc1-0030-4a05-8a55-a4435d63b726 2026-04-21 22:14:57,241 - DEBUG - Requesting: http://10.0.0.38:8082/project/7ac2466e-9257-4820-b397-aafa6babbd3f 2026-04-21 22:14:57,311 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3ef9dd36-ed6b-4407-ae95-d794d8ee7e39 2026-04-21 22:14:57,320 - DEBUG - ==>Verifying data for policy with id: cff5e3b9-c068-422f-9aef-66f44c76abd1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43297651', 'ctest-policy1-31762863'] 2026-04-21 22:14:57,320 - INFO - VN ctest-vn4-33273244 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-21 22:14:57,320 - DEBUG - Verifying the vn in opserver 2026-04-21 22:14:57,320 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43297651:ctest-vn4-33273244 virtual network link through opserver 10.0.0.38 2026-04-21 22:14:57,320 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-21 22:14:57,620 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-21 22:14:57,691 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43297651:ctest-vn4-33273244', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43297651:ctest-vn4-33273244?flat'} 2026-04-21 22:14:57,691 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43297651:ctest-vn4-33273244 is found in opserver 2026-04-21 22:14:57,702 - DEBUG - Do not have enough data to verify VN in agent 2026-04-21 22:14:57,707 - DEBUG - VRF ids for VN ctest-vn4-33273244: {} 2026-04-21 22:14:57,708 - DEBUG - ====Verifying data for ctest-policy1-31762863 in API_Server ====== 2026-04-21 22:14:57,708 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 22:14:57,713 - DEBUG - Requesting: http://10.0.0.38:8082/domain/33208cc1-0030-4a05-8a55-a4435d63b726 2026-04-21 22:14:57,725 - DEBUG - Requesting: http://10.0.0.38:8082/project/7ac2466e-9257-4820-b397-aafa6babbd3f 2026-04-21 22:14:57,798 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/cff5e3b9-c068-422f-9aef-66f44c76abd1 2026-04-21 22:14:57,808 - INFO - Verified policy ctest-policy1-31762863 in API Server, Result: True 2026-04-21 22:14:57,808 - INFO - Done with setup and verification, moving onto test .. 2026-04-21 22:14:57,816 - INFO - Deleting VN ctest-vn4-33273244 2026-04-21 22:14:57,950 - DEBUG - Response for deleting network () 2026-04-21 22:14:57,951 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/993450e3-55a9-4e04-a4b2-d798f004c362 2026-04-21 22:14:57,956 - DEBUG - Response Code: 404 2026-04-21 22:14:57,956 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-21 22:14:57,962 - DEBUG - Requesting: http://10.0.0.38:8082/domain/33208cc1-0030-4a05-8a55-a4435d63b726 2026-04-21 22:14:58,015 - DEBUG - Requesting: http://10.0.0.38:8082/project/7ac2466e-9257-4820-b397-aafa6babbd3f 2026-04-21 22:14:58,086 - INFO - Validated that VN ctest-vn4-33273244 is not found in API Server 2026-04-21 22:14:58,096 - DEBUG - VN ctest-vn4-33273244 is not present in Agent 10.0.0.38 2026-04-21 22:14:58,096 - INFO - Validated that VN ctest-vn4-33273244 is not in any agent 2026-04-21 22:14:58,109 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33273244 info 2026-04-21 22:14:58,132 - INFO - Deleted policy ctest-policy1-31762863 2026-04-21 22:14:58,294 - DEBUG - policy ctest-policy1-31762863 is not found in API Server 2026-04-21 22:14:58,546 - DEBUG - No XMPP flaps were noticed during the test
2026-04-21 22:14:58,546 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-21 22:14:58,546 - INFO - -------------------------------------------------------------------------------- 2026-04-21 22:14:58,836 - DEBUG - No XMPP flaps were noticed during the test
2026-04-21 22:14:58,836 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-04-21 22:14:58,836 - INFO - -------------------------------------------------------------------------------- 2026-04-21 22:14:59,525 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43297651, ID : 7ac2466e-9257-4820-b397-aafa6babbd3f