2025-07-30 20:24:39,245 - INFO - Domain Default found not creating 2025-07-30 20:24:39,380 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-32480882 not found, creating it 2025-07-30 20:24:39,831 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-32480882, ID : 5420d10b-b28f-4a04-9c85-bc350f92ae0a 2025-07-30 20:24:41,159 - INFO - ================================================================================ 2025-07-30 20:24:41,159 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-30 20:24:41,414 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-07-30 20:24:41,414 - INFO - Initial checks done. Running the testcase now 2025-07-30 20:24:41,414 - INFO - 2025-07-30 20:24:41,414 - INFO - ================================================================================ 2025-07-30 20:24:41,414 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-30 20:24:41,414 - 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-30 20:24:41,701 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-07-30 20:24:41,702 - INFO - Initial checks done. Running the testcase now 2025-07-30 20:24:41,702 - INFO - 2025-07-30 20:24:42,046 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32480882:ctest-vn4-71656909, 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-32480882:ctest-vn4-71656909, 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-32480882:ctest-vn4-71656909, 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-32480882:ctest-vn4-71656909, 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-30 20:24:42,554 - DEBUG - Response for create_network : {'network': {'id': '14c67639-2702-418e-8412-5209d849d14b', 'name': 'ctest-vn4-71656909', 'tenant_id': '5420d10bb28f4a049c85bc350f92ae0a', 'project_id': '5420d10bb28f4a049c85bc350f92ae0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32480882', 'ctest-vn4-71656909'], 'port_security_enabled': True, 'description': ''}} 2025-07-30 20:24:42,792 - DEBUG - Response for create_subnet : {'subnet': {'id': '6bf3ddd2-e9f6-4ad0-812b-4c97d05a260c', 'name': '', 'tenant_id': '5420d10bb28f4a049c85bc350f92ae0a', 'network_id': '14c67639-2702-418e-8412-5209d849d14b', 'ip_version': 4, 'cidr': '49.173.83.64/26', 'allocation_pools': [{'start': '49.173.83.66', 'end': '49.173.83.126'}], 'gateway_ip': '49.173.83.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '49.173.83.66', 'tags': [], 'project_id': '5420d10bb28f4a049c85bc350f92ae0a'}} 2025-07-30 20:24:42,976 - DEBUG - Response for create_subnet : {'subnet': {'id': '71d50262-a9ac-4821-9d02-9ddea858d78a', 'name': '', 'tenant_id': '5420d10bb28f4a049c85bc350f92ae0a', 'network_id': '14c67639-2702-418e-8412-5209d849d14b', 'ip_version': 6, 'cidr': '3d67:fb:7c85:cc39:87ac:74bd::/96', 'allocation_pools': [{'start': '3d67:fb:7c85:cc39:87ac:74bd:0:2', 'end': '3d67:fb:7c85:cc39:87ac:74bd:ffff:fffe'}], 'gateway_ip': '3d67:fb:7c85:cc39:87ac:74bd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d67:fb:7c85:cc39:87ac:74bd:0:2', 'tags': [], 'project_id': '5420d10bb28f4a049c85bc350f92ae0a'}} 2025-07-30 20:24:42,995 - INFO - Created VN ctest-vn4-71656909 2025-07-30 20:24:43,049 - DEBUG - VN ctest-vn4-71656909 UUID is 14c67639-2702-418e-8412-5209d849d14b 2025-07-30 20:24:43,257 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '14c67639-2702-418e-8412-5209d849d14b', 'name': 'ctest-vn4-71656909', 'tenant_id': '5420d10bb28f4a049c85bc350f92ae0a', 'project_id': '5420d10bb28f4a049c85bc350f92ae0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6bf3ddd2-e9f6-4ad0-812b-4c97d05a260c', '71d50262-a9ac-4821-9d02-9ddea858d78a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32480882', 'ctest-vn4-71656909'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32480882', 'ctest-policy1-94211206']], 'subnet_ipam': [{'subnet_cidr': '49.173.83.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d67:fb:7c85:cc39:87ac:74bd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-30 20:24:43,421 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-30 20:24:43,708 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-30 20:24:43,736 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c6645a4f-a58c-4bc2-9155-e01ef08bda31 2025-07-30 20:24:43,748 - DEBUG - Requesting: http://10.0.0.254:8082/project/5420d10b-b28f-4a04-9c85-bc350f92ae0a 2025-07-30 20:24:43,817 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/14c67639-2702-418e-8412-5209d849d14b 2025-07-30 20:24:43,828 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/14c67639-2702-418e-8412-5209d849d14b 2025-07-30 20:24:43,836 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cea163f7-59b8-4a71-895b-e22183fb213b 2025-07-30 20:24:43,841 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cea163f7-59b8-4a71-895b-e22183fb213b 2025-07-30 20:24:43,846 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d64d807e-5b76-4611-a93f-ebe8f0831f3f 2025-07-30 20:24:43,851 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-30 20:24:43,851 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/14c67639-2702-418e-8412-5209d849d14b 2025-07-30 20:24:43,859 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cea163f7-59b8-4a71-895b-e22183fb213b 2025-07-30 20:24:43,870 - INFO - Verified VN network id 12 for VN 14c67639-2702-418e-8412-5209d849d14b 2025-07-30 20:24:43,870 - INFO - Verifications in API Server for VN ctest-vn4-71656909 passed 2025-07-30 20:24:43,870 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/14c67639-2702-418e-8412-5209d849d14b 2025-07-30 20:24:43,879 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cea163f7-59b8-4a71-895b-e22183fb213b 2025-07-30 20:24:43,884 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cea163f7-59b8-4a71-895b-e22183fb213b 2025-07-30 20:24:43,890 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/d64d807e-5b76-4611-a93f-ebe8f0831f3f 2025-07-30 20:24:43,900 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32480882:ctest-vn4-71656909', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32480882', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1497013913986941326', 'uuid-lslong': '9516759164824179019'}, 'enable': 'true', 'created': '2025-07-30T20:24:42', 'last-modified': '2025-07-30T20:24:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.679092'} 2025-07-30 20:24:43,906 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-30 20:24:43,906 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-71656909 passed 2025-07-30 20:24:43,906 - DEBUG - ====Verifying policy data for ctest-vn4-71656909 in API_Server ====== 2025-07-30 20:24:43,906 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-30 20:24:43,911 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c6645a4f-a58c-4bc2-9155-e01ef08bda31 2025-07-30 20:24:43,921 - DEBUG - Requesting: http://10.0.0.254:8082/project/5420d10b-b28f-4a04-9c85-bc350f92ae0a 2025-07-30 20:24:43,987 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/14c67639-2702-418e-8412-5209d849d14b 2025-07-30 20:24:43,996 - DEBUG - ==>Verifying data for policy with id: fdf7e268-cd09-40b8-863b-d4dadfa5c9ab, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32480882', 'ctest-policy1-94211206'] 2025-07-30 20:24:43,996 - INFO - VN ctest-vn4-71656909 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-30 20:24:43,996 - DEBUG - Verifying the vn in opserver 2025-07-30 20:24:43,996 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32480882:ctest-vn4-71656909 virtual network link through opserver 10.0.0.254 2025-07-30 20:24:43,996 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-30 20:24:44,283 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-30 20:24:44,336 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32480882:ctest-vn4-71656909', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32480882:ctest-vn4-71656909?flat'} 2025-07-30 20:24:44,337 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32480882:ctest-vn4-71656909 is found in opserver 2025-07-30 20:24:44,346 - DEBUG - Do not have enough data to verify VN in agent 2025-07-30 20:24:44,350 - DEBUG - VRF ids for VN ctest-vn4-71656909: {} 2025-07-30 20:24:44,351 - DEBUG - ====Verifying data for ctest-policy1-94211206 in API_Server ====== 2025-07-30 20:24:44,351 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-30 20:24:44,356 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c6645a4f-a58c-4bc2-9155-e01ef08bda31 2025-07-30 20:24:44,366 - DEBUG - Requesting: http://10.0.0.254:8082/project/5420d10b-b28f-4a04-9c85-bc350f92ae0a 2025-07-30 20:24:44,432 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/fdf7e268-cd09-40b8-863b-d4dadfa5c9ab 2025-07-30 20:24:44,441 - INFO - Verified policy ctest-policy1-94211206 in API Server, Result: True 2025-07-30 20:24:44,441 - INFO - Done with setup and verification, moving onto test .. 2025-07-30 20:24:44,448 - INFO - Deleting VN ctest-vn4-71656909 2025-07-30 20:24:44,567 - DEBUG - Response for deleting network () 2025-07-30 20:24:44,567 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/cea163f7-59b8-4a71-895b-e22183fb213b 2025-07-30 20:24:44,572 - DEBUG - Response Code: 404 2025-07-30 20:24:44,572 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-30 20:24:44,576 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c6645a4f-a58c-4bc2-9155-e01ef08bda31 2025-07-30 20:24:44,630 - DEBUG - Requesting: http://10.0.0.254:8082/project/5420d10b-b28f-4a04-9c85-bc350f92ae0a 2025-07-30 20:24:44,696 - INFO - Validated that VN ctest-vn4-71656909 is not found in API Server 2025-07-30 20:24:44,706 - DEBUG - VN ctest-vn4-71656909 is not present in Agent 10.0.0.254 2025-07-30 20:24:44,706 - INFO - Validated that VN ctest-vn4-71656909 is not in any agent 2025-07-30 20:24:44,719 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-71656909 info 2025-07-30 20:24:44,742 - INFO - Deleted policy ctest-policy1-94211206 2025-07-30 20:24:44,905 - DEBUG - policy ctest-policy1-94211206 is not found in API Server 2025-07-30 20:24:45,158 - DEBUG - No XMPP flaps were noticed during the test 2025-07-30 20:24:45,158 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-07-30 20:24:45,158 - INFO - -------------------------------------------------------------------------------- 2025-07-30 20:24:45,447 - DEBUG - No XMPP flaps were noticed during the test 2025-07-30 20:24:45,447 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-07-30 20:24:45,447 - INFO - -------------------------------------------------------------------------------- 2025-07-30 20:24:46,122 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-32480882, ID : 5420d10b-b28f-4a04-9c85-bc350f92ae0a