2025-08-10 20:42:53,420 - INFO - Domain Default found not creating 2025-08-10 20:42:53,534 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-35496874 not found, creating it 2025-08-10 20:42:53,984 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-35496874, ID : d5c4000b-36f9-40a4-a1cf-0e233d8f9a20 2025-08-10 20:42:55,253 - INFO - ================================================================================ 2025-08-10 20:42:55,253 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-10 20:42:55,509 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.14': '0'}} with 2025-08-10 20:42:55,509 - INFO - Initial checks done. Running the testcase now 2025-08-10 20:42:55,509 - INFO - 2025-08-10 20:42:55,509 - INFO - ================================================================================ 2025-08-10 20:42:55,509 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-10 20:42:55,509 - 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-10 20:42:55,808 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.14': '0'}} with 2025-08-10 20:42:55,808 - INFO - Initial checks done. Running the testcase now 2025-08-10 20:42:55,808 - INFO - 2025-08-10 20:42:56,142 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35496874:ctest-vn4-41197117, 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-35496874:ctest-vn4-41197117, 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-35496874:ctest-vn4-41197117, 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-35496874:ctest-vn4-41197117, 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-10 20:42:56,638 - DEBUG - Response for create_network : {'network': {'id': '7f8dbb99-c5a1-4378-8f21-561a3f1cb34b', 'name': 'ctest-vn4-41197117', 'tenant_id': 'd5c4000b36f940a4a1cf0e233d8f9a20', 'project_id': 'd5c4000b36f940a4a1cf0e233d8f9a20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35496874', 'ctest-vn4-41197117'], 'port_security_enabled': True, 'description': ''}} 2025-08-10 20:42:56,790 - DEBUG - Response for create_subnet : {'subnet': {'id': '64688cf7-17de-4195-97dd-4a6a6b22d9fb', 'name': '', 'tenant_id': 'd5c4000b36f940a4a1cf0e233d8f9a20', 'network_id': '7f8dbb99-c5a1-4378-8f21-561a3f1cb34b', 'ip_version': 4, 'cidr': '56.206.243.0/26', 'allocation_pools': [{'start': '56.206.243.2', 'end': '56.206.243.62'}], 'gateway_ip': '56.206.243.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.206.243.2', 'tags': [], 'project_id': 'd5c4000b36f940a4a1cf0e233d8f9a20'}} 2025-08-10 20:42:56,978 - DEBUG - Response for create_subnet : {'subnet': {'id': '44b422ff-e631-43ff-9aed-90b0bf28a446', 'name': '', 'tenant_id': 'd5c4000b36f940a4a1cf0e233d8f9a20', 'network_id': '7f8dbb99-c5a1-4378-8f21-561a3f1cb34b', 'ip_version': 6, 'cidr': '23a9:47da:fc27:1ee2:b4aa:f26c::/96', 'allocation_pools': [{'start': '23a9:47da:fc27:1ee2:b4aa:f26c:0:2', 'end': '23a9:47da:fc27:1ee2:b4aa:f26c:ffff:fffe'}], 'gateway_ip': '23a9:47da:fc27:1ee2:b4aa:f26c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23a9:47da:fc27:1ee2:b4aa:f26c:0:2', 'tags': [], 'project_id': 'd5c4000b36f940a4a1cf0e233d8f9a20'}} 2025-08-10 20:42:56,995 - INFO - Created VN ctest-vn4-41197117 2025-08-10 20:42:57,048 - DEBUG - VN ctest-vn4-41197117 UUID is 7f8dbb99-c5a1-4378-8f21-561a3f1cb34b 2025-08-10 20:42:57,218 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f8dbb99-c5a1-4378-8f21-561a3f1cb34b', 'name': 'ctest-vn4-41197117', 'tenant_id': 'd5c4000b36f940a4a1cf0e233d8f9a20', 'project_id': 'd5c4000b36f940a4a1cf0e233d8f9a20', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['64688cf7-17de-4195-97dd-4a6a6b22d9fb', '44b422ff-e631-43ff-9aed-90b0bf28a446'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35496874', 'ctest-vn4-41197117'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35496874', 'ctest-policy1-02558655']], 'subnet_ipam': [{'subnet_cidr': '56.206.243.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23a9:47da:fc27:1ee2:b4aa:f26c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-10 20:42:57,392 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-10 20:42:57,679 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-10 20:42:57,704 - DEBUG - Requesting: http://10.0.0.57:8082/domain/603f953e-f3df-4038-9b2b-21482e2b3f5a 2025-08-10 20:42:57,716 - DEBUG - Requesting: http://10.0.0.57:8082/project/d5c4000b-36f9-40a4-a1cf-0e233d8f9a20 2025-08-10 20:42:57,795 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7f8dbb99-c5a1-4378-8f21-561a3f1cb34b 2025-08-10 20:42:57,808 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7f8dbb99-c5a1-4378-8f21-561a3f1cb34b 2025-08-10 20:42:57,817 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2a3dda2f-11f5-4896-9507-d4a9d5e3173f 2025-08-10 20:42:57,823 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2a3dda2f-11f5-4896-9507-d4a9d5e3173f 2025-08-10 20:42:57,829 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/3e73a7fe-40c6-4289-b7b2-8b0f66e79bd9 2025-08-10 20:42:57,834 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 20:42:57,834 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7f8dbb99-c5a1-4378-8f21-561a3f1cb34b 2025-08-10 20:42:57,843 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2a3dda2f-11f5-4896-9507-d4a9d5e3173f 2025-08-10 20:42:57,854 - INFO - Verified VN network id 12 for VN 7f8dbb99-c5a1-4378-8f21-561a3f1cb34b 2025-08-10 20:42:57,854 - INFO - Verifications in API Server for VN ctest-vn4-41197117 passed 2025-08-10 20:42:57,854 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7f8dbb99-c5a1-4378-8f21-561a3f1cb34b 2025-08-10 20:42:57,863 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2a3dda2f-11f5-4896-9507-d4a9d5e3173f 2025-08-10 20:42:57,869 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2a3dda2f-11f5-4896-9507-d4a9d5e3173f 2025-08-10 20:42:57,875 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/3e73a7fe-40c6-4289-b7b2-8b0f66e79bd9 2025-08-10 20:42:57,885 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35496874:ctest-vn4-41197117', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-35496874', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9191208683653120888', 'uuid-lslong': '10313619292383130443'}, 'enable': 'true', 'created': '2025-08-10T20:42:56', 'last-modified': '2025-08-10T20:42:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694484'} 2025-08-10 20:42:57,891 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-10 20:42:57,891 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-41197117 passed 2025-08-10 20:42:57,892 - DEBUG - ====Verifying policy data for ctest-vn4-41197117 in API_Server ====== 2025-08-10 20:42:57,892 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-10 20:42:57,898 - DEBUG - Requesting: http://10.0.0.57:8082/domain/603f953e-f3df-4038-9b2b-21482e2b3f5a 2025-08-10 20:42:57,908 - DEBUG - Requesting: http://10.0.0.57:8082/project/d5c4000b-36f9-40a4-a1cf-0e233d8f9a20 2025-08-10 20:42:57,975 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7f8dbb99-c5a1-4378-8f21-561a3f1cb34b 2025-08-10 20:42:57,985 - DEBUG - ==>Verifying data for policy with id: 5c667fdf-c456-4e50-bf59-d2d098a2528f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-35496874', 'ctest-policy1-02558655'] 2025-08-10 20:42:57,985 - INFO - VN ctest-vn4-41197117 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-10 20:42:57,985 - DEBUG - Verifying the vn in opserver 2025-08-10 20:42:57,985 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35496874:ctest-vn4-41197117 virtual network link through opserver 10.0.0.57 2025-08-10 20:42:57,985 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-10 20:42:58,271 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-10 20:42:58,317 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35496874:ctest-vn4-41197117', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35496874:ctest-vn4-41197117?flat'} 2025-08-10 20:42:58,318 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-35496874:ctest-vn4-41197117 is found in opserver 2025-08-10 20:42:58,327 - DEBUG - Do not have enough data to verify VN in agent 2025-08-10 20:42:58,332 - DEBUG - VRF ids for VN ctest-vn4-41197117: {} 2025-08-10 20:42:58,333 - DEBUG - ====Verifying data for ctest-policy1-02558655 in API_Server ====== 2025-08-10 20:42:58,333 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-10 20:42:58,337 - DEBUG - Requesting: http://10.0.0.57:8082/domain/603f953e-f3df-4038-9b2b-21482e2b3f5a 2025-08-10 20:42:58,347 - DEBUG - Requesting: http://10.0.0.57:8082/project/d5c4000b-36f9-40a4-a1cf-0e233d8f9a20 2025-08-10 20:42:58,421 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/5c667fdf-c456-4e50-bf59-d2d098a2528f 2025-08-10 20:42:58,431 - INFO - Verified policy ctest-policy1-02558655 in API Server, Result: True 2025-08-10 20:42:58,431 - INFO - Done with setup and verification, moving onto test .. 2025-08-10 20:42:58,438 - INFO - Deleting VN ctest-vn4-41197117 2025-08-10 20:42:58,559 - DEBUG - Response for deleting network () 2025-08-10 20:42:58,559 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/2a3dda2f-11f5-4896-9507-d4a9d5e3173f 2025-08-10 20:42:58,564 - DEBUG - Response Code: 404 2025-08-10 20:42:58,564 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-10 20:42:58,569 - DEBUG - Requesting: http://10.0.0.57:8082/domain/603f953e-f3df-4038-9b2b-21482e2b3f5a 2025-08-10 20:42:58,620 - DEBUG - Requesting: http://10.0.0.57:8082/project/d5c4000b-36f9-40a4-a1cf-0e233d8f9a20 2025-08-10 20:42:58,690 - INFO - Validated that VN ctest-vn4-41197117 is not found in API Server 2025-08-10 20:42:58,702 - DEBUG - VN ctest-vn4-41197117 is not present in Agent 10.0.0.57 2025-08-10 20:42:58,702 - INFO - Validated that VN ctest-vn4-41197117 is not in any agent 2025-08-10 20:42:58,716 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-41197117 info 2025-08-10 20:42:58,743 - INFO - Deleted policy ctest-policy1-02558655 2025-08-10 20:42:58,908 - DEBUG - policy ctest-policy1-02558655 is not found in API Server 2025-08-10 20:42:59,160 - DEBUG - No XMPP flaps were noticed during the test