2025-08-12 18:40:36,236 - INFO - Domain Default found not creating 2025-08-12 18:40:36,353 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-76167077 not found, creating it 2025-08-12 18:40:36,840 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-76167077, ID : ae9a4bec-a380-4298-a32f-cb2e731f3296 2025-08-12 18:40:38,179 - INFO - ================================================================================ 2025-08-12 18:40:38,180 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 18:40:38,434 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-08-12 18:40:38,434 - INFO - Initial checks done. Running the testcase now 2025-08-12 18:40:38,434 - INFO - 2025-08-12 18:40:38,434 - INFO - ================================================================================ 2025-08-12 18:40:38,434 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 18:40:38,434 - 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-08-12 18:40:38,725 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-08-12 18:40:38,726 - INFO - Initial checks done. Running the testcase now 2025-08-12 18:40:38,726 - INFO - 2025-08-12 18:40:39,072 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76167077:ctest-vn4-01460810, 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-76167077:ctest-vn4-01460810, 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-76167077:ctest-vn4-01460810, 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-76167077:ctest-vn4-01460810, 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-08-12 18:40:39,606 - DEBUG - Response for create_network : {'network': {'id': '160f3c22-be19-440c-aee4-f6995f793690', 'name': 'ctest-vn4-01460810', 'tenant_id': 'ae9a4beca3804298a32fcb2e731f3296', 'project_id': 'ae9a4beca3804298a32fcb2e731f3296', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76167077', 'ctest-vn4-01460810'], 'port_security_enabled': True, 'description': ''}} 2025-08-12 18:40:39,824 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9a426e5-fe34-40e0-93d9-b937b1114b99', 'name': '', 'tenant_id': 'ae9a4beca3804298a32fcb2e731f3296', 'network_id': '160f3c22-be19-440c-aee4-f6995f793690', 'ip_version': 4, 'cidr': '25.193.77.0/26', 'allocation_pools': [{'start': '25.193.77.2', 'end': '25.193.77.62'}], 'gateway_ip': '25.193.77.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.193.77.2', 'tags': [], 'project_id': 'ae9a4beca3804298a32fcb2e731f3296'}} 2025-08-12 18:40:39,981 - DEBUG - Response for create_subnet : {'subnet': {'id': '740c4319-71c4-4d08-9242-20f6c349ccd6', 'name': '', 'tenant_id': 'ae9a4beca3804298a32fcb2e731f3296', 'network_id': '160f3c22-be19-440c-aee4-f6995f793690', 'ip_version': 6, 'cidr': '3ae7:e8a5:3cbe:5d23:7fc2:c26d::/96', 'allocation_pools': [{'start': '3ae7:e8a5:3cbe:5d23:7fc2:c26d:0:2', 'end': '3ae7:e8a5:3cbe:5d23:7fc2:c26d:ffff:fffe'}], 'gateway_ip': '3ae7:e8a5:3cbe:5d23:7fc2:c26d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ae7:e8a5:3cbe:5d23:7fc2:c26d:0:2', 'tags': [], 'project_id': 'ae9a4beca3804298a32fcb2e731f3296'}} 2025-08-12 18:40:40,000 - INFO - Created VN ctest-vn4-01460810 2025-08-12 18:40:40,052 - DEBUG - VN ctest-vn4-01460810 UUID is 160f3c22-be19-440c-aee4-f6995f793690 2025-08-12 18:40:40,275 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '160f3c22-be19-440c-aee4-f6995f793690', 'name': 'ctest-vn4-01460810', 'tenant_id': 'ae9a4beca3804298a32fcb2e731f3296', 'project_id': 'ae9a4beca3804298a32fcb2e731f3296', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f9a426e5-fe34-40e0-93d9-b937b1114b99', '740c4319-71c4-4d08-9242-20f6c349ccd6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76167077', 'ctest-vn4-01460810'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76167077', 'ctest-policy1-24119859']], 'subnet_ipam': [{'subnet_cidr': '25.193.77.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ae7:e8a5:3cbe:5d23:7fc2:c26d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-12 18:40:40,440 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-12 18:40:40,734 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-12 18:40:40,762 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6b3317a1-9cbf-465f-a12d-fa5c37f51652 2025-08-12 18:40:40,776 - DEBUG - Requesting: http://10.0.0.22:8082/project/ae9a4bec-a380-4298-a32f-cb2e731f3296 2025-08-12 18:40:40,851 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/160f3c22-be19-440c-aee4-f6995f793690 2025-08-12 18:40:40,863 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/160f3c22-be19-440c-aee4-f6995f793690 2025-08-12 18:40:40,874 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/45601aac-d979-4e69-86b6-eb5f25cdddea 2025-08-12 18:40:40,880 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/45601aac-d979-4e69-86b6-eb5f25cdddea 2025-08-12 18:40:40,886 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/913066fa-79cc-49bc-a160-a9c6875b4295 2025-08-12 18:40:40,892 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 18:40:40,892 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/160f3c22-be19-440c-aee4-f6995f793690 2025-08-12 18:40:40,901 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/45601aac-d979-4e69-86b6-eb5f25cdddea 2025-08-12 18:40:40,913 - INFO - Verified VN network id 11 for VN 160f3c22-be19-440c-aee4-f6995f793690 2025-08-12 18:40:40,913 - INFO - Verifications in API Server for VN ctest-vn4-01460810 passed 2025-08-12 18:40:40,913 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/160f3c22-be19-440c-aee4-f6995f793690 2025-08-12 18:40:40,922 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/45601aac-d979-4e69-86b6-eb5f25cdddea 2025-08-12 18:40:40,929 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/45601aac-d979-4e69-86b6-eb5f25cdddea 2025-08-12 18:40:40,935 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/913066fa-79cc-49bc-a160-a9c6875b4295 2025-08-12 18:40:40,946 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76167077:ctest-vn4-01460810', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-76167077', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1589555313400955916', 'uuid-lslong': '12602468795881698960'}, 'enable': 'true', 'created': '2025-08-12T18:40:39', 'last-modified': '2025-08-12T18:40:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.703293'} 2025-08-12 18:40:40,953 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 18:40:40,953 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01460810 passed 2025-08-12 18:40:40,953 - DEBUG - ====Verifying policy data for ctest-vn4-01460810 in API_Server ====== 2025-08-12 18:40:40,953 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-12 18:40:40,958 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6b3317a1-9cbf-465f-a12d-fa5c37f51652 2025-08-12 18:40:40,968 - DEBUG - Requesting: http://10.0.0.22:8082/project/ae9a4bec-a380-4298-a32f-cb2e731f3296 2025-08-12 18:40:41,041 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/160f3c22-be19-440c-aee4-f6995f793690 2025-08-12 18:40:41,052 - DEBUG - ==>Verifying data for policy with id: 45b1c468-e191-4dc4-aa07-e51c594a4b7a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76167077', 'ctest-policy1-24119859'] 2025-08-12 18:40:41,052 - INFO - VN ctest-vn4-01460810 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-12 18:40:41,052 - DEBUG - Verifying the vn in opserver 2025-08-12 18:40:41,052 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76167077:ctest-vn4-01460810 virtual network link through opserver 10.0.0.22 2025-08-12 18:40:41,053 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-08-12 18:40:41,361 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-08-12 18:40:41,439 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76167077:ctest-vn4-01460810', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76167077:ctest-vn4-01460810?flat'} 2025-08-12 18:40:41,439 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76167077:ctest-vn4-01460810 is found in opserver 2025-08-12 18:40:41,451 - DEBUG - Do not have enough data to verify VN in agent 2025-08-12 18:40:41,457 - DEBUG - VRF ids for VN ctest-vn4-01460810: {} 2025-08-12 18:40:41,457 - DEBUG - ====Verifying data for ctest-policy1-24119859 in API_Server ====== 2025-08-12 18:40:41,457 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-12 18:40:41,465 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6b3317a1-9cbf-465f-a12d-fa5c37f51652 2025-08-12 18:40:41,478 - DEBUG - Requesting: http://10.0.0.22:8082/project/ae9a4bec-a380-4298-a32f-cb2e731f3296 2025-08-12 18:40:41,552 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/45b1c468-e191-4dc4-aa07-e51c594a4b7a 2025-08-12 18:40:41,565 - INFO - Verified policy ctest-policy1-24119859 in API Server, Result: True 2025-08-12 18:40:41,565 - INFO - Done with setup and verification, moving onto test .. 2025-08-12 18:40:41,576 - INFO - Deleting VN ctest-vn4-01460810 2025-08-12 18:40:41,701 - DEBUG - Response for deleting network () 2025-08-12 18:40:41,701 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/45601aac-d979-4e69-86b6-eb5f25cdddea 2025-08-12 18:40:41,707 - DEBUG - Response Code: 404 2025-08-12 18:40:41,707 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-08-12 18:40:41,712 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6b3317a1-9cbf-465f-a12d-fa5c37f51652 2025-08-12 18:40:41,769 - DEBUG - Requesting: http://10.0.0.22:8082/project/ae9a4bec-a380-4298-a32f-cb2e731f3296 2025-08-12 18:40:41,843 - INFO - Validated that VN ctest-vn4-01460810 is not found in API Server 2025-08-12 18:40:41,855 - DEBUG - VN ctest-vn4-01460810 is not present in Agent 10.0.0.22 2025-08-12 18:40:41,855 - INFO - Validated that VN ctest-vn4-01460810 is not in any agent 2025-08-12 18:40:41,870 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01460810 info 2025-08-12 18:40:41,894 - INFO - Deleted policy ctest-policy1-24119859 2025-08-12 18:40:42,060 - DEBUG - policy ctest-policy1-24119859 is not found in API Server 2025-08-12 18:40:42,318 - DEBUG - No XMPP flaps were noticed during the test