2025-08-04 20:28:37,048 - INFO - Domain Default found not creating 2025-08-04 20:28:37,239 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11095371 not found, creating it 2025-08-04 20:28:37,749 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11095371, ID : 69233511-a798-4f05-a113-6651c9e42b44 2025-08-04 20:28:39,377 - INFO - ================================================================================ 2025-08-04 20:28:39,378 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-04 20:28:39,639 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.14': '0'}} with 2025-08-04 20:28:39,639 - INFO - Initial checks done. Running the testcase now 2025-08-04 20:28:39,639 - INFO - 2025-08-04 20:28:39,639 - INFO - ================================================================================ 2025-08-04 20:28:39,639 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-04 20:28:39,639 - 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-04 20:28:39,932 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.14': '0'}} with 2025-08-04 20:28:39,932 - INFO - Initial checks done. Running the testcase now 2025-08-04 20:28:39,932 - INFO - 2025-08-04 20:28:40,335 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11095371:ctest-vn4-39480855, 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-11095371:ctest-vn4-39480855, 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-11095371:ctest-vn4-39480855, 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-11095371:ctest-vn4-39480855, 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-04 20:28:40,872 - DEBUG - Response for create_network : {'network': {'id': '21caba58-fd7e-4c1a-a485-f6a6263b2d37', 'name': 'ctest-vn4-39480855', 'tenant_id': '69233511a7984f05a1136651c9e42b44', 'project_id': '69233511a7984f05a1136651c9e42b44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11095371', 'ctest-vn4-39480855'], 'port_security_enabled': True, 'description': ''}} 2025-08-04 20:28:41,067 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e281ba2e-0720-42cb-842e-6feb016019ad', 'name': '', 'tenant_id': '69233511a7984f05a1136651c9e42b44', 'network_id': '21caba58-fd7e-4c1a-a485-f6a6263b2d37', 'ip_version': 4, 'cidr': '86.79.120.128/26', 'allocation_pools': [{'start': '86.79.120.130', 'end': '86.79.120.190'}], 'gateway_ip': '86.79.120.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.79.120.130', 'tags': [], 'project_id': '69233511a7984f05a1136651c9e42b44'}} 2025-08-04 20:28:41,253 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5b48aa9-b942-4b0f-adfc-80d6a525ccfa', 'name': '', 'tenant_id': '69233511a7984f05a1136651c9e42b44', 'network_id': '21caba58-fd7e-4c1a-a485-f6a6263b2d37', 'ip_version': 6, 'cidr': '3943:d67b:defb:c5a5:f595:aad7::/96', 'allocation_pools': [{'start': '3943:d67b:defb:c5a5:f595:aad7:0:2', 'end': '3943:d67b:defb:c5a5:f595:aad7:ffff:fffe'}], 'gateway_ip': '3943:d67b:defb:c5a5:f595:aad7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3943:d67b:defb:c5a5:f595:aad7:0:2', 'tags': [], 'project_id': '69233511a7984f05a1136651c9e42b44'}} 2025-08-04 20:28:41,276 - INFO - Created VN ctest-vn4-39480855 2025-08-04 20:28:41,329 - DEBUG - VN ctest-vn4-39480855 UUID is 21caba58-fd7e-4c1a-a485-f6a6263b2d37 2025-08-04 20:28:41,575 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '21caba58-fd7e-4c1a-a485-f6a6263b2d37', 'name': 'ctest-vn4-39480855', 'tenant_id': '69233511a7984f05a1136651c9e42b44', 'project_id': '69233511a7984f05a1136651c9e42b44', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e281ba2e-0720-42cb-842e-6feb016019ad', 'e5b48aa9-b942-4b0f-adfc-80d6a525ccfa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11095371', 'ctest-vn4-39480855'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11095371', 'ctest-policy1-51413802']], 'subnet_ipam': [{'subnet_cidr': '86.79.120.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3943:d67b:defb:c5a5:f595:aad7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-04 20:28:41,745 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-04 20:28:42,090 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-04 20:28:42,125 - DEBUG - Requesting: http://10.0.0.48:8082/domain/73e228f5-a7a2-4f40-8159-2a93bcb8ee57 2025-08-04 20:28:42,140 - DEBUG - Requesting: http://10.0.0.48:8082/project/69233511-a798-4f05-a113-6651c9e42b44 2025-08-04 20:28:42,222 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/21caba58-fd7e-4c1a-a485-f6a6263b2d37 2025-08-04 20:28:42,239 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/21caba58-fd7e-4c1a-a485-f6a6263b2d37 2025-08-04 20:28:42,253 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/50a13e1b-443c-4442-9c0e-b625c5e65837 2025-08-04 20:28:42,266 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/50a13e1b-443c-4442-9c0e-b625c5e65837 2025-08-04 20:28:42,276 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e7600cea-3412-4566-9c86-490d841204c8 2025-08-04 20:28:42,284 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-04 20:28:42,284 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/21caba58-fd7e-4c1a-a485-f6a6263b2d37 2025-08-04 20:28:42,297 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/50a13e1b-443c-4442-9c0e-b625c5e65837 2025-08-04 20:28:42,314 - INFO - Verified VN network id 11 for VN 21caba58-fd7e-4c1a-a485-f6a6263b2d37 2025-08-04 20:28:42,314 - INFO - Verifications in API Server for VN ctest-vn4-39480855 passed 2025-08-04 20:28:42,315 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/21caba58-fd7e-4c1a-a485-f6a6263b2d37 2025-08-04 20:28:42,332 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/50a13e1b-443c-4442-9c0e-b625c5e65837 2025-08-04 20:28:42,341 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/50a13e1b-443c-4442-9c0e-b625c5e65837 2025-08-04 20:28:42,350 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e7600cea-3412-4566-9c86-490d841204c8 2025-08-04 20:28:42,366 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11095371:ctest-vn4-39480855', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11095371', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2434963439919975450', 'uuid-lslong': '11855152787589115191'}, 'enable': 'true', 'created': '2025-08-04T20:28:40', 'last-modified': '2025-08-04T20:28:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.831417'} 2025-08-04 20:28:42,375 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-04 20:28:42,375 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-39480855 passed 2025-08-04 20:28:42,375 - DEBUG - ====Verifying policy data for ctest-vn4-39480855 in API_Server ====== 2025-08-04 20:28:42,375 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-04 20:28:42,383 - DEBUG - Requesting: http://10.0.0.48:8082/domain/73e228f5-a7a2-4f40-8159-2a93bcb8ee57 2025-08-04 20:28:42,398 - DEBUG - Requesting: http://10.0.0.48:8082/project/69233511-a798-4f05-a113-6651c9e42b44 2025-08-04 20:28:42,490 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/21caba58-fd7e-4c1a-a485-f6a6263b2d37 2025-08-04 20:28:42,505 - DEBUG - ==>Verifying data for policy with id: 5dde6bf2-e3a6-4666-8535-a95876c2a693, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11095371', 'ctest-policy1-51413802'] 2025-08-04 20:28:42,505 - INFO - VN ctest-vn4-39480855 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-04 20:28:42,505 - DEBUG - Verifying the vn in opserver 2025-08-04 20:28:42,505 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11095371:ctest-vn4-39480855 virtual network link through opserver 10.0.0.48 2025-08-04 20:28:42,506 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-04 20:28:42,852 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-08-04 20:28:42,920 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11095371:ctest-vn4-39480855', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11095371:ctest-vn4-39480855?flat'} 2025-08-04 20:28:42,920 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11095371:ctest-vn4-39480855 is found in opserver 2025-08-04 20:28:42,935 - DEBUG - Do not have enough data to verify VN in agent 2025-08-04 20:28:42,941 - DEBUG - VRF ids for VN ctest-vn4-39480855: {} 2025-08-04 20:28:42,942 - DEBUG - ====Verifying data for ctest-policy1-51413802 in API_Server ====== 2025-08-04 20:28:42,942 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-04 20:28:42,949 - DEBUG - Requesting: http://10.0.0.48:8082/domain/73e228f5-a7a2-4f40-8159-2a93bcb8ee57 2025-08-04 20:28:42,963 - DEBUG - Requesting: http://10.0.0.48:8082/project/69233511-a798-4f05-a113-6651c9e42b44 2025-08-04 20:28:43,039 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/5dde6bf2-e3a6-4666-8535-a95876c2a693 2025-08-04 20:28:43,053 - INFO - Verified policy ctest-policy1-51413802 in API Server, Result: True 2025-08-04 20:28:43,053 - INFO - Done with setup and verification, moving onto test .. 2025-08-04 20:28:43,064 - INFO - Deleting VN ctest-vn4-39480855 2025-08-04 20:28:43,218 - DEBUG - Response for deleting network () 2025-08-04 20:28:43,218 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/50a13e1b-443c-4442-9c0e-b625c5e65837 2025-08-04 20:28:43,224 - DEBUG - Response Code: 404 2025-08-04 20:28:43,225 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-08-04 20:28:43,231 - DEBUG - Requesting: http://10.0.0.48:8082/domain/73e228f5-a7a2-4f40-8159-2a93bcb8ee57 2025-08-04 20:28:43,289 - DEBUG - Requesting: http://10.0.0.48:8082/project/69233511-a798-4f05-a113-6651c9e42b44 2025-08-04 20:28:43,370 - INFO - Validated that VN ctest-vn4-39480855 is not found in API Server 2025-08-04 20:28:43,385 - DEBUG - VN ctest-vn4-39480855 is not present in Agent 10.0.0.48 2025-08-04 20:28:43,385 - INFO - Validated that VN ctest-vn4-39480855 is not in any agent 2025-08-04 20:28:43,403 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-39480855 info 2025-08-04 20:28:43,437 - INFO - Deleted policy ctest-policy1-51413802 2025-08-04 20:28:43,613 - DEBUG - policy ctest-policy1-51413802 is not found in API Server 2025-08-04 20:28:43,869 - DEBUG - No XMPP flaps were noticed during the test