2026-06-08 02:15:07,601 - INFO - Domain Default found not creating 2026-06-08 02:15:07,819 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-86414347 not found, creating it 2026-06-08 02:15:08,299 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-86414347, ID : 50640554-c060-49c1-8f10-6013a41674fd 2026-06-08 02:15:09,877 - INFO - ================================================================================ 2026-06-08 02:15:09,877 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-08 02:15:10,140 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0'}} with 2026-06-08 02:15:10,140 - INFO - Initial checks done. Running the testcase now 2026-06-08 02:15:10,140 - INFO - 2026-06-08 02:15:10,140 - INFO - ================================================================================ 2026-06-08 02:15:10,140 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-08 02:15:10,140 - 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-06-08 02:15:10,443 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.14': '0'}} with 2026-06-08 02:15:10,443 - INFO - Initial checks done. Running the testcase now 2026-06-08 02:15:10,443 - INFO - 2026-06-08 02:15:10,818 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86414347:ctest-vn4-67490836, 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-86414347:ctest-vn4-67490836, 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-86414347:ctest-vn4-67490836, 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-86414347:ctest-vn4-67490836, 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-06-08 02:15:11,364 - DEBUG - Response for create_network : {'network': {'id': '12240ca2-8dd7-49d0-9332-40e5f0950d48', 'name': 'ctest-vn4-67490836', 'tenant_id': '50640554c06049c18f106013a41674fd', 'project_id': '50640554c06049c18f106013a41674fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86414347', 'ctest-vn4-67490836'], 'port_security_enabled': True, 'description': ''}} 2026-06-08 02:15:11,559 - DEBUG - Response for create_subnet : {'subnet': {'id': '45c18ee3-2a40-4db8-bac5-32c702ae2aef', 'name': '', 'tenant_id': '50640554c06049c18f106013a41674fd', 'network_id': '12240ca2-8dd7-49d0-9332-40e5f0950d48', 'ip_version': 4, 'cidr': '169.63.194.64/26', 'allocation_pools': [{'start': '169.63.194.66', 'end': '169.63.194.126'}], 'gateway_ip': '169.63.194.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.63.194.66', 'tags': [], 'project_id': '50640554c06049c18f106013a41674fd'}} 2026-06-08 02:15:11,744 - DEBUG - Response for create_subnet : {'subnet': {'id': '819c83cf-b9a1-411b-92b4-92fb43cc982c', 'name': '', 'tenant_id': '50640554c06049c18f106013a41674fd', 'network_id': '12240ca2-8dd7-49d0-9332-40e5f0950d48', 'ip_version': 6, 'cidr': '3e09:4ea1:7af6:8834:56b6:48f4::/96', 'allocation_pools': [{'start': '3e09:4ea1:7af6:8834:56b6:48f4:0:2', 'end': '3e09:4ea1:7af6:8834:56b6:48f4:ffff:fffe'}], 'gateway_ip': '3e09:4ea1:7af6:8834:56b6:48f4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e09:4ea1:7af6:8834:56b6:48f4:0:2', 'tags': [], 'project_id': '50640554c06049c18f106013a41674fd'}} 2026-06-08 02:15:11,773 - INFO - Created VN ctest-vn4-67490836 2026-06-08 02:15:11,828 - DEBUG - VN ctest-vn4-67490836 UUID is 12240ca2-8dd7-49d0-9332-40e5f0950d48 2026-06-08 02:15:12,064 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12240ca2-8dd7-49d0-9332-40e5f0950d48', 'name': 'ctest-vn4-67490836', 'tenant_id': '50640554c06049c18f106013a41674fd', 'project_id': '50640554c06049c18f106013a41674fd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45c18ee3-2a40-4db8-bac5-32c702ae2aef', '819c83cf-b9a1-411b-92b4-92fb43cc982c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86414347', 'ctest-vn4-67490836'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86414347', 'ctest-policy1-50547977']], 'subnet_ipam': [{'subnet_cidr': '169.63.194.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e09:4ea1:7af6:8834:56b6:48f4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-08 02:15:12,224 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-08 02:15:12,523 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-08 02:15:12,558 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d61a3bfc-6d2d-4d26-b970-fd9b14d402cf 2026-06-08 02:15:12,572 - DEBUG - Requesting: http://10.0.0.242:8082/project/50640554-c060-49c1-8f10-6013a41674fd 2026-06-08 02:15:12,644 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/12240ca2-8dd7-49d0-9332-40e5f0950d48 2026-06-08 02:15:12,658 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/12240ca2-8dd7-49d0-9332-40e5f0950d48 2026-06-08 02:15:12,668 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4126bb1a-9620-4657-902e-4566cd6d612c 2026-06-08 02:15:12,675 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4126bb1a-9620-4657-902e-4566cd6d612c 2026-06-08 02:15:12,682 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/291b9388-79be-4af9-83a1-8d97c115ddc5 2026-06-08 02:15:12,689 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 02:15:12,690 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/12240ca2-8dd7-49d0-9332-40e5f0950d48 2026-06-08 02:15:12,702 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4126bb1a-9620-4657-902e-4566cd6d612c 2026-06-08 02:15:12,721 - INFO - Verified VN network id 12 for VN 12240ca2-8dd7-49d0-9332-40e5f0950d48 2026-06-08 02:15:12,721 - INFO - Verifications in API Server for VN ctest-vn4-67490836 passed 2026-06-08 02:15:12,722 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/12240ca2-8dd7-49d0-9332-40e5f0950d48 2026-06-08 02:15:12,733 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4126bb1a-9620-4657-902e-4566cd6d612c 2026-06-08 02:15:12,740 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4126bb1a-9620-4657-902e-4566cd6d612c 2026-06-08 02:15:12,748 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/291b9388-79be-4af9-83a1-8d97c115ddc5 2026-06-08 02:15:12,760 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86414347:ctest-vn4-67490836', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-86414347', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1307183684148218320', 'uuid-lslong': '10606611428738927944'}, 'enable': 'true', 'created': '2026-06-08T02:15:11', 'last-modified': '2026-06-08T02:15:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.727804'} 2026-06-08 02:15:12,767 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-08 02:15:12,767 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67490836 passed 2026-06-08 02:15:12,767 - DEBUG - ====Verifying policy data for ctest-vn4-67490836 in API_Server ====== 2026-06-08 02:15:12,767 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-08 02:15:12,773 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d61a3bfc-6d2d-4d26-b970-fd9b14d402cf 2026-06-08 02:15:12,784 - DEBUG - Requesting: http://10.0.0.242:8082/project/50640554-c060-49c1-8f10-6013a41674fd 2026-06-08 02:15:12,858 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/12240ca2-8dd7-49d0-9332-40e5f0950d48 2026-06-08 02:15:12,868 - DEBUG - ==>Verifying data for policy with id: ea6ce3c7-1092-437c-8a06-cbaa64ec0b02, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86414347', 'ctest-policy1-50547977'] 2026-06-08 02:15:12,868 - INFO - VN ctest-vn4-67490836 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-08 02:15:12,868 - DEBUG - Verifying the vn in opserver 2026-06-08 02:15:12,868 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86414347:ctest-vn4-67490836 virtual network link through opserver 10.0.0.242 2026-06-08 02:15:12,869 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-06-08 02:15:13,167 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-06-08 02:15:13,556 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86414347:ctest-vn4-67490836', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86414347:ctest-vn4-67490836?flat'} 2026-06-08 02:15:13,556 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86414347:ctest-vn4-67490836 is found in opserver 2026-06-08 02:15:13,567 - DEBUG - Do not have enough data to verify VN in agent 2026-06-08 02:15:13,572 - DEBUG - VRF ids for VN ctest-vn4-67490836: {} 2026-06-08 02:15:13,573 - DEBUG - ====Verifying data for ctest-policy1-50547977 in API_Server ====== 2026-06-08 02:15:13,573 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-08 02:15:13,584 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d61a3bfc-6d2d-4d26-b970-fd9b14d402cf 2026-06-08 02:15:13,597 - DEBUG - Requesting: http://10.0.0.242:8082/project/50640554-c060-49c1-8f10-6013a41674fd 2026-06-08 02:15:13,668 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/ea6ce3c7-1092-437c-8a06-cbaa64ec0b02 2026-06-08 02:15:13,681 - INFO - Verified policy ctest-policy1-50547977 in API Server, Result: True 2026-06-08 02:15:13,681 - INFO - Done with setup and verification, moving onto test .. 2026-06-08 02:15:13,692 - INFO - Deleting VN ctest-vn4-67490836 2026-06-08 02:15:13,826 - DEBUG - Response for deleting network () 2026-06-08 02:15:13,826 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4126bb1a-9620-4657-902e-4566cd6d612c 2026-06-08 02:15:13,831 - DEBUG - Response Code: 404 2026-06-08 02:15:13,832 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-06-08 02:15:13,837 - DEBUG - Requesting: http://10.0.0.242:8082/domain/d61a3bfc-6d2d-4d26-b970-fd9b14d402cf 2026-06-08 02:15:13,893 - DEBUG - Requesting: http://10.0.0.242:8082/project/50640554-c060-49c1-8f10-6013a41674fd 2026-06-08 02:15:13,965 - INFO - Validated that VN ctest-vn4-67490836 is not found in API Server 2026-06-08 02:15:13,975 - DEBUG - VN ctest-vn4-67490836 is not present in Agent 10.0.0.242 2026-06-08 02:15:13,975 - INFO - Validated that VN ctest-vn4-67490836 is not in any agent 2026-06-08 02:15:13,990 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67490836 info 2026-06-08 02:15:14,011 - INFO - Deleted policy ctest-policy1-50547977 2026-06-08 02:15:14,175 - DEBUG - policy ctest-policy1-50547977 is not found in API Server 2026-06-08 02:15:14,436 - DEBUG - No XMPP flaps were noticed during the test