2025-10-27 20:07:46,607 - INFO - Domain Default found not creating 2025-10-27 20:07:46,775 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-15841662 not found, creating it 2025-10-27 20:07:47,227 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-15841662, ID : 4d2ef62d-12dd-450a-b3e8-e597c42607a1 2025-10-27 20:07:48,638 - INFO - ================================================================================ 2025-10-27 20:07:48,638 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 20:07:48,890 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2025-10-27 20:07:48,890 - INFO - Initial checks done. Running the testcase now 2025-10-27 20:07:48,890 - INFO - 2025-10-27 20:07:48,890 - INFO - ================================================================================ 2025-10-27 20:07:48,891 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 20:07:48,891 - 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-27 20:07:49,182 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2025-10-27 20:07:49,182 - INFO - Initial checks done. Running the testcase now 2025-10-27 20:07:49,182 - INFO - 2025-10-27 20:07:49,526 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15841662:ctest-vn4-12295461, 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-15841662:ctest-vn4-12295461, 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-15841662:ctest-vn4-12295461, 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-15841662:ctest-vn4-12295461, 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-27 20:07:50,014 - DEBUG - Response for create_network : {'network': {'id': '54dfc7cb-1c50-40a1-8d16-6cfb7c6e02eb', 'name': 'ctest-vn4-12295461', 'tenant_id': '4d2ef62d12dd450ab3e8e597c42607a1', 'project_id': '4d2ef62d12dd450ab3e8e597c42607a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15841662', 'ctest-vn4-12295461'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 20:07:50,225 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ba12dbca-fdb5-409f-801f-83227879c278', 'name': '', 'tenant_id': '4d2ef62d12dd450ab3e8e597c42607a1', 'network_id': '54dfc7cb-1c50-40a1-8d16-6cfb7c6e02eb', 'ip_version': 4, 'cidr': '62.111.44.128/26', 'allocation_pools': [{'start': '62.111.44.130', 'end': '62.111.44.190'}], 'gateway_ip': '62.111.44.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.111.44.130', 'tags': [], 'project_id': '4d2ef62d12dd450ab3e8e597c42607a1'}} 2025-10-27 20:07:50,418 - DEBUG - Response for create_subnet : {'subnet': {'id': '32d8fb09-3d66-45a9-922b-aecf0ad3ea75', 'name': '', 'tenant_id': '4d2ef62d12dd450ab3e8e597c42607a1', 'network_id': '54dfc7cb-1c50-40a1-8d16-6cfb7c6e02eb', 'ip_version': 6, 'cidr': '2e7a:63a5:42b1:28cf:c2cf:e570::/96', 'allocation_pools': [{'start': '2e7a:63a5:42b1:28cf:c2cf:e570:0:2', 'end': '2e7a:63a5:42b1:28cf:c2cf:e570:ffff:fffe'}], 'gateway_ip': '2e7a:63a5:42b1:28cf:c2cf:e570:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e7a:63a5:42b1:28cf:c2cf:e570:0:2', 'tags': [], 'project_id': '4d2ef62d12dd450ab3e8e597c42607a1'}} 2025-10-27 20:07:50,439 - INFO - Created VN ctest-vn4-12295461 2025-10-27 20:07:50,493 - DEBUG - VN ctest-vn4-12295461 UUID is 54dfc7cb-1c50-40a1-8d16-6cfb7c6e02eb 2025-10-27 20:07:50,700 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '54dfc7cb-1c50-40a1-8d16-6cfb7c6e02eb', 'name': 'ctest-vn4-12295461', 'tenant_id': '4d2ef62d12dd450ab3e8e597c42607a1', 'project_id': '4d2ef62d12dd450ab3e8e597c42607a1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ba12dbca-fdb5-409f-801f-83227879c278', '32d8fb09-3d66-45a9-922b-aecf0ad3ea75'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15841662', 'ctest-vn4-12295461'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15841662', 'ctest-policy1-29657424']], 'subnet_ipam': [{'subnet_cidr': '62.111.44.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e7a:63a5:42b1:28cf:c2cf:e570::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-27 20:07:50,853 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 20:07:51,145 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 20:07:51,173 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2dba53f6-e1f5-4248-97f9-9a74a3d4d82f 2025-10-27 20:07:51,184 - DEBUG - Requesting: http://10.0.0.242:8082/project/4d2ef62d-12dd-450a-b3e8-e597c42607a1 2025-10-27 20:07:51,254 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/54dfc7cb-1c50-40a1-8d16-6cfb7c6e02eb 2025-10-27 20:07:51,265 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/54dfc7cb-1c50-40a1-8d16-6cfb7c6e02eb 2025-10-27 20:07:51,273 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1789fd34-76f5-481a-8380-3c15c3a6953c 2025-10-27 20:07:51,279 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1789fd34-76f5-481a-8380-3c15c3a6953c 2025-10-27 20:07:51,286 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/a2880bc0-09d5-4a21-a3d9-108625a5c31e 2025-10-27 20:07:51,292 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 20:07:51,292 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/54dfc7cb-1c50-40a1-8d16-6cfb7c6e02eb 2025-10-27 20:07:51,301 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1789fd34-76f5-481a-8380-3c15c3a6953c 2025-10-27 20:07:51,314 - INFO - Verified VN network id 11 for VN 54dfc7cb-1c50-40a1-8d16-6cfb7c6e02eb 2025-10-27 20:07:51,314 - INFO - Verifications in API Server for VN ctest-vn4-12295461 passed 2025-10-27 20:07:51,314 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/54dfc7cb-1c50-40a1-8d16-6cfb7c6e02eb 2025-10-27 20:07:51,323 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1789fd34-76f5-481a-8380-3c15c3a6953c 2025-10-27 20:07:51,330 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1789fd34-76f5-481a-8380-3c15c3a6953c 2025-10-27 20:07:51,336 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/a2880bc0-09d5-4a21-a3d9-108625a5c31e 2025-10-27 20:07:51,348 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15841662:ctest-vn4-12295461', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15841662', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6115826494159732897', 'uuid-lslong': '10166433036215649003'}, 'enable': 'true', 'created': '2025-10-27T20:07:49', 'last-modified': '2025-10-27T20:07:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.676069'} 2025-10-27 20:07:51,356 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 20:07:51,356 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12295461 passed 2025-10-27 20:07:51,356 - DEBUG - ====Verifying policy data for ctest-vn4-12295461 in API_Server ====== 2025-10-27 20:07:51,356 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 20:07:51,362 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2dba53f6-e1f5-4248-97f9-9a74a3d4d82f 2025-10-27 20:07:51,374 - DEBUG - Requesting: http://10.0.0.242:8082/project/4d2ef62d-12dd-450a-b3e8-e597c42607a1 2025-10-27 20:07:51,450 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/54dfc7cb-1c50-40a1-8d16-6cfb7c6e02eb 2025-10-27 20:07:51,469 - DEBUG - ==>Verifying data for policy with id: dd734bab-2a0d-47bc-95ff-a6e510d817fe, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15841662', 'ctest-policy1-29657424'] 2025-10-27 20:07:51,469 - INFO - VN ctest-vn4-12295461 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-27 20:07:51,469 - DEBUG - Verifying the vn in opserver 2025-10-27 20:07:51,469 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15841662:ctest-vn4-12295461 virtual network link through opserver 10.0.0.242 2025-10-27 20:07:51,469 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-27 20:07:51,760 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-27 20:07:51,816 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15841662:ctest-vn4-12295461', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15841662:ctest-vn4-12295461?flat'} 2025-10-27 20:07:51,816 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15841662:ctest-vn4-12295461 is found in opserver 2025-10-27 20:07:51,826 - DEBUG - Do not have enough data to verify VN in agent 2025-10-27 20:07:51,831 - DEBUG - VRF ids for VN ctest-vn4-12295461: {} 2025-10-27 20:07:51,831 - DEBUG - ====Verifying data for ctest-policy1-29657424 in API_Server ====== 2025-10-27 20:07:51,832 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 20:07:51,837 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2dba53f6-e1f5-4248-97f9-9a74a3d4d82f 2025-10-27 20:07:51,849 - DEBUG - Requesting: http://10.0.0.242:8082/project/4d2ef62d-12dd-450a-b3e8-e597c42607a1 2025-10-27 20:07:51,923 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/dd734bab-2a0d-47bc-95ff-a6e510d817fe 2025-10-27 20:07:51,933 - INFO - Verified policy ctest-policy1-29657424 in API Server, Result: True 2025-10-27 20:07:51,933 - INFO - Done with setup and verification, moving onto test .. 2025-10-27 20:07:51,941 - INFO - Deleting VN ctest-vn4-12295461 2025-10-27 20:07:52,052 - DEBUG - Response for deleting network () 2025-10-27 20:07:52,052 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/1789fd34-76f5-481a-8380-3c15c3a6953c 2025-10-27 20:07:52,056 - DEBUG - Response Code: 404 2025-10-27 20:07:52,056 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 20:07:52,061 - DEBUG - Requesting: http://10.0.0.242:8082/domain/2dba53f6-e1f5-4248-97f9-9a74a3d4d82f 2025-10-27 20:07:52,114 - DEBUG - Requesting: http://10.0.0.242:8082/project/4d2ef62d-12dd-450a-b3e8-e597c42607a1 2025-10-27 20:07:52,185 - INFO - Validated that VN ctest-vn4-12295461 is not found in API Server 2025-10-27 20:07:52,196 - DEBUG - VN ctest-vn4-12295461 is not present in Agent 10.0.0.242 2025-10-27 20:07:52,196 - INFO - Validated that VN ctest-vn4-12295461 is not in any agent 2025-10-27 20:07:52,209 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12295461 info 2025-10-27 20:07:52,234 - INFO - Deleted policy ctest-policy1-29657424 2025-10-27 20:07:52,405 - DEBUG - policy ctest-policy1-29657424 is not found in API Server 2025-10-27 20:07:52,658 - DEBUG - No XMPP flaps were noticed during the test
2025-10-27 20:07:52,658 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-27 20:07:52,658 - INFO - -------------------------------------------------------------------------------- 2025-10-27 20:07:52,946 - DEBUG - No XMPP flaps were noticed during the test
2025-10-27 20:07:52,946 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-27 20:07:52,947 - INFO - -------------------------------------------------------------------------------- 2025-10-27 20:07:53,614 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-15841662, ID : 4d2ef62d-12dd-450a-b3e8-e597c42607a1