2025-11-19 17:36:01,633 - INFO - Domain Default found not creating 2025-11-19 17:36:01,788 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-45544582 not found, creating it 2025-11-19 17:36:02,273 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-45544582, ID : 7258d1ab-96ee-48f3-928f-4dd4cb7c1bdc 2025-11-19 17:36:03,644 - INFO - ================================================================================ 2025-11-19 17:36:03,644 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-19 17:36:03,898 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.209': '0'}} with 2025-11-19 17:36:03,898 - INFO - Initial checks done. Running the testcase now 2025-11-19 17:36:03,898 - INFO - 2025-11-19 17:36:03,898 - INFO - ================================================================================ 2025-11-19 17:36:03,898 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-19 17:36:03,898 - 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-11-19 17:36:04,185 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.209': '0'}} with 2025-11-19 17:36:04,186 - INFO - Initial checks done. Running the testcase now 2025-11-19 17:36:04,186 - INFO - 2025-11-19 17:36:04,528 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45544582:ctest-vn4-08231777, 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-45544582:ctest-vn4-08231777, 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-45544582:ctest-vn4-08231777, 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-45544582:ctest-vn4-08231777, 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-11-19 17:36:05,002 - DEBUG - Response for create_network : {'network': {'id': '0ea46194-d49d-4178-94ae-ba2ecb6cb48d', 'name': 'ctest-vn4-08231777', 'tenant_id': '7258d1ab96ee48f3928f4dd4cb7c1bdc', 'project_id': '7258d1ab96ee48f3928f4dd4cb7c1bdc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45544582', 'ctest-vn4-08231777'], 'port_security_enabled': True, 'description': ''}} 2025-11-19 17:36:05,189 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e53eaa4b-2c46-42ea-a7f0-a4db46728c60', 'name': '', 'tenant_id': '7258d1ab96ee48f3928f4dd4cb7c1bdc', 'network_id': '0ea46194-d49d-4178-94ae-ba2ecb6cb48d', 'ip_version': 4, 'cidr': '152.227.186.0/26', 'allocation_pools': [{'start': '152.227.186.2', 'end': '152.227.186.62'}], 'gateway_ip': '152.227.186.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '152.227.186.2', 'tags': [], 'project_id': '7258d1ab96ee48f3928f4dd4cb7c1bdc'}} 2025-11-19 17:36:05,373 - DEBUG - Response for create_subnet : {'subnet': {'id': '9dcb33b2-ba21-4afd-881d-95fc34426c1a', 'name': '', 'tenant_id': '7258d1ab96ee48f3928f4dd4cb7c1bdc', 'network_id': '0ea46194-d49d-4178-94ae-ba2ecb6cb48d', 'ip_version': 6, 'cidr': '2995:7811:40de:44c:b785:2c29::/96', 'allocation_pools': [{'start': '2995:7811:40de:44c:b785:2c29:0:2', 'end': '2995:7811:40de:44c:b785:2c29:ffff:fffe'}], 'gateway_ip': '2995:7811:40de:44c:b785:2c29:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2995:7811:40de:44c:b785:2c29:0:2', 'tags': [], 'project_id': '7258d1ab96ee48f3928f4dd4cb7c1bdc'}} 2025-11-19 17:36:05,392 - INFO - Created VN ctest-vn4-08231777 2025-11-19 17:36:05,445 - DEBUG - VN ctest-vn4-08231777 UUID is 0ea46194-d49d-4178-94ae-ba2ecb6cb48d 2025-11-19 17:36:05,627 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ea46194-d49d-4178-94ae-ba2ecb6cb48d', 'name': 'ctest-vn4-08231777', 'tenant_id': '7258d1ab96ee48f3928f4dd4cb7c1bdc', 'project_id': '7258d1ab96ee48f3928f4dd4cb7c1bdc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e53eaa4b-2c46-42ea-a7f0-a4db46728c60', '9dcb33b2-ba21-4afd-881d-95fc34426c1a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45544582', 'ctest-vn4-08231777'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45544582', 'ctest-policy1-26963621']], 'subnet_ipam': [{'subnet_cidr': '152.227.186.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2995:7811:40de:44c:b785:2c29::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-19 17:36:05,785 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-19 17:36:06,079 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-19 17:36:06,107 - DEBUG - Requesting: http://10.0.0.38:8082/domain/499d232e-1593-4552-bb71-1001619d96e1 2025-11-19 17:36:06,117 - DEBUG - Requesting: http://10.0.0.38:8082/project/7258d1ab-96ee-48f3-928f-4dd4cb7c1bdc 2025-11-19 17:36:06,184 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ea46194-d49d-4178-94ae-ba2ecb6cb48d 2025-11-19 17:36:06,194 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ea46194-d49d-4178-94ae-ba2ecb6cb48d 2025-11-19 17:36:06,202 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4e037df8-1a36-4f79-b523-fbd1ab415eb1 2025-11-19 17:36:06,207 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4e037df8-1a36-4f79-b523-fbd1ab415eb1 2025-11-19 17:36:06,213 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ee2d00f5-fc4f-4313-9b3e-4677adb600d1 2025-11-19 17:36:06,218 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-19 17:36:06,218 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ea46194-d49d-4178-94ae-ba2ecb6cb48d 2025-11-19 17:36:06,225 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4e037df8-1a36-4f79-b523-fbd1ab415eb1 2025-11-19 17:36:06,236 - INFO - Verified VN network id 12 for VN 0ea46194-d49d-4178-94ae-ba2ecb6cb48d 2025-11-19 17:36:06,236 - INFO - Verifications in API Server for VN ctest-vn4-08231777 passed 2025-11-19 17:36:06,236 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ea46194-d49d-4178-94ae-ba2ecb6cb48d 2025-11-19 17:36:06,243 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4e037df8-1a36-4f79-b523-fbd1ab415eb1 2025-11-19 17:36:06,248 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4e037df8-1a36-4f79-b523-fbd1ab415eb1 2025-11-19 17:36:06,254 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ee2d00f5-fc4f-4313-9b3e-4677adb600d1 2025-11-19 17:36:06,265 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45544582:ctest-vn4-08231777', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-45544582', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1055075504561668472', 'uuid-lslong': '10713705273705149581'}, 'enable': 'true', 'created': '2025-11-19T17:36:04', 'last-modified': '2025-11-19T17:36:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.660701'} 2025-11-19 17:36:06,271 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-19 17:36:06,271 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08231777 passed 2025-11-19 17:36:06,271 - DEBUG - ====Verifying policy data for ctest-vn4-08231777 in API_Server ====== 2025-11-19 17:36:06,271 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-19 17:36:06,276 - DEBUG - Requesting: http://10.0.0.38:8082/domain/499d232e-1593-4552-bb71-1001619d96e1 2025-11-19 17:36:06,285 - DEBUG - Requesting: http://10.0.0.38:8082/project/7258d1ab-96ee-48f3-928f-4dd4cb7c1bdc 2025-11-19 17:36:06,355 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/0ea46194-d49d-4178-94ae-ba2ecb6cb48d 2025-11-19 17:36:06,363 - DEBUG - ==>Verifying data for policy with id: 4a0c8590-0140-4c13-8af0-21a58b790640, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-45544582', 'ctest-policy1-26963621'] 2025-11-19 17:36:06,363 - INFO - VN ctest-vn4-08231777 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-19 17:36:06,363 - DEBUG - Verifying the vn in opserver 2025-11-19 17:36:06,363 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45544582:ctest-vn4-08231777 virtual network link through opserver 10.0.0.38 2025-11-19 17:36:06,363 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-19 17:36:06,669 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-19 17:36:06,724 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45544582:ctest-vn4-08231777', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45544582:ctest-vn4-08231777?flat'} 2025-11-19 17:36:06,724 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-45544582:ctest-vn4-08231777 is found in opserver 2025-11-19 17:36:06,734 - DEBUG - Do not have enough data to verify VN in agent 2025-11-19 17:36:06,738 - DEBUG - VRF ids for VN ctest-vn4-08231777: {} 2025-11-19 17:36:06,739 - DEBUG - ====Verifying data for ctest-policy1-26963621 in API_Server ====== 2025-11-19 17:36:06,739 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-19 17:36:06,743 - DEBUG - Requesting: http://10.0.0.38:8082/domain/499d232e-1593-4552-bb71-1001619d96e1 2025-11-19 17:36:06,753 - DEBUG - Requesting: http://10.0.0.38:8082/project/7258d1ab-96ee-48f3-928f-4dd4cb7c1bdc 2025-11-19 17:36:06,835 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/4a0c8590-0140-4c13-8af0-21a58b790640 2025-11-19 17:36:06,847 - INFO - Verified policy ctest-policy1-26963621 in API Server, Result: True 2025-11-19 17:36:06,847 - INFO - Done with setup and verification, moving onto test .. 2025-11-19 17:36:06,854 - INFO - Deleting VN ctest-vn4-08231777 2025-11-19 17:36:06,964 - DEBUG - Response for deleting network () 2025-11-19 17:36:06,964 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4e037df8-1a36-4f79-b523-fbd1ab415eb1 2025-11-19 17:36:06,968 - DEBUG - Response Code: 404 2025-11-19 17:36:06,968 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-19 17:36:06,972 - DEBUG - Requesting: http://10.0.0.38:8082/domain/499d232e-1593-4552-bb71-1001619d96e1 2025-11-19 17:36:07,025 - DEBUG - Requesting: http://10.0.0.38:8082/project/7258d1ab-96ee-48f3-928f-4dd4cb7c1bdc 2025-11-19 17:36:07,094 - INFO - Validated that VN ctest-vn4-08231777 is not found in API Server 2025-11-19 17:36:07,102 - DEBUG - VN ctest-vn4-08231777 is not present in Agent 10.0.0.38 2025-11-19 17:36:07,102 - INFO - Validated that VN ctest-vn4-08231777 is not in any agent 2025-11-19 17:36:07,113 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08231777 info 2025-11-19 17:36:07,136 - INFO - Deleted policy ctest-policy1-26963621 2025-11-19 17:36:07,301 - DEBUG - policy ctest-policy1-26963621 is not found in API Server 2025-11-19 17:36:07,553 - DEBUG - No XMPP flaps were noticed during the test
2025-11-19 17:36:07,554 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-19 17:36:07,554 - INFO - -------------------------------------------------------------------------------- 2025-11-19 17:36:07,841 - DEBUG - No XMPP flaps were noticed during the test
2025-11-19 17:36:07,841 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-19 17:36:07,841 - INFO - -------------------------------------------------------------------------------- 2025-11-19 17:36:08,526 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-45544582, ID : 7258d1ab-96ee-48f3-928f-4dd4cb7c1bdc