2025-11-21 17:07:39,596 - INFO - Domain Default found not creating 2025-11-21 17:07:39,962 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22341251 not found, creating it 2025-11-21 17:07:40,661 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22341251, ID : 8d21c923-cb07-4fb6-bdd6-ed50dd0dc68b 2025-11-21 17:07:42,629 - INFO - ================================================================================ 2025-11-21 17:07:42,629 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-21 17:07:42,958 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.18': '0'}} with 2025-11-21 17:07:42,958 - INFO - Initial checks done. Running the testcase now 2025-11-21 17:07:42,959 - INFO - 2025-11-21 17:07:42,959 - INFO - ================================================================================ 2025-11-21 17:07:42,959 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-21 17:07:42,959 - 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-21 17:07:43,301 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.18': '0'}} with 2025-11-21 17:07:43,301 - INFO - Initial checks done. Running the testcase now 2025-11-21 17:07:43,301 - INFO - 2025-11-21 17:07:43,829 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22341251:ctest-vn4-99718360, 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-22341251:ctest-vn4-99718360, 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-22341251:ctest-vn4-99718360, 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-22341251:ctest-vn4-99718360, 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-21 17:07:44,616 - DEBUG - Response for create_network : {'network': {'id': 'cc3652e0-828d-4837-8da1-d10e8dc3a43c', 'name': 'ctest-vn4-99718360', 'tenant_id': '8d21c923cb074fb6bdd6ed50dd0dc68b', 'project_id': '8d21c923cb074fb6bdd6ed50dd0dc68b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22341251', 'ctest-vn4-99718360'], 'port_security_enabled': True, 'description': ''}} 2025-11-21 17:07:44,900 - DEBUG - Response for create_subnet : {'subnet': {'id': '3d68922c-6e27-4cff-baef-960d877abc54', 'name': '', 'tenant_id': '8d21c923cb074fb6bdd6ed50dd0dc68b', 'network_id': 'cc3652e0-828d-4837-8da1-d10e8dc3a43c', 'ip_version': 4, 'cidr': '75.178.118.192/26', 'allocation_pools': [{'start': '75.178.118.194', 'end': '75.178.118.254'}], 'gateway_ip': '75.178.118.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.178.118.194', 'tags': [], 'project_id': '8d21c923cb074fb6bdd6ed50dd0dc68b'}} 2025-11-21 17:07:45,144 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ccd83408-f23f-4c0e-94fa-cf2d00f4d9d7', 'name': '', 'tenant_id': '8d21c923cb074fb6bdd6ed50dd0dc68b', 'network_id': 'cc3652e0-828d-4837-8da1-d10e8dc3a43c', 'ip_version': 6, 'cidr': '2e49:5a41:b85e:5f9c:29e8:37::/96', 'allocation_pools': [{'start': '2e49:5a41:b85e:5f9c:29e8:37:0:2', 'end': '2e49:5a41:b85e:5f9c:29e8:37:ffff:fffe'}], 'gateway_ip': '2e49:5a41:b85e:5f9c:29e8:37:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e49:5a41:b85e:5f9c:29e8:37:0:2', 'tags': [], 'project_id': '8d21c923cb074fb6bdd6ed50dd0dc68b'}} 2025-11-21 17:07:45,187 - INFO - Created VN ctest-vn4-99718360 2025-11-21 17:07:45,261 - DEBUG - VN ctest-vn4-99718360 UUID is cc3652e0-828d-4837-8da1-d10e8dc3a43c 2025-11-21 17:07:45,668 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cc3652e0-828d-4837-8da1-d10e8dc3a43c', 'name': 'ctest-vn4-99718360', 'tenant_id': '8d21c923cb074fb6bdd6ed50dd0dc68b', 'project_id': '8d21c923cb074fb6bdd6ed50dd0dc68b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3d68922c-6e27-4cff-baef-960d877abc54', 'ccd83408-f23f-4c0e-94fa-cf2d00f4d9d7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22341251', 'ctest-vn4-99718360'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22341251', 'ctest-policy1-94237645']], 'subnet_ipam': [{'subnet_cidr': '75.178.118.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e49:5a41:b85e:5f9c:29e8:37::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-21 17:07:45,865 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-11-21 17:07:46,208 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-11-21 17:07:46,292 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4f375104-01fa-41aa-b76a-7ef4b96b6cb2 2025-11-21 17:07:46,319 - DEBUG - Requesting: http://10.0.0.130:8082/project/8d21c923-cb07-4fb6-bdd6-ed50dd0dc68b 2025-11-21 17:07:46,422 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cc3652e0-828d-4837-8da1-d10e8dc3a43c 2025-11-21 17:07:46,443 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cc3652e0-828d-4837-8da1-d10e8dc3a43c 2025-11-21 17:07:46,458 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d2c62789-45f3-4267-a204-f964edaa3a5a 2025-11-21 17:07:46,468 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d2c62789-45f3-4267-a204-f964edaa3a5a 2025-11-21 17:07:46,478 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/c2ddabd5-9bda-4eb8-9513-77950dcff68f 2025-11-21 17:07:46,487 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-21 17:07:46,487 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cc3652e0-828d-4837-8da1-d10e8dc3a43c 2025-11-21 17:07:46,500 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d2c62789-45f3-4267-a204-f964edaa3a5a 2025-11-21 17:07:46,517 - INFO - Verified VN network id 11 for VN cc3652e0-828d-4837-8da1-d10e8dc3a43c 2025-11-21 17:07:46,517 - INFO - Verifications in API Server for VN ctest-vn4-99718360 passed 2025-11-21 17:07:46,517 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cc3652e0-828d-4837-8da1-d10e8dc3a43c 2025-11-21 17:07:46,531 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d2c62789-45f3-4267-a204-f964edaa3a5a 2025-11-21 17:07:46,540 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d2c62789-45f3-4267-a204-f964edaa3a5a 2025-11-21 17:07:46,556 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/c2ddabd5-9bda-4eb8-9513-77950dcff68f 2025-11-21 17:07:46,583 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22341251:ctest-vn4-99718360', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22341251', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14715039956696123447', 'uuid-lslong': '10205668091036410940'}, 'enable': 'true', 'created': '2025-11-21T17:07:44', 'last-modified': '2025-11-21T17:07:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980089'} 2025-11-21 17:07:46,600 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-21 17:07:46,600 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-99718360 passed 2025-11-21 17:07:46,601 - DEBUG - ====Verifying policy data for ctest-vn4-99718360 in API_Server ====== 2025-11-21 17:07:46,601 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-11-21 17:07:46,614 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4f375104-01fa-41aa-b76a-7ef4b96b6cb2 2025-11-21 17:07:46,649 - DEBUG - Requesting: http://10.0.0.130:8082/project/8d21c923-cb07-4fb6-bdd6-ed50dd0dc68b 2025-11-21 17:07:46,768 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/cc3652e0-828d-4837-8da1-d10e8dc3a43c 2025-11-21 17:07:46,799 - DEBUG - ==>Verifying data for policy with id: 6d9f716c-0177-48ac-9f96-36f3ad1028b3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22341251', 'ctest-policy1-94237645'] 2025-11-21 17:07:46,799 - INFO - VN ctest-vn4-99718360 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-21 17:07:46,800 - DEBUG - Verifying the vn in opserver 2025-11-21 17:07:46,800 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22341251:ctest-vn4-99718360 virtual network link through opserver 10.0.0.130 2025-11-21 17:07:46,800 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-11-21 17:07:47,123 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-11-21 17:07:47,229 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22341251:ctest-vn4-99718360', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22341251:ctest-vn4-99718360?flat'} 2025-11-21 17:07:47,229 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22341251:ctest-vn4-99718360 is found in opserver 2025-11-21 17:07:47,250 - DEBUG - Do not have enough data to verify VN in agent 2025-11-21 17:07:47,264 - DEBUG - VRF ids for VN ctest-vn4-99718360: {} 2025-11-21 17:07:47,264 - DEBUG - ====Verifying data for ctest-policy1-94237645 in API_Server ====== 2025-11-21 17:07:47,264 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-11-21 17:07:47,270 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4f375104-01fa-41aa-b76a-7ef4b96b6cb2 2025-11-21 17:07:47,280 - DEBUG - Requesting: http://10.0.0.130:8082/project/8d21c923-cb07-4fb6-bdd6-ed50dd0dc68b 2025-11-21 17:07:47,388 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/6d9f716c-0177-48ac-9f96-36f3ad1028b3 2025-11-21 17:07:47,410 - INFO - Verified policy ctest-policy1-94237645 in API Server, Result: True 2025-11-21 17:07:47,411 - INFO - Done with setup and verification, moving onto test .. 2025-11-21 17:07:47,425 - INFO - Deleting VN ctest-vn4-99718360 2025-11-21 17:07:47,625 - DEBUG - Response for deleting network () 2025-11-21 17:07:47,625 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/d2c62789-45f3-4267-a204-f964edaa3a5a 2025-11-21 17:07:47,632 - DEBUG - Response Code: 404 2025-11-21 17:07:47,632 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-11-21 17:07:47,640 - DEBUG - Requesting: http://10.0.0.130:8082/domain/4f375104-01fa-41aa-b76a-7ef4b96b6cb2 2025-11-21 17:07:47,695 - DEBUG - Requesting: http://10.0.0.130:8082/project/8d21c923-cb07-4fb6-bdd6-ed50dd0dc68b 2025-11-21 17:07:47,792 - INFO - Validated that VN ctest-vn4-99718360 is not found in API Server 2025-11-21 17:07:47,811 - DEBUG - VN ctest-vn4-99718360 is not present in Agent 10.0.0.130 2025-11-21 17:07:47,811 - INFO - Validated that VN ctest-vn4-99718360 is not in any agent 2025-11-21 17:07:47,836 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-99718360 info 2025-11-21 17:07:47,872 - INFO - Deleted policy ctest-policy1-94237645 2025-11-21 17:07:48,064 - DEBUG - policy ctest-policy1-94237645 is not found in API Server 2025-11-21 17:07:48,392 - DEBUG - No XMPP flaps were noticed during the test