2025-11-17 18:15:56,460 - INFO - Domain Default found not creating 2025-11-17 18:15:56,678 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96725988 not found, creating it 2025-11-17 18:15:57,205 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96725988, ID : 3e8c46dd-ad2f-4666-acbf-e56f110931e0 2025-11-17 18:15:58,968 - INFO - ================================================================================ 2025-11-17 18:15:58,968 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 18:15:59,237 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-11-17 18:15:59,237 - INFO - Initial checks done. Running the testcase now 2025-11-17 18:15:59,238 - INFO - 2025-11-17 18:15:59,238 - INFO - ================================================================================ 2025-11-17 18:15:59,238 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-17 18:15:59,238 - 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-17 18:15:59,524 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-11-17 18:15:59,524 - INFO - Initial checks done. Running the testcase now 2025-11-17 18:15:59,525 - INFO - 2025-11-17 18:15:59,951 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96725988:ctest-vn4-83761654, 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-96725988:ctest-vn4-83761654, 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-96725988:ctest-vn4-83761654, 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-96725988:ctest-vn4-83761654, 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-17 18:16:00,559 - DEBUG - Response for create_network : {'network': {'id': '86e8ddff-8b78-413b-a5d4-65eb948138d0', 'name': 'ctest-vn4-83761654', 'tenant_id': '3e8c46ddad2f4666acbfe56f110931e0', 'project_id': '3e8c46ddad2f4666acbfe56f110931e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96725988', 'ctest-vn4-83761654'], 'port_security_enabled': True, 'description': ''}} 2025-11-17 18:16:00,780 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa597899-65a3-4020-9143-ad5cec7bf343', 'name': '', 'tenant_id': '3e8c46ddad2f4666acbfe56f110931e0', 'network_id': '86e8ddff-8b78-413b-a5d4-65eb948138d0', 'ip_version': 4, 'cidr': '97.194.107.128/26', 'allocation_pools': [{'start': '97.194.107.130', 'end': '97.194.107.190'}], 'gateway_ip': '97.194.107.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.194.107.130', 'tags': [], 'project_id': '3e8c46ddad2f4666acbfe56f110931e0'}} 2025-11-17 18:16:00,935 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcc2bb67-3597-42a6-9a21-614c6c3a65ea', 'name': '', 'tenant_id': '3e8c46ddad2f4666acbfe56f110931e0', 'network_id': '86e8ddff-8b78-413b-a5d4-65eb948138d0', 'ip_version': 6, 'cidr': '2596:ca23:2726:6c85:cdd0:f637::/96', 'allocation_pools': [{'start': '2596:ca23:2726:6c85:cdd0:f637:0:2', 'end': '2596:ca23:2726:6c85:cdd0:f637:ffff:fffe'}], 'gateway_ip': '2596:ca23:2726:6c85:cdd0:f637:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2596:ca23:2726:6c85:cdd0:f637:0:2', 'tags': [], 'project_id': '3e8c46ddad2f4666acbfe56f110931e0'}} 2025-11-17 18:16:00,962 - INFO - Created VN ctest-vn4-83761654 2025-11-17 18:16:01,015 - DEBUG - VN ctest-vn4-83761654 UUID is 86e8ddff-8b78-413b-a5d4-65eb948138d0 2025-11-17 18:16:01,283 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '86e8ddff-8b78-413b-a5d4-65eb948138d0', 'name': 'ctest-vn4-83761654', 'tenant_id': '3e8c46ddad2f4666acbfe56f110931e0', 'project_id': '3e8c46ddad2f4666acbfe56f110931e0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa597899-65a3-4020-9143-ad5cec7bf343', 'dcc2bb67-3597-42a6-9a21-614c6c3a65ea'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96725988', 'ctest-vn4-83761654'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96725988', 'ctest-policy1-37076806']], 'subnet_ipam': [{'subnet_cidr': '97.194.107.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2596:ca23:2726:6c85:cdd0:f637::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-17 18:16:01,451 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 18:16:01,758 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 18:16:01,794 - DEBUG - Requesting: http://10.0.0.33:8082/domain/77f8efd9-1e4c-4101-be0b-57a61b8e1403 2025-11-17 18:16:01,811 - DEBUG - Requesting: http://10.0.0.33:8082/project/3e8c46dd-ad2f-4666-acbf-e56f110931e0 2025-11-17 18:16:01,888 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/86e8ddff-8b78-413b-a5d4-65eb948138d0 2025-11-17 18:16:01,907 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/86e8ddff-8b78-413b-a5d4-65eb948138d0 2025-11-17 18:16:01,923 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/44ded241-3dfc-40a0-8b77-fbfb93fe9328 2025-11-17 18:16:01,932 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/44ded241-3dfc-40a0-8b77-fbfb93fe9328 2025-11-17 18:16:01,941 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/95c86919-2057-40a2-a1db-950bf8a8198b 2025-11-17 18:16:01,951 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 18:16:01,951 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/86e8ddff-8b78-413b-a5d4-65eb948138d0 2025-11-17 18:16:01,964 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/44ded241-3dfc-40a0-8b77-fbfb93fe9328 2025-11-17 18:16:01,986 - INFO - Verified VN network id 11 for VN 86e8ddff-8b78-413b-a5d4-65eb948138d0 2025-11-17 18:16:01,986 - INFO - Verifications in API Server for VN ctest-vn4-83761654 passed 2025-11-17 18:16:01,986 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/86e8ddff-8b78-413b-a5d4-65eb948138d0 2025-11-17 18:16:02,002 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/44ded241-3dfc-40a0-8b77-fbfb93fe9328 2025-11-17 18:16:02,012 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/44ded241-3dfc-40a0-8b77-fbfb93fe9328 2025-11-17 18:16:02,021 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/95c86919-2057-40a2-a1db-950bf8a8198b 2025-11-17 18:16:02,035 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96725988:ctest-vn4-83761654', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96725988', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9721263885305528635', 'uuid-lslong': '11949287773803985104'}, 'enable': 'true', 'created': '2025-11-17T18:16:00', 'last-modified': '2025-11-17T18:16:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.792835'} 2025-11-17 18:16:02,046 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-17 18:16:02,046 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-83761654 passed 2025-11-17 18:16:02,047 - DEBUG - ====Verifying policy data for ctest-vn4-83761654 in API_Server ====== 2025-11-17 18:16:02,047 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 18:16:02,054 - DEBUG - Requesting: http://10.0.0.33:8082/domain/77f8efd9-1e4c-4101-be0b-57a61b8e1403 2025-11-17 18:16:02,068 - DEBUG - Requesting: http://10.0.0.33:8082/project/3e8c46dd-ad2f-4666-acbf-e56f110931e0 2025-11-17 18:16:02,156 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/86e8ddff-8b78-413b-a5d4-65eb948138d0 2025-11-17 18:16:02,169 - DEBUG - ==>Verifying data for policy with id: a2094fe7-3452-4e40-90bc-7bd50c157670, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96725988', 'ctest-policy1-37076806'] 2025-11-17 18:16:02,169 - INFO - VN ctest-vn4-83761654 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-17 18:16:02,169 - DEBUG - Verifying the vn in opserver 2025-11-17 18:16:02,169 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96725988:ctest-vn4-83761654 virtual network link through opserver 10.0.0.33 2025-11-17 18:16:02,169 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-17 18:16:02,477 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-11-17 18:16:02,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96725988:ctest-vn4-83761654', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96725988:ctest-vn4-83761654?flat'} 2025-11-17 18:16:02,561 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96725988:ctest-vn4-83761654 is found in opserver 2025-11-17 18:16:02,573 - DEBUG - Do not have enough data to verify VN in agent 2025-11-17 18:16:02,579 - DEBUG - VRF ids for VN ctest-vn4-83761654: {} 2025-11-17 18:16:02,579 - DEBUG - ====Verifying data for ctest-policy1-37076806 in API_Server ====== 2025-11-17 18:16:02,579 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 18:16:02,587 - DEBUG - Requesting: http://10.0.0.33:8082/domain/77f8efd9-1e4c-4101-be0b-57a61b8e1403 2025-11-17 18:16:02,601 - DEBUG - Requesting: http://10.0.0.33:8082/project/3e8c46dd-ad2f-4666-acbf-e56f110931e0 2025-11-17 18:16:02,680 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/a2094fe7-3452-4e40-90bc-7bd50c157670 2025-11-17 18:16:02,692 - INFO - Verified policy ctest-policy1-37076806 in API Server, Result: True 2025-11-17 18:16:02,692 - INFO - Done with setup and verification, moving onto test .. 2025-11-17 18:16:02,702 - INFO - Deleting VN ctest-vn4-83761654 2025-11-17 18:16:02,855 - DEBUG - Response for deleting network () 2025-11-17 18:16:02,855 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/44ded241-3dfc-40a0-8b77-fbfb93fe9328 2025-11-17 18:16:02,861 - DEBUG - Response Code: 404 2025-11-17 18:16:02,861 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-11-17 18:16:02,868 - DEBUG - Requesting: http://10.0.0.33:8082/domain/77f8efd9-1e4c-4101-be0b-57a61b8e1403 2025-11-17 18:16:02,929 - DEBUG - Requesting: http://10.0.0.33:8082/project/3e8c46dd-ad2f-4666-acbf-e56f110931e0 2025-11-17 18:16:03,005 - INFO - Validated that VN ctest-vn4-83761654 is not found in API Server 2025-11-17 18:16:03,017 - DEBUG - VN ctest-vn4-83761654 is not present in Agent 10.0.0.33 2025-11-17 18:16:03,017 - INFO - Validated that VN ctest-vn4-83761654 is not in any agent 2025-11-17 18:16:03,036 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-83761654 info 2025-11-17 18:16:03,075 - INFO - Deleted policy ctest-policy1-37076806 2025-11-17 18:16:03,262 - DEBUG - policy ctest-policy1-37076806 is not found in API Server 2025-11-17 18:16:03,532 - DEBUG - No XMPP flaps were noticed during the test