2025-08-11 15:44:02,623 - INFO - Domain Default found not creating 2025-08-11 15:44:02,743 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03499912 not found, creating it 2025-08-11 15:44:03,258 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03499912, ID : a18ab502-9f0b-448d-8ed3-3715f38b0a1c 2025-08-11 15:44:04,562 - INFO - ================================================================================ 2025-08-11 15:44:04,562 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 15:44:04,814 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0'}} with 2025-08-11 15:44:04,814 - INFO - Initial checks done. Running the testcase now 2025-08-11 15:44:04,815 - INFO - 2025-08-11 15:44:04,815 - INFO - ================================================================================ 2025-08-11 15:44:04,815 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 15:44:04,815 - 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-11 15:44:05,107 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0'}} with 2025-08-11 15:44:05,107 - INFO - Initial checks done. Running the testcase now 2025-08-11 15:44:05,107 - INFO - 2025-08-11 15:44:05,441 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03499912:ctest-vn4-76364336, 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-03499912:ctest-vn4-76364336, 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-03499912:ctest-vn4-76364336, 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-03499912:ctest-vn4-76364336, 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-11 15:44:05,934 - DEBUG - Response for create_network : {'network': {'id': 'a1536f68-3879-46b3-ad37-191fe9f4e36b', 'name': 'ctest-vn4-76364336', 'tenant_id': 'a18ab5029f0b448d8ed33715f38b0a1c', 'project_id': 'a18ab5029f0b448d8ed33715f38b0a1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03499912', 'ctest-vn4-76364336'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 15:44:06,111 - DEBUG - Response for create_subnet : {'subnet': {'id': '9612b1dc-2f26-4d39-9e9d-8ab0aa58a5f2', 'name': '', 'tenant_id': 'a18ab5029f0b448d8ed33715f38b0a1c', 'network_id': 'a1536f68-3879-46b3-ad37-191fe9f4e36b', 'ip_version': 4, 'cidr': '212.198.137.0/26', 'allocation_pools': [{'start': '212.198.137.2', 'end': '212.198.137.62'}], 'gateway_ip': '212.198.137.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.198.137.2', 'tags': [], 'project_id': 'a18ab5029f0b448d8ed33715f38b0a1c'}} 2025-08-11 15:44:06,277 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f9ec450a-3d05-49f5-821f-3de088fc71b5', 'name': '', 'tenant_id': 'a18ab5029f0b448d8ed33715f38b0a1c', 'network_id': 'a1536f68-3879-46b3-ad37-191fe9f4e36b', 'ip_version': 6, 'cidr': '3a30:cf64:d4b6:226b:37bf:c45d::/96', 'allocation_pools': [{'start': '3a30:cf64:d4b6:226b:37bf:c45d:0:2', 'end': '3a30:cf64:d4b6:226b:37bf:c45d:ffff:fffe'}], 'gateway_ip': '3a30:cf64:d4b6:226b:37bf:c45d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a30:cf64:d4b6:226b:37bf:c45d:0:2', 'tags': [], 'project_id': 'a18ab5029f0b448d8ed33715f38b0a1c'}} 2025-08-11 15:44:06,294 - INFO - Created VN ctest-vn4-76364336 2025-08-11 15:44:06,346 - DEBUG - VN ctest-vn4-76364336 UUID is a1536f68-3879-46b3-ad37-191fe9f4e36b 2025-08-11 15:44:06,539 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a1536f68-3879-46b3-ad37-191fe9f4e36b', 'name': 'ctest-vn4-76364336', 'tenant_id': 'a18ab5029f0b448d8ed33715f38b0a1c', 'project_id': 'a18ab5029f0b448d8ed33715f38b0a1c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9612b1dc-2f26-4d39-9e9d-8ab0aa58a5f2', 'f9ec450a-3d05-49f5-821f-3de088fc71b5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03499912', 'ctest-vn4-76364336'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03499912', 'ctest-policy1-24333435']], 'subnet_ipam': [{'subnet_cidr': '212.198.137.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a30:cf64:d4b6:226b:37bf:c45d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 15:44:06,702 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-08-11 15:44:06,988 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-08-11 15:44:07,012 - DEBUG - Requesting: http://10.0.0.41:8082/domain/bdae8b03-1283-41c9-83d2-6ec0aab82783 2025-08-11 15:44:07,025 - DEBUG - Requesting: http://10.0.0.41:8082/project/a18ab502-9f0b-448d-8ed3-3715f38b0a1c 2025-08-11 15:44:07,105 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1536f68-3879-46b3-ad37-191fe9f4e36b 2025-08-11 15:44:07,117 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1536f68-3879-46b3-ad37-191fe9f4e36b 2025-08-11 15:44:07,128 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/163a3cd2-b7ad-4faa-a6fb-65584fa983d6 2025-08-11 15:44:07,136 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/163a3cd2-b7ad-4faa-a6fb-65584fa983d6 2025-08-11 15:44:07,142 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5b74c29f-0a19-471d-9ae1-238087c6341b 2025-08-11 15:44:07,148 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 15:44:07,148 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1536f68-3879-46b3-ad37-191fe9f4e36b 2025-08-11 15:44:07,157 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/163a3cd2-b7ad-4faa-a6fb-65584fa983d6 2025-08-11 15:44:07,172 - INFO - Verified VN network id 11 for VN a1536f68-3879-46b3-ad37-191fe9f4e36b 2025-08-11 15:44:07,172 - INFO - Verifications in API Server for VN ctest-vn4-76364336 passed 2025-08-11 15:44:07,172 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1536f68-3879-46b3-ad37-191fe9f4e36b 2025-08-11 15:44:07,183 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/163a3cd2-b7ad-4faa-a6fb-65584fa983d6 2025-08-11 15:44:07,189 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/163a3cd2-b7ad-4faa-a6fb-65584fa983d6 2025-08-11 15:44:07,196 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/5b74c29f-0a19-471d-9ae1-238087c6341b 2025-08-11 15:44:07,207 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03499912:ctest-vn4-76364336', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03499912', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11624757556588136115', 'uuid-lslong': '12481472517140439915'}, 'enable': 'true', 'created': '2025-08-11T15:44:05', 'last-modified': '2025-08-11T15:44:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694537'} 2025-08-11 15:44:07,213 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 15:44:07,213 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76364336 passed 2025-08-11 15:44:07,213 - DEBUG - ====Verifying policy data for ctest-vn4-76364336 in API_Server ====== 2025-08-11 15:44:07,213 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-08-11 15:44:07,218 - DEBUG - Requesting: http://10.0.0.41:8082/domain/bdae8b03-1283-41c9-83d2-6ec0aab82783 2025-08-11 15:44:07,228 - DEBUG - Requesting: http://10.0.0.41:8082/project/a18ab502-9f0b-448d-8ed3-3715f38b0a1c 2025-08-11 15:44:07,298 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/a1536f68-3879-46b3-ad37-191fe9f4e36b 2025-08-11 15:44:07,308 - DEBUG - ==>Verifying data for policy with id: 58b8caa4-0ad8-478c-be14-b0281aab3af3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03499912', 'ctest-policy1-24333435'] 2025-08-11 15:44:07,308 - INFO - VN ctest-vn4-76364336 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 15:44:07,308 - DEBUG - Verifying the vn in opserver 2025-08-11 15:44:07,308 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03499912:ctest-vn4-76364336 virtual network link through opserver 10.0.0.41 2025-08-11 15:44:07,308 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-08-11 15:44:07,595 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-08-11 15:44:07,641 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03499912:ctest-vn4-76364336', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03499912:ctest-vn4-76364336?flat'} 2025-08-11 15:44:07,641 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03499912:ctest-vn4-76364336 is found in opserver 2025-08-11 15:44:07,651 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 15:44:07,656 - DEBUG - VRF ids for VN ctest-vn4-76364336: {} 2025-08-11 15:44:07,657 - DEBUG - ====Verifying data for ctest-policy1-24333435 in API_Server ====== 2025-08-11 15:44:07,657 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-08-11 15:44:07,662 - DEBUG - Requesting: http://10.0.0.41:8082/domain/bdae8b03-1283-41c9-83d2-6ec0aab82783 2025-08-11 15:44:07,671 - DEBUG - Requesting: http://10.0.0.41:8082/project/a18ab502-9f0b-448d-8ed3-3715f38b0a1c 2025-08-11 15:44:07,741 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/58b8caa4-0ad8-478c-be14-b0281aab3af3 2025-08-11 15:44:07,750 - INFO - Verified policy ctest-policy1-24333435 in API Server, Result: True 2025-08-11 15:44:07,750 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 15:44:07,756 - INFO - Deleting VN ctest-vn4-76364336 2025-08-11 15:44:07,856 - DEBUG - Response for deleting network () 2025-08-11 15:44:07,856 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/163a3cd2-b7ad-4faa-a6fb-65584fa983d6 2025-08-11 15:44:07,861 - DEBUG - Response Code: 404 2025-08-11 15:44:07,861 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-08-11 15:44:07,865 - DEBUG - Requesting: http://10.0.0.41:8082/domain/bdae8b03-1283-41c9-83d2-6ec0aab82783 2025-08-11 15:44:07,918 - DEBUG - Requesting: http://10.0.0.41:8082/project/a18ab502-9f0b-448d-8ed3-3715f38b0a1c 2025-08-11 15:44:07,991 - INFO - Validated that VN ctest-vn4-76364336 is not found in API Server 2025-08-11 15:44:08,001 - DEBUG - VN ctest-vn4-76364336 is not present in Agent 10.0.0.41 2025-08-11 15:44:08,001 - INFO - Validated that VN ctest-vn4-76364336 is not in any agent 2025-08-11 15:44:08,014 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76364336 info 2025-08-11 15:44:08,035 - INFO - Deleted policy ctest-policy1-24333435 2025-08-11 15:44:08,198 - DEBUG - policy ctest-policy1-24333435 is not found in API Server 2025-08-11 15:44:08,446 - DEBUG - No XMPP flaps were noticed during the test