2026-01-01 01:56:56,766 - INFO - Domain Default found not creating 2026-01-01 01:56:56,927 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-29035367 not found, creating it 2026-01-01 01:56:57,379 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-29035367, ID : eb07b8b2-93a5-4509-8422-b19121cc188c 2026-01-01 01:56:58,905 - INFO - ================================================================================ 2026-01-01 01:56:58,905 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-01 01:56:59,161 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.201': '0'}} with 2026-01-01 01:56:59,161 - INFO - Initial checks done. Running the testcase now 2026-01-01 01:56:59,161 - INFO - 2026-01-01 01:56:59,162 - INFO - ================================================================================ 2026-01-01 01:56:59,162 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-01 01:56:59,162 - 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-01-01 01:56:59,448 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.201': '0'}} with 2026-01-01 01:56:59,448 - INFO - Initial checks done. Running the testcase now 2026-01-01 01:56:59,448 - INFO - 2026-01-01 01:56:59,814 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29035367:ctest-vn4-57059420, 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-29035367:ctest-vn4-57059420, 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-29035367:ctest-vn4-57059420, 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-29035367:ctest-vn4-57059420, 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-01-01 01:57:00,383 - DEBUG - Response for create_network : {'network': {'id': 'd4027093-1256-4ea8-85f3-33dc0a24cbcc', 'name': 'ctest-vn4-57059420', 'tenant_id': 'eb07b8b293a545098422b19121cc188c', 'project_id': 'eb07b8b293a545098422b19121cc188c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29035367', 'ctest-vn4-57059420'], 'port_security_enabled': True, 'description': ''}} 2026-01-01 01:57:00,597 - DEBUG - Response for create_subnet : {'subnet': {'id': '5f546872-a2c0-4ac5-93d1-cadb9e010cfe', 'name': '', 'tenant_id': 'eb07b8b293a545098422b19121cc188c', 'network_id': 'd4027093-1256-4ea8-85f3-33dc0a24cbcc', 'ip_version': 4, 'cidr': '99.102.62.0/26', 'allocation_pools': [{'start': '99.102.62.2', 'end': '99.102.62.62'}], 'gateway_ip': '99.102.62.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '99.102.62.2', 'tags': [], 'project_id': 'eb07b8b293a545098422b19121cc188c'}} 2026-01-01 01:57:00,769 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a802868-0f94-4d46-a839-a90f7d474016', 'name': '', 'tenant_id': 'eb07b8b293a545098422b19121cc188c', 'network_id': 'd4027093-1256-4ea8-85f3-33dc0a24cbcc', 'ip_version': 6, 'cidr': '29ec:2fe1:1384:a45a:b57f:2d5::/96', 'allocation_pools': [{'start': '29ec:2fe1:1384:a45a:b57f:2d5:0:2', 'end': '29ec:2fe1:1384:a45a:b57f:2d5:ffff:fffe'}], 'gateway_ip': '29ec:2fe1:1384:a45a:b57f:2d5:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29ec:2fe1:1384:a45a:b57f:2d5:0:2', 'tags': [], 'project_id': 'eb07b8b293a545098422b19121cc188c'}} 2026-01-01 01:57:00,788 - INFO - Created VN ctest-vn4-57059420 2026-01-01 01:57:00,840 - DEBUG - VN ctest-vn4-57059420 UUID is d4027093-1256-4ea8-85f3-33dc0a24cbcc 2026-01-01 01:57:01,059 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd4027093-1256-4ea8-85f3-33dc0a24cbcc', 'name': 'ctest-vn4-57059420', 'tenant_id': 'eb07b8b293a545098422b19121cc188c', 'project_id': 'eb07b8b293a545098422b19121cc188c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5f546872-a2c0-4ac5-93d1-cadb9e010cfe', '0a802868-0f94-4d46-a839-a90f7d474016'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29035367', 'ctest-vn4-57059420'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29035367', 'ctest-policy1-86874173']], 'subnet_ipam': [{'subnet_cidr': '99.102.62.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '29ec:2fe1:1384:a45a:b57f:2d5::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-01 01:57:01,220 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2026-01-01 01:57:01,518 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2026-01-01 01:57:01,550 - DEBUG - Requesting: http://10.0.0.56:8082/domain/0a465bc4-7aaf-4ded-b741-74fdf074977f 2026-01-01 01:57:01,565 - DEBUG - Requesting: http://10.0.0.56:8082/project/eb07b8b2-93a5-4509-8422-b19121cc188c 2026-01-01 01:57:01,637 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d4027093-1256-4ea8-85f3-33dc0a24cbcc 2026-01-01 01:57:01,650 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d4027093-1256-4ea8-85f3-33dc0a24cbcc 2026-01-01 01:57:01,662 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/ce08ae72-d366-4133-9008-638389608212 2026-01-01 01:57:01,669 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/ce08ae72-d366-4133-9008-638389608212 2026-01-01 01:57:01,678 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/5ddbc2f9-639f-4f83-97e6-94dea0cdb74d 2026-01-01 01:57:01,684 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 01:57:01,684 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d4027093-1256-4ea8-85f3-33dc0a24cbcc 2026-01-01 01:57:01,695 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/ce08ae72-d366-4133-9008-638389608212 2026-01-01 01:57:01,711 - INFO - Verified VN network id 10 for VN d4027093-1256-4ea8-85f3-33dc0a24cbcc 2026-01-01 01:57:01,711 - INFO - Verifications in API Server for VN ctest-vn4-57059420 passed 2026-01-01 01:57:01,711 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d4027093-1256-4ea8-85f3-33dc0a24cbcc 2026-01-01 01:57:01,722 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/ce08ae72-d366-4133-9008-638389608212 2026-01-01 01:57:01,731 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/ce08ae72-d366-4133-9008-638389608212 2026-01-01 01:57:01,739 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/5ddbc2f9-639f-4f83-97e6-94dea0cdb74d 2026-01-01 01:57:01,752 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29035367:ctest-vn4-57059420', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-29035367', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15276896662964293288', 'uuid-lslong': '9652115446541110220'}, 'enable': 'true', 'created': '2026-01-01T01:57:00', 'last-modified': '2026-01-01T01:57:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.724360'} 2026-01-01 01:57:01,758 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-01 01:57:01,758 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-57059420 passed 2026-01-01 01:57:01,758 - DEBUG - ====Verifying policy data for ctest-vn4-57059420 in API_Server ====== 2026-01-01 01:57:01,758 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2026-01-01 01:57:01,763 - DEBUG - Requesting: http://10.0.0.56:8082/domain/0a465bc4-7aaf-4ded-b741-74fdf074977f 2026-01-01 01:57:01,773 - DEBUG - Requesting: http://10.0.0.56:8082/project/eb07b8b2-93a5-4509-8422-b19121cc188c 2026-01-01 01:57:01,845 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/d4027093-1256-4ea8-85f3-33dc0a24cbcc 2026-01-01 01:57:01,857 - DEBUG - ==>Verifying data for policy with id: c492af4a-1d9e-42a0-9ad2-e0e1e0d98852, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-29035367', 'ctest-policy1-86874173'] 2026-01-01 01:57:01,857 - INFO - VN ctest-vn4-57059420 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-01 01:57:01,857 - DEBUG - Verifying the vn in opserver 2026-01-01 01:57:01,857 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29035367:ctest-vn4-57059420 virtual network link through opserver 10.0.0.56 2026-01-01 01:57:01,857 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2026-01-01 01:57:02,152 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2026-01-01 01:57:02,216 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29035367:ctest-vn4-57059420', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29035367:ctest-vn4-57059420?flat'} 2026-01-01 01:57:02,216 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-29035367:ctest-vn4-57059420 is found in opserver 2026-01-01 01:57:02,226 - DEBUG - Do not have enough data to verify VN in agent 2026-01-01 01:57:02,231 - DEBUG - VRF ids for VN ctest-vn4-57059420: {} 2026-01-01 01:57:02,232 - DEBUG - ====Verifying data for ctest-policy1-86874173 in API_Server ====== 2026-01-01 01:57:02,232 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2026-01-01 01:57:02,237 - DEBUG - Requesting: http://10.0.0.56:8082/domain/0a465bc4-7aaf-4ded-b741-74fdf074977f 2026-01-01 01:57:02,249 - DEBUG - Requesting: http://10.0.0.56:8082/project/eb07b8b2-93a5-4509-8422-b19121cc188c 2026-01-01 01:57:02,314 - DEBUG - Requesting: http://10.0.0.56:8082/network-policy/c492af4a-1d9e-42a0-9ad2-e0e1e0d98852 2026-01-01 01:57:02,323 - INFO - Verified policy ctest-policy1-86874173 in API Server, Result: True 2026-01-01 01:57:02,323 - INFO - Done with setup and verification, moving onto test .. 2026-01-01 01:57:02,331 - INFO - Deleting VN ctest-vn4-57059420 2026-01-01 01:57:02,456 - DEBUG - Response for deleting network () 2026-01-01 01:57:02,456 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/ce08ae72-d366-4133-9008-638389608212 2026-01-01 01:57:02,462 - DEBUG - Response Code: 404 2026-01-01 01:57:02,462 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2026-01-01 01:57:02,468 - DEBUG - Requesting: http://10.0.0.56:8082/domain/0a465bc4-7aaf-4ded-b741-74fdf074977f 2026-01-01 01:57:02,521 - DEBUG - Requesting: http://10.0.0.56:8082/project/eb07b8b2-93a5-4509-8422-b19121cc188c 2026-01-01 01:57:02,593 - INFO - Validated that VN ctest-vn4-57059420 is not found in API Server 2026-01-01 01:57:02,604 - DEBUG - VN ctest-vn4-57059420 is not present in Agent 10.0.0.56 2026-01-01 01:57:02,604 - INFO - Validated that VN ctest-vn4-57059420 is not in any agent 2026-01-01 01:57:02,618 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-57059420 info 2026-01-01 01:57:02,645 - INFO - Deleted policy ctest-policy1-86874173 2026-01-01 01:57:02,807 - DEBUG - policy ctest-policy1-86874173 is not found in API Server 2026-01-01 01:57:03,061 - DEBUG - No XMPP flaps were noticed during the test 2026-01-01 01:57:03,062 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-01 01:57:03,062 - INFO - -------------------------------------------------------------------------------- 2026-01-01 01:57:03,359 - DEBUG - No XMPP flaps were noticed during the test 2026-01-01 01:57:03,359 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-01 01:57:03,360 - INFO - -------------------------------------------------------------------------------- 2026-01-01 01:57:04,153 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-29035367, ID : eb07b8b2-93a5-4509-8422-b19121cc188c