2026-09-22 13:04:42,849 - INFO - Domain Default found not creating 2026-09-22 13:04:43,072 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-61179884 not found, creating it 2026-09-22 13:04:43,601 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-61179884, ID : 7b21147e-d279-4f0c-972c-5e6f8430e8da 2026-09-22 13:04:45,494 - INFO - ================================================================================ 2026-09-22 13:04:45,494 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-22 13:04:45,774 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-09-22 13:04:45,774 - INFO - Initial checks done. Running the testcase now 2026-09-22 13:04:45,775 - INFO - 2026-09-22 13:04:45,775 - INFO - ================================================================================ 2026-09-22 13:04:45,775 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-22 13:04:45,775 - 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. 2026-09-22 13:04:46,070 - DEBUG - Nothing to compare xmpp stats {'10.0.0.161': {'10.20.0.17': '0'}} with 2026-09-22 13:04:46,070 - INFO - Initial checks done. Running the testcase now 2026-09-22 13:04:46,070 - INFO - 2026-09-22 13:04:46,530 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61179884:ctest-vn4-59155249, 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-61179884:ctest-vn4-59155249, 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-61179884:ctest-vn4-59155249, 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-61179884:ctest-vn4-59155249, 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] 2026-09-22 13:04:47,137 - DEBUG - Response for create_network : {'network': {'id': '63b298c5-2462-4307-9e72-37f28d647ef3', 'name': 'ctest-vn4-59155249', 'tenant_id': '7b21147ed2794f0c972c5e6f8430e8da', 'project_id': '7b21147ed2794f0c972c5e6f8430e8da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61179884', 'ctest-vn4-59155249'], 'port_security_enabled': True, 'description': ''}} 2026-09-22 13:04:47,356 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d0e5c7c-ca62-49cd-80da-3c3f0be2242a', 'name': '', 'tenant_id': '7b21147ed2794f0c972c5e6f8430e8da', 'network_id': '63b298c5-2462-4307-9e72-37f28d647ef3', 'ip_version': 4, 'cidr': '59.29.18.192/26', 'allocation_pools': [{'start': '59.29.18.194', 'end': '59.29.18.254'}], 'gateway_ip': '59.29.18.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.29.18.194', 'tags': [], 'project_id': '7b21147ed2794f0c972c5e6f8430e8da'}} 2026-09-22 13:04:47,578 - DEBUG - Response for create_subnet : {'subnet': {'id': '74a29c91-3883-4cab-bb48-32f33dfe7a3f', 'name': '', 'tenant_id': '7b21147ed2794f0c972c5e6f8430e8da', 'network_id': '63b298c5-2462-4307-9e72-37f28d647ef3', 'ip_version': 6, 'cidr': '34a0:2af6:f2b4:3eab:f384:bb70::/96', 'allocation_pools': [{'start': '34a0:2af6:f2b4:3eab:f384:bb70:0:2', 'end': '34a0:2af6:f2b4:3eab:f384:bb70:ffff:fffe'}], 'gateway_ip': '34a0:2af6:f2b4:3eab:f384:bb70:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34a0:2af6:f2b4:3eab:f384:bb70:0:2', 'tags': [], 'project_id': '7b21147ed2794f0c972c5e6f8430e8da'}} 2026-09-22 13:04:47,606 - INFO - Created VN ctest-vn4-59155249 2026-09-22 13:04:47,663 - DEBUG - VN ctest-vn4-59155249 UUID is 63b298c5-2462-4307-9e72-37f28d647ef3 2026-09-22 13:04:47,909 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '63b298c5-2462-4307-9e72-37f28d647ef3', 'name': 'ctest-vn4-59155249', 'tenant_id': '7b21147ed2794f0c972c5e6f8430e8da', 'project_id': '7b21147ed2794f0c972c5e6f8430e8da', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['5d0e5c7c-ca62-49cd-80da-3c3f0be2242a', '74a29c91-3883-4cab-bb48-32f33dfe7a3f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61179884', 'ctest-vn4-59155249'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61179884', 'ctest-policy1-57779236']], 'subnet_ipam': [{'subnet_cidr': '59.29.18.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34a0:2af6:f2b4:3eab:f384:bb70::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-22 13:04:48,079 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-22 13:04:48,450 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-22 13:04:48,485 - DEBUG - Requesting: http://10.0.0.161:8082/domain/52470d27-c64d-497f-8284-bebfa72a7bc7 2026-09-22 13:04:48,502 - DEBUG - Requesting: http://10.0.0.161:8082/project/7b21147e-d279-4f0c-972c-5e6f8430e8da 2026-09-22 13:04:48,582 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/63b298c5-2462-4307-9e72-37f28d647ef3 2026-09-22 13:04:48,598 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/63b298c5-2462-4307-9e72-37f28d647ef3 2026-09-22 13:04:48,612 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d36b7ce5-fb24-4f62-bf3e-2d8a7cc622bc 2026-09-22 13:04:48,622 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d36b7ce5-fb24-4f62-bf3e-2d8a7cc622bc 2026-09-22 13:04:48,631 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/7d933b20-ad28-467b-843d-da979f805acd 2026-09-22 13:04:48,640 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-22 13:04:48,640 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/63b298c5-2462-4307-9e72-37f28d647ef3 2026-09-22 13:04:48,654 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d36b7ce5-fb24-4f62-bf3e-2d8a7cc622bc 2026-09-22 13:04:48,674 - INFO - Verified VN network id 12 for VN 63b298c5-2462-4307-9e72-37f28d647ef3 2026-09-22 13:04:48,674 - INFO - Verifications in API Server for VN ctest-vn4-59155249 passed 2026-09-22 13:04:48,674 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/63b298c5-2462-4307-9e72-37f28d647ef3 2026-09-22 13:04:48,689 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d36b7ce5-fb24-4f62-bf3e-2d8a7cc622bc 2026-09-22 13:04:48,697 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d36b7ce5-fb24-4f62-bf3e-2d8a7cc622bc 2026-09-22 13:04:48,707 - DEBUG - Requesting: http://10.0.0.161:8082/route-target/7d933b20-ad28-467b-843d-da979f805acd 2026-09-22 13:04:48,722 - DEBUG - Control-node 10.0.0.161 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61179884:ctest-vn4-59155249', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-61179884', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7183972328095761159', 'uuid-lslong': '11417249520231415539'}, 'enable': 'true', 'created': '2026-09-22T13:04:47', 'last-modified': '2026-09-22T13:04:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.848212'} 2026-09-22 13:04:48,730 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-22 13:04:48,730 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-59155249 passed 2026-09-22 13:04:48,730 - DEBUG - ====Verifying policy data for ctest-vn4-59155249 in API_Server ====== 2026-09-22 13:04:48,730 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-22 13:04:48,738 - DEBUG - Requesting: http://10.0.0.161:8082/domain/52470d27-c64d-497f-8284-bebfa72a7bc7 2026-09-22 13:04:48,754 - DEBUG - Requesting: http://10.0.0.161:8082/project/7b21147e-d279-4f0c-972c-5e6f8430e8da 2026-09-22 13:04:48,839 - DEBUG - Requesting: http://10.0.0.161:8082/virtual-network/63b298c5-2462-4307-9e72-37f28d647ef3 2026-09-22 13:04:48,852 - DEBUG - ==>Verifying data for policy with id: df996e16-69ba-49e7-8a70-f836b1a92b09, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61179884', 'ctest-policy1-57779236'] 2026-09-22 13:04:48,852 - INFO - VN ctest-vn4-59155249 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-22 13:04:48,852 - DEBUG - Verifying the vn in opserver 2026-09-22 13:04:48,852 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61179884:ctest-vn4-59155249 virtual network link through opserver 10.0.0.161 2026-09-22 13:04:48,852 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-22 13:04:49,236 - DEBUG - Requesting: http://10.0.0.161:8081/analytics/uves/virtual-networks 2026-09-22 13:04:49,306 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61179884:ctest-vn4-59155249', 'href': 'http://10.0.0.161:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61179884:ctest-vn4-59155249?flat'} 2026-09-22 13:04:49,306 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61179884:ctest-vn4-59155249 is found in opserver 2026-09-22 13:04:49,321 - DEBUG - Do not have enough data to verify VN in agent 2026-09-22 13:04:49,329 - DEBUG - VRF ids for VN ctest-vn4-59155249: {} 2026-09-22 13:04:49,329 - DEBUG - ====Verifying data for ctest-policy1-57779236 in API_Server ====== 2026-09-22 13:04:49,330 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-22 13:04:49,377 - DEBUG - Requesting: http://10.0.0.161:8082/domain/52470d27-c64d-497f-8284-bebfa72a7bc7 2026-09-22 13:04:49,391 - DEBUG - Requesting: http://10.0.0.161:8082/project/7b21147e-d279-4f0c-972c-5e6f8430e8da 2026-09-22 13:04:49,474 - DEBUG - Requesting: http://10.0.0.161:8082/network-policy/df996e16-69ba-49e7-8a70-f836b1a92b09 2026-09-22 13:04:49,488 - INFO - Verified policy ctest-policy1-57779236 in API Server, Result: True 2026-09-22 13:04:49,488 - INFO - Done with setup and verification, moving onto test .. 2026-09-22 13:04:49,498 - INFO - Deleting VN ctest-vn4-59155249 2026-09-22 13:04:49,660 - DEBUG - Response for deleting network () 2026-09-22 13:04:49,660 - DEBUG - Requesting: http://10.0.0.161:8082/routing-instance/d36b7ce5-fb24-4f62-bf3e-2d8a7cc622bc 2026-09-22 13:04:49,667 - DEBUG - Response Code: 404 2026-09-22 13:04:49,667 - DEBUG - Requesting: http://10.0.0.161:8082/domains 2026-09-22 13:04:49,675 - DEBUG - Requesting: http://10.0.0.161:8082/domain/52470d27-c64d-497f-8284-bebfa72a7bc7 2026-09-22 13:04:49,733 - DEBUG - Requesting: http://10.0.0.161:8082/project/7b21147e-d279-4f0c-972c-5e6f8430e8da 2026-09-22 13:04:49,815 - INFO - Validated that VN ctest-vn4-59155249 is not found in API Server 2026-09-22 13:04:49,829 - DEBUG - VN ctest-vn4-59155249 is not present in Agent 10.0.0.161 2026-09-22 13:04:49,829 - INFO - Validated that VN ctest-vn4-59155249 is not in any agent 2026-09-22 13:04:49,850 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-59155249 info 2026-09-22 13:04:49,883 - INFO - Deleted policy ctest-policy1-57779236 2026-09-22 13:04:50,075 - DEBUG - policy ctest-policy1-57779236 is not found in API Server 2026-09-22 13:04:50,358 - DEBUG - No XMPP flaps were noticed during the test
2026-09-22 13:04:50,358 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-22 13:04:50,358 - INFO - -------------------------------------------------------------------------------- 2026-09-22 13:04:50,657 - DEBUG - No XMPP flaps were noticed during the test
2026-09-22 13:04:50,657 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-09-22 13:04:50,657 - INFO - -------------------------------------------------------------------------------- 2026-09-22 13:04:51,451 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-61179884, ID : 7b21147e-d279-4f0c-972c-5e6f8430e8da