2025-10-21 21:52:11,176 - INFO - Domain Default found not creating 2025-10-21 21:52:11,316 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-32785389 not found, creating it 2025-10-21 21:52:11,762 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-32785389, ID : 2b0637ff-e664-4894-b46f-374e0752ae96 2025-10-21 21:52:13,261 - INFO - ================================================================================ 2025-10-21 21:52:13,262 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 21:52:13,516 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-21 21:52:13,516 - INFO - Initial checks done. Running the testcase now 2025-10-21 21:52:13,516 - INFO - 2025-10-21 21:52:13,516 - INFO - ================================================================================ 2025-10-21 21:52:13,516 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-21 21:52:13,516 - 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-21 21:52:13,808 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-21 21:52:13,808 - INFO - Initial checks done. Running the testcase now 2025-10-21 21:52:13,808 - INFO - 2025-10-21 21:52:14,205 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32785389:ctest-vn4-49671854, 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-32785389:ctest-vn4-49671854, 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-32785389:ctest-vn4-49671854, 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-32785389:ctest-vn4-49671854, 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-21 21:52:14,726 - DEBUG - Response for create_network : {'network': {'id': '03954470-d64d-49b7-9f78-7980af507327', 'name': 'ctest-vn4-49671854', 'tenant_id': '2b0637ffe6644894b46f374e0752ae96', 'project_id': '2b0637ffe6644894b46f374e0752ae96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32785389', 'ctest-vn4-49671854'], 'port_security_enabled': True, 'description': ''}} 2025-10-21 21:52:14,911 - DEBUG - Response for create_subnet : {'subnet': {'id': '27960319-e69d-4387-88cd-113822dfdf26', 'name': '', 'tenant_id': '2b0637ffe6644894b46f374e0752ae96', 'network_id': '03954470-d64d-49b7-9f78-7980af507327', 'ip_version': 4, 'cidr': '194.62.19.128/26', 'allocation_pools': [{'start': '194.62.19.130', 'end': '194.62.19.190'}], 'gateway_ip': '194.62.19.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.62.19.130', 'tags': [], 'project_id': '2b0637ffe6644894b46f374e0752ae96'}} 2025-10-21 21:52:15,114 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f40d969d-2d2d-4d85-ae2b-37a4fc79dcd8', 'name': '', 'tenant_id': '2b0637ffe6644894b46f374e0752ae96', 'network_id': '03954470-d64d-49b7-9f78-7980af507327', 'ip_version': 6, 'cidr': '214f:6551:7b09:d2df:10b4:2a64::/96', 'allocation_pools': [{'start': '214f:6551:7b09:d2df:10b4:2a64:0:2', 'end': '214f:6551:7b09:d2df:10b4:2a64:ffff:fffe'}], 'gateway_ip': '214f:6551:7b09:d2df:10b4:2a64:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '214f:6551:7b09:d2df:10b4:2a64:0:2', 'tags': [], 'project_id': '2b0637ffe6644894b46f374e0752ae96'}} 2025-10-21 21:52:15,135 - INFO - Created VN ctest-vn4-49671854 2025-10-21 21:52:15,193 - DEBUG - VN ctest-vn4-49671854 UUID is 03954470-d64d-49b7-9f78-7980af507327 2025-10-21 21:52:15,384 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03954470-d64d-49b7-9f78-7980af507327', 'name': 'ctest-vn4-49671854', 'tenant_id': '2b0637ffe6644894b46f374e0752ae96', 'project_id': '2b0637ffe6644894b46f374e0752ae96', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['27960319-e69d-4387-88cd-113822dfdf26', 'f40d969d-2d2d-4d85-ae2b-37a4fc79dcd8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32785389', 'ctest-vn4-49671854'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32785389', 'ctest-policy1-86381432']], 'subnet_ipam': [{'subnet_cidr': '194.62.19.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '214f:6551:7b09:d2df:10b4:2a64::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-21 21:52:15,541 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 21:52:15,831 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 21:52:15,928 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cf6fe96a-400e-47b0-a856-71959da330b0 2025-10-21 21:52:15,940 - DEBUG - Requesting: http://10.0.0.38:8082/project/2b0637ff-e664-4894-b46f-374e0752ae96 2025-10-21 21:52:16,013 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03954470-d64d-49b7-9f78-7980af507327 2025-10-21 21:52:16,024 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03954470-d64d-49b7-9f78-7980af507327 2025-10-21 21:52:16,033 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e7d6e83-20e1-429b-a62c-eb1bfd5a797d 2025-10-21 21:52:16,039 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e7d6e83-20e1-429b-a62c-eb1bfd5a797d 2025-10-21 21:52:16,046 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e93b2fe5-53ea-49ca-9d7d-7dfcd2db24da 2025-10-21 21:52:16,052 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 21:52:16,052 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03954470-d64d-49b7-9f78-7980af507327 2025-10-21 21:52:16,060 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e7d6e83-20e1-429b-a62c-eb1bfd5a797d 2025-10-21 21:52:16,072 - INFO - Verified VN network id 11 for VN 03954470-d64d-49b7-9f78-7980af507327 2025-10-21 21:52:16,072 - INFO - Verifications in API Server for VN ctest-vn4-49671854 passed 2025-10-21 21:52:16,072 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03954470-d64d-49b7-9f78-7980af507327 2025-10-21 21:52:16,080 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e7d6e83-20e1-429b-a62c-eb1bfd5a797d 2025-10-21 21:52:16,085 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e7d6e83-20e1-429b-a62c-eb1bfd5a797d 2025-10-21 21:52:16,090 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/e93b2fe5-53ea-49ca-9d7d-7dfcd2db24da 2025-10-21 21:52:16,099 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32785389:ctest-vn4-49671854', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32785389', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '258187805066086839', 'uuid-lslong': '11491068042839880487'}, 'enable': 'true', 'created': '2025-10-21T21:52:14', 'last-modified': '2025-10-21T21:52:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.745488'} 2025-10-21 21:52:16,105 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-21 21:52:16,105 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49671854 passed 2025-10-21 21:52:16,105 - DEBUG - ====Verifying policy data for ctest-vn4-49671854 in API_Server ====== 2025-10-21 21:52:16,105 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 21:52:16,110 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cf6fe96a-400e-47b0-a856-71959da330b0 2025-10-21 21:52:16,120 - DEBUG - Requesting: http://10.0.0.38:8082/project/2b0637ff-e664-4894-b46f-374e0752ae96 2025-10-21 21:52:16,190 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/03954470-d64d-49b7-9f78-7980af507327 2025-10-21 21:52:16,198 - DEBUG - ==>Verifying data for policy with id: 5f416c47-8847-4324-b40c-5bf37701edf1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32785389', 'ctest-policy1-86381432'] 2025-10-21 21:52:16,198 - INFO - VN ctest-vn4-49671854 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-21 21:52:16,198 - DEBUG - Verifying the vn in opserver 2025-10-21 21:52:16,198 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32785389:ctest-vn4-49671854 virtual network link through opserver 10.0.0.38 2025-10-21 21:52:16,198 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-21 21:52:16,486 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-21 21:52:16,563 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32785389:ctest-vn4-49671854', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32785389:ctest-vn4-49671854?flat'} 2025-10-21 21:52:16,563 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32785389:ctest-vn4-49671854 is found in opserver 2025-10-21 21:52:16,572 - DEBUG - Do not have enough data to verify VN in agent 2025-10-21 21:52:16,576 - DEBUG - VRF ids for VN ctest-vn4-49671854: {} 2025-10-21 21:52:16,577 - DEBUG - ====Verifying data for ctest-policy1-86381432 in API_Server ====== 2025-10-21 21:52:16,577 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 21:52:16,582 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cf6fe96a-400e-47b0-a856-71959da330b0 2025-10-21 21:52:16,591 - DEBUG - Requesting: http://10.0.0.38:8082/project/2b0637ff-e664-4894-b46f-374e0752ae96 2025-10-21 21:52:16,664 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/5f416c47-8847-4324-b40c-5bf37701edf1 2025-10-21 21:52:16,673 - INFO - Verified policy ctest-policy1-86381432 in API Server, Result: True 2025-10-21 21:52:16,673 - INFO - Done with setup and verification, moving onto test .. 2025-10-21 21:52:16,680 - INFO - Deleting VN ctest-vn4-49671854 2025-10-21 21:52:16,801 - DEBUG - Response for deleting network () 2025-10-21 21:52:16,801 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/8e7d6e83-20e1-429b-a62c-eb1bfd5a797d 2025-10-21 21:52:16,807 - DEBUG - Response Code: 404 2025-10-21 21:52:16,807 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-21 21:52:16,815 - DEBUG - Requesting: http://10.0.0.38:8082/domain/cf6fe96a-400e-47b0-a856-71959da330b0 2025-10-21 21:52:16,871 - DEBUG - Requesting: http://10.0.0.38:8082/project/2b0637ff-e664-4894-b46f-374e0752ae96 2025-10-21 21:52:16,945 - INFO - Validated that VN ctest-vn4-49671854 is not found in API Server 2025-10-21 21:52:16,954 - DEBUG - VN ctest-vn4-49671854 is not present in Agent 10.0.0.38 2025-10-21 21:52:16,954 - INFO - Validated that VN ctest-vn4-49671854 is not in any agent 2025-10-21 21:52:16,969 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49671854 info 2025-10-21 21:52:16,988 - INFO - Deleted policy ctest-policy1-86381432 2025-10-21 21:52:17,144 - DEBUG - policy ctest-policy1-86381432 is not found in API Server 2025-10-21 21:52:17,398 - DEBUG - No XMPP flaps were noticed during the test
2025-10-21 21:52:17,398 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-21 21:52:17,398 - INFO - -------------------------------------------------------------------------------- 2025-10-21 21:52:17,698 - DEBUG - No XMPP flaps were noticed during the test
2025-10-21 21:52:17,698 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-21 21:52:17,698 - INFO - -------------------------------------------------------------------------------- 2025-10-21 21:52:18,398 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-32785389, ID : 2b0637ff-e664-4894-b46f-374e0752ae96