2025-10-22 10:08:08,675 - INFO - Domain Default found not creating 2025-10-22 10:08:08,832 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-75221055 not found, creating it 2025-10-22 10:08:09,315 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-75221055, ID : 480ef968-a0a4-48e8-bc27-dabdeae48cdc 2025-10-22 10:08:10,734 - INFO - ================================================================================ 2025-10-22 10:08:10,735 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 10:08:10,990 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2025-10-22 10:08:10,991 - INFO - Initial checks done. Running the testcase now 2025-10-22 10:08:10,991 - INFO - 2025-10-22 10:08:10,991 - INFO - ================================================================================ 2025-10-22 10:08:10,991 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 10:08:10,991 - 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. 2025-10-22 10:08:11,285 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with 2025-10-22 10:08:11,285 - INFO - Initial checks done. Running the testcase now 2025-10-22 10:08:11,285 - INFO - 2025-10-22 10:08:11,636 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75221055:ctest-vn4-40740967, 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-75221055:ctest-vn4-40740967, 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-75221055:ctest-vn4-40740967, 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-75221055:ctest-vn4-40740967, 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] 2025-10-22 10:08:12,151 - DEBUG - Response for create_network : {'network': {'id': '2bb78947-ce75-41d9-864b-6d92428bcc81', 'name': 'ctest-vn4-40740967', 'tenant_id': '480ef968a0a448e8bc27dabdeae48cdc', 'project_id': '480ef968a0a448e8bc27dabdeae48cdc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75221055', 'ctest-vn4-40740967'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 10:08:12,375 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c453b6db-6f6e-4b1a-ba43-f00e715b0e24', 'name': '', 'tenant_id': '480ef968a0a448e8bc27dabdeae48cdc', 'network_id': '2bb78947-ce75-41d9-864b-6d92428bcc81', 'ip_version': 4, 'cidr': '203.151.92.0/26', 'allocation_pools': [{'start': '203.151.92.2', 'end': '203.151.92.62'}], 'gateway_ip': '203.151.92.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '203.151.92.2', 'tags': [], 'project_id': '480ef968a0a448e8bc27dabdeae48cdc'}} 2025-10-22 10:08:12,538 - DEBUG - Response for create_subnet : {'subnet': {'id': '06757e80-d3db-40b7-9093-0136c8efd6ab', 'name': '', 'tenant_id': '480ef968a0a448e8bc27dabdeae48cdc', 'network_id': '2bb78947-ce75-41d9-864b-6d92428bcc81', 'ip_version': 6, 'cidr': '36a0:790a:f448:edb2:a1cc:573::/96', 'allocation_pools': [{'start': '36a0:790a:f448:edb2:a1cc:573:0:2', 'end': '36a0:790a:f448:edb2:a1cc:573:ffff:fffe'}], 'gateway_ip': '36a0:790a:f448:edb2:a1cc:573:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36a0:790a:f448:edb2:a1cc:573:0:2', 'tags': [], 'project_id': '480ef968a0a448e8bc27dabdeae48cdc'}} 2025-10-22 10:08:12,558 - INFO - Created VN ctest-vn4-40740967 2025-10-22 10:08:12,611 - DEBUG - VN ctest-vn4-40740967 UUID is 2bb78947-ce75-41d9-864b-6d92428bcc81 2025-10-22 10:08:12,800 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2bb78947-ce75-41d9-864b-6d92428bcc81', 'name': 'ctest-vn4-40740967', 'tenant_id': '480ef968a0a448e8bc27dabdeae48cdc', 'project_id': '480ef968a0a448e8bc27dabdeae48cdc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c453b6db-6f6e-4b1a-ba43-f00e715b0e24', '06757e80-d3db-40b7-9093-0136c8efd6ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75221055', 'ctest-vn4-40740967'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75221055', 'ctest-policy1-80319508']], 'subnet_ipam': [{'subnet_cidr': '203.151.92.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36a0:790a:f448:edb2:a1cc:573::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 10:08:12,967 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-22 10:08:13,258 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-22 10:08:13,285 - DEBUG - Requesting: http://10.0.0.19:8082/domain/1b5da64f-5300-498c-ab2b-1fb019264bc7 2025-10-22 10:08:13,298 - DEBUG - Requesting: http://10.0.0.19:8082/project/480ef968-a0a4-48e8-bc27-dabdeae48cdc 2025-10-22 10:08:13,376 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2bb78947-ce75-41d9-864b-6d92428bcc81 2025-10-22 10:08:13,386 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2bb78947-ce75-41d9-864b-6d92428bcc81 2025-10-22 10:08:13,395 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/c259cfc8-2386-4ab4-922d-050e605350f7 2025-10-22 10:08:13,402 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/c259cfc8-2386-4ab4-922d-050e605350f7 2025-10-22 10:08:13,408 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/411399f6-9a6c-47ad-9aaa-0011ad38f98d 2025-10-22 10:08:13,414 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 10:08:13,414 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2bb78947-ce75-41d9-864b-6d92428bcc81 2025-10-22 10:08:13,423 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/c259cfc8-2386-4ab4-922d-050e605350f7 2025-10-22 10:08:13,438 - INFO - Verified VN network id 11 for VN 2bb78947-ce75-41d9-864b-6d92428bcc81 2025-10-22 10:08:13,438 - INFO - Verifications in API Server for VN ctest-vn4-40740967 passed 2025-10-22 10:08:13,438 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2bb78947-ce75-41d9-864b-6d92428bcc81 2025-10-22 10:08:13,448 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/c259cfc8-2386-4ab4-922d-050e605350f7 2025-10-22 10:08:13,455 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/c259cfc8-2386-4ab4-922d-050e605350f7 2025-10-22 10:08:13,462 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/411399f6-9a6c-47ad-9aaa-0011ad38f98d 2025-10-22 10:08:13,474 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75221055:ctest-vn4-40740967', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75221055', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3150137405868425689', 'uuid-lslong': '9676948699284753537'}, 'enable': 'true', 'created': '2025-10-22T10:08:12', 'last-modified': '2025-10-22T10:08:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.699258'} 2025-10-22 10:08:13,480 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 10:08:13,480 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-40740967 passed 2025-10-22 10:08:13,480 - DEBUG - ====Verifying policy data for ctest-vn4-40740967 in API_Server ====== 2025-10-22 10:08:13,480 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-22 10:08:13,486 - DEBUG - Requesting: http://10.0.0.19:8082/domain/1b5da64f-5300-498c-ab2b-1fb019264bc7 2025-10-22 10:08:13,497 - DEBUG - Requesting: http://10.0.0.19:8082/project/480ef968-a0a4-48e8-bc27-dabdeae48cdc 2025-10-22 10:08:13,570 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/2bb78947-ce75-41d9-864b-6d92428bcc81 2025-10-22 10:08:13,579 - DEBUG - ==>Verifying data for policy with id: d895aee4-07a5-4234-9945-1d7961123794, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75221055', 'ctest-policy1-80319508'] 2025-10-22 10:08:13,579 - INFO - VN ctest-vn4-40740967 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 10:08:13,579 - DEBUG - Verifying the vn in opserver 2025-10-22 10:08:13,579 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75221055:ctest-vn4-40740967 virtual network link through opserver 10.0.0.19 2025-10-22 10:08:13,579 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-22 10:08:13,873 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-22 10:08:13,926 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75221055:ctest-vn4-40740967', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75221055:ctest-vn4-40740967?flat'} 2025-10-22 10:08:13,927 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75221055:ctest-vn4-40740967 is found in opserver 2025-10-22 10:08:13,936 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 10:08:13,941 - DEBUG - VRF ids for VN ctest-vn4-40740967: {} 2025-10-22 10:08:13,941 - DEBUG - ====Verifying data for ctest-policy1-80319508 in API_Server ====== 2025-10-22 10:08:13,941 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-22 10:08:13,946 - DEBUG - Requesting: http://10.0.0.19:8082/domain/1b5da64f-5300-498c-ab2b-1fb019264bc7 2025-10-22 10:08:13,958 - DEBUG - Requesting: http://10.0.0.19:8082/project/480ef968-a0a4-48e8-bc27-dabdeae48cdc 2025-10-22 10:08:14,032 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/d895aee4-07a5-4234-9945-1d7961123794 2025-10-22 10:08:14,043 - INFO - Verified policy ctest-policy1-80319508 in API Server, Result: True 2025-10-22 10:08:14,043 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 10:08:14,052 - INFO - Deleting VN ctest-vn4-40740967 2025-10-22 10:08:14,184 - DEBUG - Response for deleting network () 2025-10-22 10:08:14,184 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/c259cfc8-2386-4ab4-922d-050e605350f7 2025-10-22 10:08:14,190 - DEBUG - Response Code: 404 2025-10-22 10:08:14,190 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-10-22 10:08:14,196 - DEBUG - Requesting: http://10.0.0.19:8082/domain/1b5da64f-5300-498c-ab2b-1fb019264bc7 2025-10-22 10:08:14,253 - DEBUG - Requesting: http://10.0.0.19:8082/project/480ef968-a0a4-48e8-bc27-dabdeae48cdc 2025-10-22 10:08:14,328 - INFO - Validated that VN ctest-vn4-40740967 is not found in API Server 2025-10-22 10:08:14,339 - DEBUG - VN ctest-vn4-40740967 is not present in Agent 10.0.0.19 2025-10-22 10:08:14,339 - INFO - Validated that VN ctest-vn4-40740967 is not in any agent 2025-10-22 10:08:14,353 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-40740967 info 2025-10-22 10:08:14,385 - INFO - Deleted policy ctest-policy1-80319508 2025-10-22 10:08:14,551 - DEBUG - policy ctest-policy1-80319508 is not found in API Server 2025-10-22 10:08:14,808 - DEBUG - No XMPP flaps were noticed during the test