2025-10-24 19:52:23,786 - INFO - Domain Default found not creating 2025-10-24 19:52:24,051 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-58907084 not found, creating it 2025-10-24 19:52:24,713 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-58907084, ID : f77c43e8-8894-416e-beab-a21196c8f0c7 2025-10-24 19:52:26,591 - INFO - ================================================================================ 2025-10-24 19:52:26,592 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-24 19:52:26,909 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-24 19:52:26,909 - INFO - Initial checks done. Running the testcase now 2025-10-24 19:52:26,909 - INFO - 2025-10-24 19:52:26,909 - INFO - ================================================================================ 2025-10-24 19:52:26,909 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-24 19:52:26,909 - 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-10-24 19:52:27,247 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-24 19:52:27,247 - INFO - Initial checks done. Running the testcase now 2025-10-24 19:52:27,247 - INFO - 2025-10-24 19:52:27,785 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58907084:ctest-vn4-25028817, 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-58907084:ctest-vn4-25028817, 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-58907084:ctest-vn4-25028817, 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-58907084:ctest-vn4-25028817, 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-10-24 19:52:28,439 - DEBUG - Response for create_network : {'network': {'id': '07e2a79e-1f96-47d7-8525-728ae61d474a', 'name': 'ctest-vn4-25028817', 'tenant_id': 'f77c43e88894416ebeaba21196c8f0c7', 'project_id': 'f77c43e88894416ebeaba21196c8f0c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58907084', 'ctest-vn4-25028817'], 'port_security_enabled': True, 'description': ''}} 2025-10-24 19:52:28,759 - DEBUG - Response for create_subnet : {'subnet': {'id': '66f58305-6d45-4f36-9127-b810c58d5189', 'name': '', 'tenant_id': 'f77c43e88894416ebeaba21196c8f0c7', 'network_id': '07e2a79e-1f96-47d7-8525-728ae61d474a', 'ip_version': 4, 'cidr': '50.95.145.128/26', 'allocation_pools': [{'start': '50.95.145.130', 'end': '50.95.145.190'}], 'gateway_ip': '50.95.145.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '50.95.145.130', 'tags': [], 'project_id': 'f77c43e88894416ebeaba21196c8f0c7'}} 2025-10-24 19:52:28,984 - DEBUG - Response for create_subnet : {'subnet': {'id': '6f6b8c11-2a76-45f9-9c11-28be377cac5c', 'name': '', 'tenant_id': 'f77c43e88894416ebeaba21196c8f0c7', 'network_id': '07e2a79e-1f96-47d7-8525-728ae61d474a', 'ip_version': 6, 'cidr': '389b:a017:3a4d:7832:4c39:dcb6::/96', 'allocation_pools': [{'start': '389b:a017:3a4d:7832:4c39:dcb6:0:2', 'end': '389b:a017:3a4d:7832:4c39:dcb6:ffff:fffe'}], 'gateway_ip': '389b:a017:3a4d:7832:4c39:dcb6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '389b:a017:3a4d:7832:4c39:dcb6:0:2', 'tags': [], 'project_id': 'f77c43e88894416ebeaba21196c8f0c7'}} 2025-10-24 19:52:29,009 - INFO - Created VN ctest-vn4-25028817 2025-10-24 19:52:29,066 - DEBUG - VN ctest-vn4-25028817 UUID is 07e2a79e-1f96-47d7-8525-728ae61d474a 2025-10-24 19:52:29,343 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07e2a79e-1f96-47d7-8525-728ae61d474a', 'name': 'ctest-vn4-25028817', 'tenant_id': 'f77c43e88894416ebeaba21196c8f0c7', 'project_id': 'f77c43e88894416ebeaba21196c8f0c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['66f58305-6d45-4f36-9127-b810c58d5189', '6f6b8c11-2a76-45f9-9c11-28be377cac5c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58907084', 'ctest-vn4-25028817'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58907084', 'ctest-policy1-60436197']], 'subnet_ipam': [{'subnet_cidr': '50.95.145.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '389b:a017:3a4d:7832:4c39:dcb6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-24 19:52:29,534 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-24 19:52:29,856 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-24 19:52:29,895 - DEBUG - Requesting: http://10.0.0.38:8082/domain/68ae4022-3de6-45d7-988b-c83042729b8e 2025-10-24 19:52:29,911 - DEBUG - Requesting: http://10.0.0.38:8082/project/f77c43e8-8894-416e-beab-a21196c8f0c7 2025-10-24 19:52:29,995 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/07e2a79e-1f96-47d7-8525-728ae61d474a 2025-10-24 19:52:30,008 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/07e2a79e-1f96-47d7-8525-728ae61d474a 2025-10-24 19:52:30,022 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/63d138b1-4aaf-49f4-bc7b-da8240363143 2025-10-24 19:52:30,031 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/63d138b1-4aaf-49f4-bc7b-da8240363143 2025-10-24 19:52:30,039 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9bf3ede7-8c03-4c76-8a1d-a18370ea62ea 2025-10-24 19:52:30,046 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-24 19:52:30,046 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/07e2a79e-1f96-47d7-8525-728ae61d474a 2025-10-24 19:52:30,056 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/63d138b1-4aaf-49f4-bc7b-da8240363143 2025-10-24 19:52:30,130 - INFO - Verified VN network id 11 for VN 07e2a79e-1f96-47d7-8525-728ae61d474a 2025-10-24 19:52:30,130 - INFO - Verifications in API Server for VN ctest-vn4-25028817 passed 2025-10-24 19:52:30,130 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/07e2a79e-1f96-47d7-8525-728ae61d474a 2025-10-24 19:52:30,142 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/63d138b1-4aaf-49f4-bc7b-da8240363143 2025-10-24 19:52:30,149 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/63d138b1-4aaf-49f4-bc7b-da8240363143 2025-10-24 19:52:30,159 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9bf3ede7-8c03-4c76-8a1d-a18370ea62ea 2025-10-24 19:52:30,186 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58907084:ctest-vn4-25028817', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58907084', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '568200800578717655', 'uuid-lslong': '9594200522074441546'}, 'enable': 'true', 'created': '2025-10-24T19:52:28', 'last-modified': '2025-10-24T19:52:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.872602'} 2025-10-24 19:52:30,195 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-24 19:52:30,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25028817 passed 2025-10-24 19:52:30,195 - DEBUG - ====Verifying policy data for ctest-vn4-25028817 in API_Server ====== 2025-10-24 19:52:30,195 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-24 19:52:30,202 - DEBUG - Requesting: http://10.0.0.38:8082/domain/68ae4022-3de6-45d7-988b-c83042729b8e 2025-10-24 19:52:30,216 - DEBUG - Requesting: http://10.0.0.38:8082/project/f77c43e8-8894-416e-beab-a21196c8f0c7 2025-10-24 19:52:30,307 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/07e2a79e-1f96-47d7-8525-728ae61d474a 2025-10-24 19:52:30,322 - DEBUG - ==>Verifying data for policy with id: a72f6cf4-91c6-48fa-a2a9-2b537c9a31c6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58907084', 'ctest-policy1-60436197'] 2025-10-24 19:52:30,322 - INFO - VN ctest-vn4-25028817 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-24 19:52:30,322 - DEBUG - Verifying the vn in opserver 2025-10-24 19:52:30,322 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58907084:ctest-vn4-25028817 virtual network link through opserver 10.0.0.38 2025-10-24 19:52:30,323 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-24 19:52:30,625 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-24 19:52:30,741 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58907084:ctest-vn4-25028817', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58907084:ctest-vn4-25028817?flat'} 2025-10-24 19:52:30,742 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58907084:ctest-vn4-25028817 is found in opserver 2025-10-24 19:52:30,757 - DEBUG - Do not have enough data to verify VN in agent 2025-10-24 19:52:30,763 - DEBUG - VRF ids for VN ctest-vn4-25028817: {} 2025-10-24 19:52:30,764 - DEBUG - ====Verifying data for ctest-policy1-60436197 in API_Server ====== 2025-10-24 19:52:30,764 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-24 19:52:30,770 - DEBUG - Requesting: http://10.0.0.38:8082/domain/68ae4022-3de6-45d7-988b-c83042729b8e 2025-10-24 19:52:30,785 - DEBUG - Requesting: http://10.0.0.38:8082/project/f77c43e8-8894-416e-beab-a21196c8f0c7 2025-10-24 19:52:30,869 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/a72f6cf4-91c6-48fa-a2a9-2b537c9a31c6 2025-10-24 19:52:30,882 - INFO - Verified policy ctest-policy1-60436197 in API Server, Result: True 2025-10-24 19:52:30,883 - INFO - Done with setup and verification, moving onto test .. 2025-10-24 19:52:30,891 - INFO - Deleting VN ctest-vn4-25028817 2025-10-24 19:52:31,009 - DEBUG - Response for deleting network () 2025-10-24 19:52:31,010 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/63d138b1-4aaf-49f4-bc7b-da8240363143 2025-10-24 19:52:31,014 - DEBUG - Response Code: 404 2025-10-24 19:52:31,014 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-24 19:52:31,019 - DEBUG - Requesting: http://10.0.0.38:8082/domain/68ae4022-3de6-45d7-988b-c83042729b8e 2025-10-24 19:52:31,071 - DEBUG - Requesting: http://10.0.0.38:8082/project/f77c43e8-8894-416e-beab-a21196c8f0c7 2025-10-24 19:52:31,146 - INFO - Validated that VN ctest-vn4-25028817 is not found in API Server 2025-10-24 19:52:31,157 - DEBUG - VN ctest-vn4-25028817 is not present in Agent 10.0.0.38 2025-10-24 19:52:31,157 - INFO - Validated that VN ctest-vn4-25028817 is not in any agent 2025-10-24 19:52:31,175 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25028817 info 2025-10-24 19:52:31,207 - INFO - Deleted policy ctest-policy1-60436197 2025-10-24 19:52:31,389 - DEBUG - policy ctest-policy1-60436197 is not found in API Server 2025-10-24 19:52:31,713 - DEBUG - No XMPP flaps were noticed during the test