2025-08-05 20:00:48,641 - INFO - Domain Default found not creating 2025-08-05 20:00:49,080 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-73587240 not found, creating it 2025-08-05 20:00:49,876 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-73587240, ID : c6a2adf5-2d3c-4d86-8d0a-bf19e2b317b7 2025-08-05 20:00:52,032 - INFO - ================================================================================ 2025-08-05 20:00:52,032 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-05 20:00:52,335 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.14': '0'}} with 2025-08-05 20:00:52,335 - INFO - Initial checks done. Running the testcase now 2025-08-05 20:00:52,336 - INFO - 2025-08-05 20:00:52,336 - INFO - ================================================================================ 2025-08-05 20:00:52,336 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-05 20:00:52,337 - 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-05 20:00:52,667 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.14': '0'}} with 2025-08-05 20:00:52,667 - INFO - Initial checks done. Running the testcase now 2025-08-05 20:00:52,667 - INFO - 2025-08-05 20:00:53,174 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73587240:ctest-vn4-06974180, 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-73587240:ctest-vn4-06974180, 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-73587240:ctest-vn4-06974180, 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-73587240:ctest-vn4-06974180, 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-05 20:00:54,020 - DEBUG - Response for create_network : {'network': {'id': '9a0ce49f-9634-474d-b94d-864518f7d44c', 'name': 'ctest-vn4-06974180', 'tenant_id': 'c6a2adf52d3c4d868d0abf19e2b317b7', 'project_id': 'c6a2adf52d3c4d868d0abf19e2b317b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73587240', 'ctest-vn4-06974180'], 'port_security_enabled': True, 'description': ''}} 2025-08-05 20:00:54,315 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae663f26-aa2c-4925-8f84-f9ad2b296592', 'name': '', 'tenant_id': 'c6a2adf52d3c4d868d0abf19e2b317b7', 'network_id': '9a0ce49f-9634-474d-b94d-864518f7d44c', 'ip_version': 4, 'cidr': '218.73.15.0/26', 'allocation_pools': [{'start': '218.73.15.2', 'end': '218.73.15.62'}], 'gateway_ip': '218.73.15.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.73.15.2', 'tags': [], 'project_id': 'c6a2adf52d3c4d868d0abf19e2b317b7'}} 2025-08-05 20:00:54,618 - DEBUG - Response for create_subnet : {'subnet': {'id': '4e58fa59-7148-4bcb-b528-ead96f96c1e1', 'name': '', 'tenant_id': 'c6a2adf52d3c4d868d0abf19e2b317b7', 'network_id': '9a0ce49f-9634-474d-b94d-864518f7d44c', 'ip_version': 6, 'cidr': '2bfe:3a9d:4f2d:78ee:1b19:8496::/96', 'allocation_pools': [{'start': '2bfe:3a9d:4f2d:78ee:1b19:8496:0:2', 'end': '2bfe:3a9d:4f2d:78ee:1b19:8496:ffff:fffe'}], 'gateway_ip': '2bfe:3a9d:4f2d:78ee:1b19:8496:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bfe:3a9d:4f2d:78ee:1b19:8496:0:2', 'tags': [], 'project_id': 'c6a2adf52d3c4d868d0abf19e2b317b7'}} 2025-08-05 20:00:54,674 - INFO - Created VN ctest-vn4-06974180 2025-08-05 20:00:54,749 - DEBUG - VN ctest-vn4-06974180 UUID is 9a0ce49f-9634-474d-b94d-864518f7d44c 2025-08-05 20:00:55,222 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9a0ce49f-9634-474d-b94d-864518f7d44c', 'name': 'ctest-vn4-06974180', 'tenant_id': 'c6a2adf52d3c4d868d0abf19e2b317b7', 'project_id': 'c6a2adf52d3c4d868d0abf19e2b317b7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae663f26-aa2c-4925-8f84-f9ad2b296592', '4e58fa59-7148-4bcb-b528-ead96f96c1e1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73587240', 'ctest-vn4-06974180'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73587240', 'ctest-policy1-64815392']], 'subnet_ipam': [{'subnet_cidr': '218.73.15.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bfe:3a9d:4f2d:78ee:1b19:8496::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-05 20:00:55,409 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-05 20:00:55,776 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-05 20:00:55,834 - DEBUG - Requesting: http://10.0.0.49:8082/domain/7825e73d-de76-48a6-8f19-0d33116c8a06 2025-08-05 20:00:55,864 - DEBUG - Requesting: http://10.0.0.49:8082/project/c6a2adf5-2d3c-4d86-8d0a-bf19e2b317b7 2025-08-05 20:00:56,005 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9a0ce49f-9634-474d-b94d-864518f7d44c 2025-08-05 20:00:56,038 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9a0ce49f-9634-474d-b94d-864518f7d44c 2025-08-05 20:00:56,063 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/075bacd7-2cdf-4937-aee1-6328498a9073 2025-08-05 20:00:56,085 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/075bacd7-2cdf-4937-aee1-6328498a9073 2025-08-05 20:00:56,110 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/7c7b8a2f-73cb-459e-9d97-5b35e6a8f2fd 2025-08-05 20:00:56,133 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-05 20:00:56,133 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9a0ce49f-9634-474d-b94d-864518f7d44c 2025-08-05 20:00:56,168 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/075bacd7-2cdf-4937-aee1-6328498a9073 2025-08-05 20:00:56,219 - INFO - Verified VN network id 11 for VN 9a0ce49f-9634-474d-b94d-864518f7d44c 2025-08-05 20:00:56,220 - INFO - Verifications in API Server for VN ctest-vn4-06974180 passed 2025-08-05 20:00:56,220 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9a0ce49f-9634-474d-b94d-864518f7d44c 2025-08-05 20:00:56,258 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/075bacd7-2cdf-4937-aee1-6328498a9073 2025-08-05 20:00:56,282 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/075bacd7-2cdf-4937-aee1-6328498a9073 2025-08-05 20:00:56,306 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/7c7b8a2f-73cb-459e-9d97-5b35e6a8f2fd 2025-08-05 20:00:56,350 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73587240:ctest-vn4-06974180', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-73587240', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11100498555632371533', 'uuid-lslong': '13352476101553149004'}, 'enable': 'true', 'created': '2025-08-05T20:00:53', 'last-modified': '2025-08-05T20:00:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.199105'} 2025-08-05 20:00:56,376 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-05 20:00:56,376 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06974180 passed 2025-08-05 20:00:56,377 - DEBUG - ====Verifying policy data for ctest-vn4-06974180 in API_Server ====== 2025-08-05 20:00:56,377 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-05 20:00:56,396 - DEBUG - Requesting: http://10.0.0.49:8082/domain/7825e73d-de76-48a6-8f19-0d33116c8a06 2025-08-05 20:00:56,431 - DEBUG - Requesting: http://10.0.0.49:8082/project/c6a2adf5-2d3c-4d86-8d0a-bf19e2b317b7 2025-08-05 20:00:56,563 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9a0ce49f-9634-474d-b94d-864518f7d44c 2025-08-05 20:00:56,594 - DEBUG - ==>Verifying data for policy with id: 938a27f6-b9a5-4353-b4f7-febdbe29f7e0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73587240', 'ctest-policy1-64815392'] 2025-08-05 20:00:56,595 - INFO - VN ctest-vn4-06974180 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-05 20:00:56,595 - DEBUG - Verifying the vn in opserver 2025-08-05 20:00:56,595 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73587240:ctest-vn4-06974180 virtual network link through opserver 10.0.0.49 2025-08-05 20:00:56,596 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-05 20:00:56,959 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-05 20:00:57,096 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73587240:ctest-vn4-06974180', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73587240:ctest-vn4-06974180?flat'} 2025-08-05 20:00:57,097 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73587240:ctest-vn4-06974180 is found in opserver 2025-08-05 20:00:57,132 - DEBUG - Do not have enough data to verify VN in agent 2025-08-05 20:00:57,149 - DEBUG - VRF ids for VN ctest-vn4-06974180: {} 2025-08-05 20:00:57,150 - DEBUG - ====Verifying data for ctest-policy1-64815392 in API_Server ====== 2025-08-05 20:00:57,150 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-05 20:00:57,168 - DEBUG - Requesting: http://10.0.0.49:8082/domain/7825e73d-de76-48a6-8f19-0d33116c8a06 2025-08-05 20:00:57,208 - DEBUG - Requesting: http://10.0.0.49:8082/project/c6a2adf5-2d3c-4d86-8d0a-bf19e2b317b7 2025-08-05 20:00:57,347 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/938a27f6-b9a5-4353-b4f7-febdbe29f7e0 2025-08-05 20:00:57,380 - INFO - Verified policy ctest-policy1-64815392 in API Server, Result: True 2025-08-05 20:00:57,380 - INFO - Done with setup and verification, moving onto test .. 2025-08-05 20:00:57,403 - INFO - Deleting VN ctest-vn4-06974180 2025-08-05 20:00:57,681 - DEBUG - Response for deleting network () 2025-08-05 20:00:57,681 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/075bacd7-2cdf-4937-aee1-6328498a9073 2025-08-05 20:00:57,693 - DEBUG - Response Code: 404 2025-08-05 20:00:57,694 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-05 20:00:57,704 - DEBUG - Requesting: http://10.0.0.49:8082/domain/7825e73d-de76-48a6-8f19-0d33116c8a06 2025-08-05 20:00:57,767 - DEBUG - Requesting: http://10.0.0.49:8082/project/c6a2adf5-2d3c-4d86-8d0a-bf19e2b317b7 2025-08-05 20:00:57,897 - INFO - Validated that VN ctest-vn4-06974180 is not found in API Server 2025-08-05 20:00:57,931 - DEBUG - VN ctest-vn4-06974180 is not present in Agent 10.0.0.49 2025-08-05 20:00:57,931 - INFO - Validated that VN ctest-vn4-06974180 is not in any agent 2025-08-05 20:00:57,983 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06974180 info 2025-08-05 20:00:58,051 - INFO - Deleted policy ctest-policy1-64815392 2025-08-05 20:00:58,284 - DEBUG - policy ctest-policy1-64815392 is not found in API Server 2025-08-05 20:00:58,624 - DEBUG - No XMPP flaps were noticed during the test 2025-08-05 20:00:58,624 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2025-08-05 20:00:58,624 - INFO - -------------------------------------------------------------------------------- 2025-08-05 20:00:58,981 - DEBUG - No XMPP flaps were noticed during the test 2025-08-05 20:00:58,982 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2025-08-05 20:00:58,982 - INFO - -------------------------------------------------------------------------------- 2025-08-05 20:00:59,853 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-73587240, ID : c6a2adf5-2d3c-4d86-8d0a-bf19e2b317b7