2025-07-31 13:56:23,548 - INFO - Domain Default found not creating 2025-07-31 13:56:23,708 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-47832989 not found, creating it 2025-07-31 13:56:24,174 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-47832989, ID : 4666a528-aa90-4381-aba6-5b8877d56d84 2025-07-31 13:56:25,743 - INFO - ================================================================================ 2025-07-31 13:56:25,743 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-31 13:56:26,001 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with 2025-07-31 13:56:26,001 - INFO - Initial checks done. Running the testcase now 2025-07-31 13:56:26,001 - INFO - 2025-07-31 13:56:26,001 - INFO - ================================================================================ 2025-07-31 13:56:26,002 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-31 13:56:26,002 - 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-07-31 13:56:26,299 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with 2025-07-31 13:56:26,299 - INFO - Initial checks done. Running the testcase now 2025-07-31 13:56:26,299 - INFO - 2025-07-31 13:56:26,653 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47832989:ctest-vn4-28913058, 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-47832989:ctest-vn4-28913058, 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-47832989:ctest-vn4-28913058, 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-47832989:ctest-vn4-28913058, 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-07-31 13:56:27,173 - DEBUG - Response for create_network : {'network': {'id': '306297a7-e112-41c1-8190-f49de1d7242c', 'name': 'ctest-vn4-28913058', 'tenant_id': '4666a528aa904381aba65b8877d56d84', 'project_id': '4666a528aa904381aba65b8877d56d84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47832989', 'ctest-vn4-28913058'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 13:56:27,363 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e48daa87-c37a-466d-9851-3c1f0caf68cc', 'name': '', 'tenant_id': '4666a528aa904381aba65b8877d56d84', 'network_id': '306297a7-e112-41c1-8190-f49de1d7242c', 'ip_version': 4, 'cidr': '38.127.161.192/26', 'allocation_pools': [{'start': '38.127.161.194', 'end': '38.127.161.254'}], 'gateway_ip': '38.127.161.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.127.161.194', 'tags': [], 'project_id': '4666a528aa904381aba65b8877d56d84'}} 2025-07-31 13:56:27,549 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a43d454-c46a-4ba3-8b1b-b03d8dd76e50', 'name': '', 'tenant_id': '4666a528aa904381aba65b8877d56d84', 'network_id': '306297a7-e112-41c1-8190-f49de1d7242c', 'ip_version': 6, 'cidr': '2f61:1db6:e0e3:c21f:a47:f888::/96', 'allocation_pools': [{'start': '2f61:1db6:e0e3:c21f:a47:f888:0:2', 'end': '2f61:1db6:e0e3:c21f:a47:f888:ffff:fffe'}], 'gateway_ip': '2f61:1db6:e0e3:c21f:a47:f888:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2f61:1db6:e0e3:c21f:a47:f888:0:2', 'tags': [], 'project_id': '4666a528aa904381aba65b8877d56d84'}} 2025-07-31 13:56:27,570 - INFO - Created VN ctest-vn4-28913058 2025-07-31 13:56:27,623 - DEBUG - VN ctest-vn4-28913058 UUID is 306297a7-e112-41c1-8190-f49de1d7242c 2025-07-31 13:56:27,860 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '306297a7-e112-41c1-8190-f49de1d7242c', 'name': 'ctest-vn4-28913058', 'tenant_id': '4666a528aa904381aba65b8877d56d84', 'project_id': '4666a528aa904381aba65b8877d56d84', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e48daa87-c37a-466d-9851-3c1f0caf68cc', '8a43d454-c46a-4ba3-8b1b-b03d8dd76e50'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47832989', 'ctest-vn4-28913058'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47832989', 'ctest-policy1-29445123']], 'subnet_ipam': [{'subnet_cidr': '38.127.161.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2f61:1db6:e0e3:c21f:a47:f888::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 13:56:28,035 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 13:56:28,456 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 13:56:28,496 - DEBUG - Requesting: http://10.0.0.65:8082/domain/c9e90f9b-d6f8-44b6-91f1-fa286b6f93b3 2025-07-31 13:56:28,509 - DEBUG - Requesting: http://10.0.0.65:8082/project/4666a528-aa90-4381-aba6-5b8877d56d84 2025-07-31 13:56:28,584 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/306297a7-e112-41c1-8190-f49de1d7242c 2025-07-31 13:56:28,597 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/306297a7-e112-41c1-8190-f49de1d7242c 2025-07-31 13:56:28,611 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cd1c9fcf-e17b-4d1d-b5a6-a74dc2dd4397 2025-07-31 13:56:28,619 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cd1c9fcf-e17b-4d1d-b5a6-a74dc2dd4397 2025-07-31 13:56:28,627 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/8c4d2325-bf32-4d2c-940b-46c422242db0 2025-07-31 13:56:28,633 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 13:56:28,633 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/306297a7-e112-41c1-8190-f49de1d7242c 2025-07-31 13:56:28,644 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cd1c9fcf-e17b-4d1d-b5a6-a74dc2dd4397 2025-07-31 13:56:28,663 - INFO - Verified VN network id 11 for VN 306297a7-e112-41c1-8190-f49de1d7242c 2025-07-31 13:56:28,663 - INFO - Verifications in API Server for VN ctest-vn4-28913058 passed 2025-07-31 13:56:28,664 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/306297a7-e112-41c1-8190-f49de1d7242c 2025-07-31 13:56:28,678 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cd1c9fcf-e17b-4d1d-b5a6-a74dc2dd4397 2025-07-31 13:56:28,688 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cd1c9fcf-e17b-4d1d-b5a6-a74dc2dd4397 2025-07-31 13:56:28,696 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/8c4d2325-bf32-4d2c-940b-46c422242db0 2025-07-31 13:56:28,711 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47832989:ctest-vn4-28913058', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47832989', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3486515808829587905', 'uuid-lslong': '9336230986475054124'}, 'enable': 'true', 'created': '2025-07-31T13:56:27', 'last-modified': '2025-07-31T13:56:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.905048'} 2025-07-31 13:56:28,718 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 13:56:28,718 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-28913058 passed 2025-07-31 13:56:28,718 - DEBUG - ====Verifying policy data for ctest-vn4-28913058 in API_Server ====== 2025-07-31 13:56:28,719 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 13:56:28,725 - DEBUG - Requesting: http://10.0.0.65:8082/domain/c9e90f9b-d6f8-44b6-91f1-fa286b6f93b3 2025-07-31 13:56:28,749 - DEBUG - Requesting: http://10.0.0.65:8082/project/4666a528-aa90-4381-aba6-5b8877d56d84 2025-07-31 13:56:28,827 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/306297a7-e112-41c1-8190-f49de1d7242c 2025-07-31 13:56:28,838 - DEBUG - ==>Verifying data for policy with id: 335b2446-cb9f-4b81-8025-1c2f2f25dec2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47832989', 'ctest-policy1-29445123'] 2025-07-31 13:56:28,838 - INFO - VN ctest-vn4-28913058 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 13:56:28,838 - DEBUG - Verifying the vn in opserver 2025-07-31 13:56:28,838 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47832989:ctest-vn4-28913058 virtual network link through opserver 10.0.0.65 2025-07-31 13:56:28,838 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-07-31 13:56:29,142 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-07-31 13:56:29,200 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47832989:ctest-vn4-28913058', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47832989:ctest-vn4-28913058?flat'} 2025-07-31 13:56:29,200 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47832989:ctest-vn4-28913058 is found in opserver 2025-07-31 13:56:29,211 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 13:56:29,216 - DEBUG - VRF ids for VN ctest-vn4-28913058: {} 2025-07-31 13:56:29,216 - DEBUG - ====Verifying data for ctest-policy1-29445123 in API_Server ====== 2025-07-31 13:56:29,216 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 13:56:29,222 - DEBUG - Requesting: http://10.0.0.65:8082/domain/c9e90f9b-d6f8-44b6-91f1-fa286b6f93b3 2025-07-31 13:56:29,233 - DEBUG - Requesting: http://10.0.0.65:8082/project/4666a528-aa90-4381-aba6-5b8877d56d84 2025-07-31 13:56:29,304 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/335b2446-cb9f-4b81-8025-1c2f2f25dec2 2025-07-31 13:56:29,315 - INFO - Verified policy ctest-policy1-29445123 in API Server, Result: True 2025-07-31 13:56:29,315 - INFO - Done with setup and verification, moving onto test .. 2025-07-31 13:56:29,324 - INFO - Deleting VN ctest-vn4-28913058 2025-07-31 13:56:29,449 - DEBUG - Response for deleting network () 2025-07-31 13:56:29,449 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/cd1c9fcf-e17b-4d1d-b5a6-a74dc2dd4397 2025-07-31 13:56:29,455 - DEBUG - Response Code: 404 2025-07-31 13:56:29,455 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-07-31 13:56:29,462 - DEBUG - Requesting: http://10.0.0.65:8082/domain/c9e90f9b-d6f8-44b6-91f1-fa286b6f93b3 2025-07-31 13:56:29,521 - DEBUG - Requesting: http://10.0.0.65:8082/project/4666a528-aa90-4381-aba6-5b8877d56d84 2025-07-31 13:56:29,597 - INFO - Validated that VN ctest-vn4-28913058 is not found in API Server 2025-07-31 13:56:29,607 - DEBUG - VN ctest-vn4-28913058 is not present in Agent 10.0.0.65 2025-07-31 13:56:29,607 - INFO - Validated that VN ctest-vn4-28913058 is not in any agent 2025-07-31 13:56:29,625 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-28913058 info 2025-07-31 13:56:29,658 - INFO - Deleted policy ctest-policy1-29445123 2025-07-31 13:56:29,819 - DEBUG - policy ctest-policy1-29445123 is not found in API Server 2025-07-31 13:56:30,078 - DEBUG - No XMPP flaps were noticed during the test 2025-07-31 13:56:30,078 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-07-31 13:56:30,078 - INFO - -------------------------------------------------------------------------------- 2025-07-31 13:56:30,370 - DEBUG - No XMPP flaps were noticed during the test 2025-07-31 13:56:30,370 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-07-31 13:56:30,370 - INFO - -------------------------------------------------------------------------------- 2025-07-31 13:56:31,053 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-47832989, ID : 4666a528-aa90-4381-aba6-5b8877d56d84