2026-05-25 02:06:25,144 - INFO - Domain Default found not creating 2026-05-25 02:06:25,297 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-81753911 not found, creating it 2026-05-25 02:06:25,733 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-81753911, ID : 9ad73a78-0da1-4e43-b32c-1e3da23ceea5 2026-05-25 02:06:27,134 - INFO - ================================================================================ 2026-05-25 02:06:27,134 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-25 02:06:27,390 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.201': '0'}} with 2026-05-25 02:06:27,390 - INFO - Initial checks done. Running the testcase now 2026-05-25 02:06:27,390 - INFO - 2026-05-25 02:06:27,390 - INFO - ================================================================================ 2026-05-25 02:06:27,390 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-05-25 02:06:27,390 - 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-05-25 02:06:27,678 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.201': '0'}} with 2026-05-25 02:06:27,678 - INFO - Initial checks done. Running the testcase now 2026-05-25 02:06:27,678 - INFO - 2026-05-25 02:06:28,028 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81753911:ctest-vn4-06155875, 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-81753911:ctest-vn4-06155875, 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-81753911:ctest-vn4-06155875, 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-81753911:ctest-vn4-06155875, 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-05-25 02:06:28,518 - DEBUG - Response for create_network : {'network': {'id': '7d67cfbe-c3e4-4a18-8d45-b05ab35f6445', 'name': 'ctest-vn4-06155875', 'tenant_id': '9ad73a780da14e43b32c1e3da23ceea5', 'project_id': '9ad73a780da14e43b32c1e3da23ceea5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81753911', 'ctest-vn4-06155875'], 'port_security_enabled': True, 'description': ''}} 2026-05-25 02:06:28,711 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9925af0-483d-460c-844c-0ced49e3698c', 'name': '', 'tenant_id': '9ad73a780da14e43b32c1e3da23ceea5', 'network_id': '7d67cfbe-c3e4-4a18-8d45-b05ab35f6445', 'ip_version': 4, 'cidr': '145.48.233.0/26', 'allocation_pools': [{'start': '145.48.233.2', 'end': '145.48.233.62'}], 'gateway_ip': '145.48.233.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.48.233.2', 'tags': [], 'project_id': '9ad73a780da14e43b32c1e3da23ceea5'}} 2026-05-25 02:06:28,906 - DEBUG - Response for create_subnet : {'subnet': {'id': '3683b616-fab3-4d63-9dac-bda0f535d2d1', 'name': '', 'tenant_id': '9ad73a780da14e43b32c1e3da23ceea5', 'network_id': '7d67cfbe-c3e4-4a18-8d45-b05ab35f6445', 'ip_version': 6, 'cidr': '2ba9:d20e:ae4f:aef0:e9af:5028::/96', 'allocation_pools': [{'start': '2ba9:d20e:ae4f:aef0:e9af:5028:0:2', 'end': '2ba9:d20e:ae4f:aef0:e9af:5028:ffff:fffe'}], 'gateway_ip': '2ba9:d20e:ae4f:aef0:e9af:5028:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ba9:d20e:ae4f:aef0:e9af:5028:0:2', 'tags': [], 'project_id': '9ad73a780da14e43b32c1e3da23ceea5'}} 2026-05-25 02:06:28,925 - INFO - Created VN ctest-vn4-06155875 2026-05-25 02:06:28,977 - DEBUG - VN ctest-vn4-06155875 UUID is 7d67cfbe-c3e4-4a18-8d45-b05ab35f6445 2026-05-25 02:06:29,171 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7d67cfbe-c3e4-4a18-8d45-b05ab35f6445', 'name': 'ctest-vn4-06155875', 'tenant_id': '9ad73a780da14e43b32c1e3da23ceea5', 'project_id': '9ad73a780da14e43b32c1e3da23ceea5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e9925af0-483d-460c-844c-0ced49e3698c', '3683b616-fab3-4d63-9dac-bda0f535d2d1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81753911', 'ctest-vn4-06155875'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81753911', 'ctest-policy1-97727665']], 'subnet_ipam': [{'subnet_cidr': '145.48.233.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ba9:d20e:ae4f:aef0:e9af:5028::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-05-25 02:06:29,341 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-05-25 02:06:29,635 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-05-25 02:06:29,662 - DEBUG - Requesting: http://10.0.0.130:8082/domain/d05b3aa9-78be-4e19-8297-f1a7525d7e03 2026-05-25 02:06:29,673 - DEBUG - Requesting: http://10.0.0.130:8082/project/9ad73a78-0da1-4e43-b32c-1e3da23ceea5 2026-05-25 02:06:29,743 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7d67cfbe-c3e4-4a18-8d45-b05ab35f6445 2026-05-25 02:06:29,753 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7d67cfbe-c3e4-4a18-8d45-b05ab35f6445 2026-05-25 02:06:29,761 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/88b1d897-c838-47e5-89a4-a9a999e533f0 2026-05-25 02:06:29,767 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/88b1d897-c838-47e5-89a4-a9a999e533f0 2026-05-25 02:06:29,772 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/b4b42432-3472-4878-98de-ad61f308f88a 2026-05-25 02:06:29,777 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-25 02:06:29,777 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7d67cfbe-c3e4-4a18-8d45-b05ab35f6445 2026-05-25 02:06:29,785 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/88b1d897-c838-47e5-89a4-a9a999e533f0 2026-05-25 02:06:29,808 - INFO - Verified VN network id 10 for VN 7d67cfbe-c3e4-4a18-8d45-b05ab35f6445 2026-05-25 02:06:29,808 - INFO - Verifications in API Server for VN ctest-vn4-06155875 passed 2026-05-25 02:06:29,808 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7d67cfbe-c3e4-4a18-8d45-b05ab35f6445 2026-05-25 02:06:29,817 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/88b1d897-c838-47e5-89a4-a9a999e533f0 2026-05-25 02:06:29,823 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/88b1d897-c838-47e5-89a4-a9a999e533f0 2026-05-25 02:06:29,828 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/b4b42432-3472-4878-98de-ad61f308f88a 2026-05-25 02:06:29,838 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81753911:ctest-vn4-06155875', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-81753911', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9036419595579443736', 'uuid-lslong': '10179736436343792709'}, 'enable': 'true', 'created': '2026-05-25T02:06:28', 'last-modified': '2026-05-25T02:06:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694107'} 2026-05-25 02:06:29,844 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-05-25 02:06:29,845 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06155875 passed 2026-05-25 02:06:29,845 - DEBUG - ====Verifying policy data for ctest-vn4-06155875 in API_Server ====== 2026-05-25 02:06:29,845 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-05-25 02:06:29,850 - DEBUG - Requesting: http://10.0.0.130:8082/domain/d05b3aa9-78be-4e19-8297-f1a7525d7e03 2026-05-25 02:06:29,860 - DEBUG - Requesting: http://10.0.0.130:8082/project/9ad73a78-0da1-4e43-b32c-1e3da23ceea5 2026-05-25 02:06:29,925 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/7d67cfbe-c3e4-4a18-8d45-b05ab35f6445 2026-05-25 02:06:29,934 - DEBUG - ==>Verifying data for policy with id: 41cf0877-42cc-424d-a330-af08a5d234e2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81753911', 'ctest-policy1-97727665'] 2026-05-25 02:06:29,934 - INFO - VN ctest-vn4-06155875 Policy verification: verify_vn_policy_in_api_server, status: True 2026-05-25 02:06:29,934 - DEBUG - Verifying the vn in opserver 2026-05-25 02:06:29,934 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81753911:ctest-vn4-06155875 virtual network link through opserver 10.0.0.130 2026-05-25 02:06:29,935 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-05-25 02:06:30,224 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-05-25 02:06:30,288 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81753911:ctest-vn4-06155875', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81753911:ctest-vn4-06155875?flat'} 2026-05-25 02:06:30,288 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81753911:ctest-vn4-06155875 is found in opserver 2026-05-25 02:06:30,297 - DEBUG - Do not have enough data to verify VN in agent 2026-05-25 02:06:30,302 - DEBUG - VRF ids for VN ctest-vn4-06155875: {} 2026-05-25 02:06:30,302 - DEBUG - ====Verifying data for ctest-policy1-97727665 in API_Server ====== 2026-05-25 02:06:30,302 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-05-25 02:06:30,308 - DEBUG - Requesting: http://10.0.0.130:8082/domain/d05b3aa9-78be-4e19-8297-f1a7525d7e03 2026-05-25 02:06:30,319 - DEBUG - Requesting: http://10.0.0.130:8082/project/9ad73a78-0da1-4e43-b32c-1e3da23ceea5 2026-05-25 02:06:30,397 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/41cf0877-42cc-424d-a330-af08a5d234e2 2026-05-25 02:06:30,406 - INFO - Verified policy ctest-policy1-97727665 in API Server, Result: True 2026-05-25 02:06:30,406 - INFO - Done with setup and verification, moving onto test .. 2026-05-25 02:06:30,413 - INFO - Deleting VN ctest-vn4-06155875 2026-05-25 02:06:30,515 - DEBUG - Response for deleting network () 2026-05-25 02:06:30,515 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/88b1d897-c838-47e5-89a4-a9a999e533f0 2026-05-25 02:06:30,519 - DEBUG - Response Code: 404 2026-05-25 02:06:30,519 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-05-25 02:06:30,524 - DEBUG - Requesting: http://10.0.0.130:8082/domain/d05b3aa9-78be-4e19-8297-f1a7525d7e03 2026-05-25 02:06:30,578 - DEBUG - Requesting: http://10.0.0.130:8082/project/9ad73a78-0da1-4e43-b32c-1e3da23ceea5 2026-05-25 02:06:30,646 - INFO - Validated that VN ctest-vn4-06155875 is not found in API Server 2026-05-25 02:06:30,654 - DEBUG - VN ctest-vn4-06155875 is not present in Agent 10.0.0.130 2026-05-25 02:06:30,654 - INFO - Validated that VN ctest-vn4-06155875 is not in any agent 2026-05-25 02:06:30,667 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06155875 info 2026-05-25 02:06:30,692 - INFO - Deleted policy ctest-policy1-97727665 2026-05-25 02:06:30,853 - DEBUG - policy ctest-policy1-97727665 is not found in API Server 2026-05-25 02:06:31,106 - DEBUG - No XMPP flaps were noticed during the test
2026-05-25 02:06:31,106 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-05-25 02:06:31,107 - INFO - -------------------------------------------------------------------------------- 2026-05-25 02:06:31,398 - DEBUG - No XMPP flaps were noticed during the test
2026-05-25 02:06:31,398 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-05-25 02:06:31,398 - INFO - -------------------------------------------------------------------------------- 2026-05-25 02:06:32,171 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-81753911, ID : 9ad73a78-0da1-4e43-b32c-1e3da23ceea5