2025-10-09 11:17:26,675 - INFO - Domain Default found not creating 2025-10-09 11:17:26,846 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74450061 not found, creating it 2025-10-09 11:17:27,295 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74450061, ID : 06d23323-223d-42c2-83ad-76787fca8f67 2025-10-09 11:17:28,766 - INFO - ================================================================================ 2025-10-09 11:17:28,767 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 11:17:29,021 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-09 11:17:29,021 - INFO - Initial checks done. Running the testcase now 2025-10-09 11:17:29,021 - INFO - 2025-10-09 11:17:29,021 - INFO - ================================================================================ 2025-10-09 11:17:29,021 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 11:17:29,021 - 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-09 11:17:29,331 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-09 11:17:29,331 - INFO - Initial checks done. Running the testcase now 2025-10-09 11:17:29,331 - INFO - 2025-10-09 11:17:29,680 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74450061:ctest-vn4-18315926, 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-74450061:ctest-vn4-18315926, 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-74450061:ctest-vn4-18315926, 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-74450061:ctest-vn4-18315926, 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-09 11:17:30,207 - DEBUG - Response for create_network : {'network': {'id': '4ab731e5-1810-4e2f-a5cc-7e3bb09f26a2', 'name': 'ctest-vn4-18315926', 'tenant_id': '06d23323223d42c283ad76787fca8f67', 'project_id': '06d23323223d42c283ad76787fca8f67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74450061', 'ctest-vn4-18315926'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 11:17:30,444 - DEBUG - Response for create_subnet : {'subnet': {'id': '5045a512-872b-487b-99e8-a5a36d3409fa', 'name': '', 'tenant_id': '06d23323223d42c283ad76787fca8f67', 'network_id': '4ab731e5-1810-4e2f-a5cc-7e3bb09f26a2', 'ip_version': 4, 'cidr': '170.165.172.0/26', 'allocation_pools': [{'start': '170.165.172.2', 'end': '170.165.172.62'}], 'gateway_ip': '170.165.172.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.165.172.2', 'tags': [], 'project_id': '06d23323223d42c283ad76787fca8f67'}} 2025-10-09 11:17:30,652 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d3753fa-60c9-406d-82e8-c6c5f4f480dc', 'name': '', 'tenant_id': '06d23323223d42c283ad76787fca8f67', 'network_id': '4ab731e5-1810-4e2f-a5cc-7e3bb09f26a2', 'ip_version': 6, 'cidr': '3ea1:1d8a:81fc:22e4:a38d:a676::/96', 'allocation_pools': [{'start': '3ea1:1d8a:81fc:22e4:a38d:a676:0:2', 'end': '3ea1:1d8a:81fc:22e4:a38d:a676:ffff:fffe'}], 'gateway_ip': '3ea1:1d8a:81fc:22e4:a38d:a676:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ea1:1d8a:81fc:22e4:a38d:a676:0:2', 'tags': [], 'project_id': '06d23323223d42c283ad76787fca8f67'}} 2025-10-09 11:17:30,672 - INFO - Created VN ctest-vn4-18315926 2025-10-09 11:17:30,724 - DEBUG - VN ctest-vn4-18315926 UUID is 4ab731e5-1810-4e2f-a5cc-7e3bb09f26a2 2025-10-09 11:17:30,923 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4ab731e5-1810-4e2f-a5cc-7e3bb09f26a2', 'name': 'ctest-vn4-18315926', 'tenant_id': '06d23323223d42c283ad76787fca8f67', 'project_id': '06d23323223d42c283ad76787fca8f67', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5045a512-872b-487b-99e8-a5a36d3409fa', '0d3753fa-60c9-406d-82e8-c6c5f4f480dc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74450061', 'ctest-vn4-18315926'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74450061', 'ctest-policy1-92348080']], 'subnet_ipam': [{'subnet_cidr': '170.165.172.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ea1:1d8a:81fc:22e4:a38d:a676::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 11:17:31,076 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 11:17:31,370 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 11:17:31,401 - DEBUG - Requesting: http://10.0.0.33:8082/domain/286565b9-1d7c-4b77-a6b8-f3c3c9c83afd 2025-10-09 11:17:31,414 - DEBUG - Requesting: http://10.0.0.33:8082/project/06d23323-223d-42c2-83ad-76787fca8f67 2025-10-09 11:17:31,495 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ab731e5-1810-4e2f-a5cc-7e3bb09f26a2 2025-10-09 11:17:31,507 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ab731e5-1810-4e2f-a5cc-7e3bb09f26a2 2025-10-09 11:17:31,518 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/47ccb84b-159d-4d9a-86a9-a89cbe239a0d 2025-10-09 11:17:31,525 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/47ccb84b-159d-4d9a-86a9-a89cbe239a0d 2025-10-09 11:17:31,532 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4595f57c-6c62-46b6-9d25-abef48ea48e9 2025-10-09 11:17:31,538 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 11:17:31,538 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ab731e5-1810-4e2f-a5cc-7e3bb09f26a2 2025-10-09 11:17:31,548 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/47ccb84b-159d-4d9a-86a9-a89cbe239a0d 2025-10-09 11:17:31,562 - INFO - Verified VN network id 11 for VN 4ab731e5-1810-4e2f-a5cc-7e3bb09f26a2 2025-10-09 11:17:31,562 - INFO - Verifications in API Server for VN ctest-vn4-18315926 passed 2025-10-09 11:17:31,562 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ab731e5-1810-4e2f-a5cc-7e3bb09f26a2 2025-10-09 11:17:31,572 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/47ccb84b-159d-4d9a-86a9-a89cbe239a0d 2025-10-09 11:17:31,580 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/47ccb84b-159d-4d9a-86a9-a89cbe239a0d 2025-10-09 11:17:31,587 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4595f57c-6c62-46b6-9d25-abef48ea48e9 2025-10-09 11:17:31,599 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74450061:ctest-vn4-18315926', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74450061', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5383826739565710895', 'uuid-lslong': '11947062706338473634'}, 'enable': 'true', 'created': '2025-10-09T11:17:30', 'last-modified': '2025-10-09T11:17:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.705072'} 2025-10-09 11:17:31,604 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 11:17:31,604 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-18315926 passed 2025-10-09 11:17:31,605 - DEBUG - ====Verifying policy data for ctest-vn4-18315926 in API_Server ====== 2025-10-09 11:17:31,605 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 11:17:31,611 - DEBUG - Requesting: http://10.0.0.33:8082/domain/286565b9-1d7c-4b77-a6b8-f3c3c9c83afd 2025-10-09 11:17:31,621 - DEBUG - Requesting: http://10.0.0.33:8082/project/06d23323-223d-42c2-83ad-76787fca8f67 2025-10-09 11:17:31,695 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/4ab731e5-1810-4e2f-a5cc-7e3bb09f26a2 2025-10-09 11:17:31,705 - DEBUG - ==>Verifying data for policy with id: 4c71ee86-85f7-4112-affc-d9283410ea46, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74450061', 'ctest-policy1-92348080'] 2025-10-09 11:17:31,705 - INFO - VN ctest-vn4-18315926 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 11:17:31,705 - DEBUG - Verifying the vn in opserver 2025-10-09 11:17:31,705 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74450061:ctest-vn4-18315926 virtual network link through opserver 10.0.0.33 2025-10-09 11:17:31,705 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 11:17:32,006 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 11:17:32,064 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74450061:ctest-vn4-18315926', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74450061:ctest-vn4-18315926?flat'} 2025-10-09 11:17:32,064 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74450061:ctest-vn4-18315926 is found in opserver 2025-10-09 11:17:32,074 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 11:17:32,078 - DEBUG - VRF ids for VN ctest-vn4-18315926: {} 2025-10-09 11:17:32,078 - DEBUG - ====Verifying data for ctest-policy1-92348080 in API_Server ====== 2025-10-09 11:17:32,078 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 11:17:32,084 - DEBUG - Requesting: http://10.0.0.33:8082/domain/286565b9-1d7c-4b77-a6b8-f3c3c9c83afd 2025-10-09 11:17:32,094 - DEBUG - Requesting: http://10.0.0.33:8082/project/06d23323-223d-42c2-83ad-76787fca8f67 2025-10-09 11:17:32,159 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/4c71ee86-85f7-4112-affc-d9283410ea46 2025-10-09 11:17:32,168 - INFO - Verified policy ctest-policy1-92348080 in API Server, Result: True 2025-10-09 11:17:32,168 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 11:17:32,176 - INFO - Deleting VN ctest-vn4-18315926 2025-10-09 11:17:32,376 - DEBUG - Response for deleting network () 2025-10-09 11:17:32,376 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/47ccb84b-159d-4d9a-86a9-a89cbe239a0d 2025-10-09 11:17:32,381 - DEBUG - Response Code: 404 2025-10-09 11:17:32,381 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 11:17:32,387 - DEBUG - Requesting: http://10.0.0.33:8082/domain/286565b9-1d7c-4b77-a6b8-f3c3c9c83afd 2025-10-09 11:17:32,441 - DEBUG - Requesting: http://10.0.0.33:8082/project/06d23323-223d-42c2-83ad-76787fca8f67 2025-10-09 11:17:32,510 - INFO - Validated that VN ctest-vn4-18315926 is not found in API Server 2025-10-09 11:17:32,520 - DEBUG - VN ctest-vn4-18315926 is not present in Agent 10.0.0.33 2025-10-09 11:17:32,520 - INFO - Validated that VN ctest-vn4-18315926 is not in any agent 2025-10-09 11:17:32,533 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-18315926 info 2025-10-09 11:17:32,558 - INFO - Deleted policy ctest-policy1-92348080 2025-10-09 11:17:32,724 - DEBUG - policy ctest-policy1-92348080 is not found in API Server 2025-10-09 11:17:32,981 - DEBUG - No XMPP flaps were noticed during the test