2026-06-04 13:27:51,224 - INFO - Domain Default found not creating 2026-06-04 13:27:51,403 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-47028102 not found, creating it 2026-06-04 13:27:52,017 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-47028102, ID : d5d3627b-40b9-4c68-8eb5-cb07a105d8bc 2026-06-04 13:27:53,576 - INFO - ================================================================================ 2026-06-04 13:27:53,576 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-04 13:27:54,860 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0', '10.20.0.14': '0'}, '10.0.0.19': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2026-06-04 13:27:54,860 - INFO - Initial checks done. Running the testcase now 2026-06-04 13:27:54,860 - INFO - 2026-06-04 13:27:54,860 - INFO - ================================================================================ 2026-06-04 13:27:54,861 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-04 13:27:54,861 - 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-06-04 13:27:56,148 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0', '10.20.0.14': '0'}, '10.0.0.19': {'10.20.0.14': '0', '10.20.0.254': '0'}} with 2026-06-04 13:27:56,148 - INFO - Initial checks done. Running the testcase now 2026-06-04 13:27:56,148 - INFO - 2026-06-04 13:27:56,542 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47028102:ctest-vn4-29103781, 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-47028102:ctest-vn4-29103781, 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-47028102:ctest-vn4-29103781, 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-47028102:ctest-vn4-29103781, 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-06-04 13:27:57,179 - DEBUG - Response for create_network : {'network': {'id': '6f2c4f3b-3861-40ba-addc-f2a0aba1335b', 'name': 'ctest-vn4-29103781', 'tenant_id': 'd5d3627b40b94c688eb5cb07a105d8bc', 'project_id': 'd5d3627b40b94c688eb5cb07a105d8bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47028102', 'ctest-vn4-29103781'], 'port_security_enabled': True, 'description': ''}} 2026-06-04 13:27:57,523 - DEBUG - Response for create_subnet : {'subnet': {'id': '94032e58-faed-4843-9ad2-c5110f581346', 'name': '', 'tenant_id': 'd5d3627b40b94c688eb5cb07a105d8bc', 'network_id': '6f2c4f3b-3861-40ba-addc-f2a0aba1335b', 'ip_version': 4, 'cidr': '108.9.195.0/26', 'allocation_pools': [{'start': '108.9.195.2', 'end': '108.9.195.62'}], 'gateway_ip': '108.9.195.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '108.9.195.2', 'tags': [], 'project_id': 'd5d3627b40b94c688eb5cb07a105d8bc'}} 2026-06-04 13:27:57,798 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b4c6df8f-08da-46ee-89f6-e3abf67e5cf6', 'name': '', 'tenant_id': 'd5d3627b40b94c688eb5cb07a105d8bc', 'network_id': '6f2c4f3b-3861-40ba-addc-f2a0aba1335b', 'ip_version': 6, 'cidr': '2d06:d89b:d1b2:c512:7c1d:7375::/96', 'allocation_pools': [{'start': '2d06:d89b:d1b2:c512:7c1d:7375:0:2', 'end': '2d06:d89b:d1b2:c512:7c1d:7375:ffff:fffe'}], 'gateway_ip': '2d06:d89b:d1b2:c512:7c1d:7375:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d06:d89b:d1b2:c512:7c1d:7375:0:2', 'tags': [], 'project_id': 'd5d3627b40b94c688eb5cb07a105d8bc'}} 2026-06-04 13:27:57,825 - INFO - Created VN ctest-vn4-29103781 2026-06-04 13:27:57,842 - DEBUG - VN ctest-vn4-29103781 UUID is 6f2c4f3b-3861-40ba-addc-f2a0aba1335b 2026-06-04 13:27:58,068 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6f2c4f3b-3861-40ba-addc-f2a0aba1335b', 'name': 'ctest-vn4-29103781', 'tenant_id': 'd5d3627b40b94c688eb5cb07a105d8bc', 'project_id': 'd5d3627b40b94c688eb5cb07a105d8bc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94032e58-faed-4843-9ad2-c5110f581346', 'b4c6df8f-08da-46ee-89f6-e3abf67e5cf6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47028102', 'ctest-vn4-29103781'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47028102', 'ctest-policy1-65970686']], 'subnet_ipam': [{'subnet_cidr': '108.9.195.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d06:d89b:d1b2:c512:7c1d:7375::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-04 13:27:58,189 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-04 13:27:58,491 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-04 13:27:58,527 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2a691fd0-1018-439d-b1ef-8ad832fd41d9 2026-06-04 13:27:58,545 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5d3627b-40b9-4c68-8eb5-cb07a105d8bc 2026-06-04 13:27:58,641 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6f2c4f3b-3861-40ba-addc-f2a0aba1335b 2026-06-04 13:27:58,661 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6f2c4f3b-3861-40ba-addc-f2a0aba1335b 2026-06-04 13:27:58,674 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6fea5415-fa3f-44cb-98f4-1de0ffa02224 2026-06-04 13:27:58,683 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6fea5415-fa3f-44cb-98f4-1de0ffa02224 2026-06-04 13:27:58,691 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/83d149ab-8773-478a-9ff2-1d72a377b4da 2026-06-04 13:27:58,699 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 13:27:58,699 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6f2c4f3b-3861-40ba-addc-f2a0aba1335b 2026-06-04 13:27:58,709 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6fea5415-fa3f-44cb-98f4-1de0ffa02224 2026-06-04 13:27:58,727 - INFO - Verified VN network id 14 for VN 6f2c4f3b-3861-40ba-addc-f2a0aba1335b 2026-06-04 13:27:58,727 - INFO - Verifications in API Server for VN ctest-vn4-29103781 passed 2026-06-04 13:27:58,727 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6f2c4f3b-3861-40ba-addc-f2a0aba1335b 2026-06-04 13:27:58,740 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6fea5415-fa3f-44cb-98f4-1de0ffa02224 2026-06-04 13:27:58,748 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6fea5415-fa3f-44cb-98f4-1de0ffa02224 2026-06-04 13:27:58,756 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/83d149ab-8773-478a-9ff2-1d72a377b4da 2026-06-04 13:27:58,769 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47028102:ctest-vn4-29103781', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47028102', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8010864952952832186', 'uuid-lslong': '12528155035326034779'}, 'enable': 'true', 'created': '2026-06-04T13:27:57', 'last-modified': '2026-06-04T13:27:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.765625'} 2026-06-04 13:27:58,775 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 13:27:58,781 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47028102:ctest-vn4-29103781', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47028102', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8010864952952832186', 'uuid-lslong': '12528155035326034779'}, 'enable': 'true', 'created': '2026-06-04T13:27:57', 'last-modified': '2026-06-04T13:27:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.774846'} 2026-06-04 13:27:58,788 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 13:27:58,795 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47028102:ctest-vn4-29103781', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47028102', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8010864952952832186', 'uuid-lslong': '12528155035326034779'}, 'enable': 'true', 'created': '2026-06-04T13:27:57', 'last-modified': '2026-06-04T13:27:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.790729'} 2026-06-04 13:27:58,801 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 13:27:58,801 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29103781 passed 2026-06-04 13:27:58,801 - DEBUG - ====Verifying policy data for ctest-vn4-29103781 in API_Server ====== 2026-06-04 13:27:58,802 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-04 13:27:58,808 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2a691fd0-1018-439d-b1ef-8ad832fd41d9 2026-06-04 13:27:58,822 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5d3627b-40b9-4c68-8eb5-cb07a105d8bc 2026-06-04 13:27:58,942 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6f2c4f3b-3861-40ba-addc-f2a0aba1335b 2026-06-04 13:27:58,953 - DEBUG - ==>Verifying data for policy with id: e9d3178e-9e72-40a2-9ebc-31a63b0b90ad, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47028102', 'ctest-policy1-65970686'] 2026-06-04 13:27:58,953 - INFO - VN ctest-vn4-29103781 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-04 13:27:58,953 - DEBUG - Verifying the vn in opserver 2026-06-04 13:27:58,953 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47028102:ctest-vn4-29103781 virtual network link through opserver 10.0.0.38 2026-06-04 13:27:58,953 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-04 13:27:59,263 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-06-04 13:27:59,338 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47028102:ctest-vn4-29103781', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47028102:ctest-vn4-29103781?flat'} 2026-06-04 13:27:59,338 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47028102:ctest-vn4-29103781 virtual network link through opserver 10.0.0.33 2026-06-04 13:27:59,338 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-04 13:27:59,641 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-06-04 13:27:59,708 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47028102:ctest-vn4-29103781', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47028102:ctest-vn4-29103781?flat'} 2026-06-04 13:27:59,708 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47028102:ctest-vn4-29103781 virtual network link through opserver 10.0.0.249 2026-06-04 13:27:59,709 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-04 13:28:00,048 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-06-04 13:28:00,108 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47028102:ctest-vn4-29103781', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47028102:ctest-vn4-29103781?flat'} 2026-06-04 13:28:00,108 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47028102:ctest-vn4-29103781 is found in opserver 2026-06-04 13:28:00,131 - DEBUG - Do not have enough data to verify VN in agent 2026-06-04 13:28:00,143 - DEBUG - VRF ids for VN ctest-vn4-29103781: {} 2026-06-04 13:28:00,143 - DEBUG - ====Verifying data for ctest-policy1-65970686 in API_Server ====== 2026-06-04 13:28:00,143 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-04 13:28:00,148 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2a691fd0-1018-439d-b1ef-8ad832fd41d9 2026-06-04 13:28:00,160 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5d3627b-40b9-4c68-8eb5-cb07a105d8bc 2026-06-04 13:28:00,262 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/e9d3178e-9e72-40a2-9ebc-31a63b0b90ad 2026-06-04 13:28:00,273 - INFO - Verified policy ctest-policy1-65970686 in API Server, Result: True 2026-06-04 13:28:00,273 - INFO - Done with setup and verification, moving onto test .. 2026-06-04 13:28:00,284 - INFO - Deleting VN ctest-vn4-29103781 2026-06-04 13:28:00,457 - DEBUG - Response for deleting network () 2026-06-04 13:28:00,457 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6fea5415-fa3f-44cb-98f4-1de0ffa02224 2026-06-04 13:28:00,469 - DEBUG - Response Code: 404 2026-06-04 13:28:00,469 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-06-04 13:28:00,475 - DEBUG - Requesting: http://10.0.0.38:8082/domain/2a691fd0-1018-439d-b1ef-8ad832fd41d9 2026-06-04 13:28:00,491 - DEBUG - Requesting: http://10.0.0.38:8082/project/d5d3627b-40b9-4c68-8eb5-cb07a105d8bc 2026-06-04 13:28:00,608 - INFO - Validated that VN ctest-vn4-29103781 is not found in API Server 2026-06-04 13:28:00,621 - DEBUG - VN ctest-vn4-29103781 is not present in Agent 10.0.0.22 2026-06-04 13:28:00,635 - DEBUG - VN ctest-vn4-29103781 is not present in Agent 10.0.0.19 2026-06-04 13:28:00,635 - INFO - Validated that VN ctest-vn4-29103781 is not in any agent 2026-06-04 13:28:00,682 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29103781 info 2026-06-04 13:28:00,729 - INFO - Deleted policy ctest-policy1-65970686 2026-06-04 13:28:00,913 - DEBUG - policy ctest-policy1-65970686 is not found in API Server 2026-06-04 13:28:02,262 - DEBUG - No XMPP flaps were noticed during the test
2026-06-04 13:28:02,262 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2026-06-04 13:28:02,262 - INFO - -------------------------------------------------------------------------------- 2026-06-04 13:28:03,525 - DEBUG - No XMPP flaps were noticed during the test
2026-06-04 13:28:03,525 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-06-04 13:28:03,525 - INFO - -------------------------------------------------------------------------------- 2026-06-04 13:28:04,325 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-47028102, ID : d5d3627b-40b9-4c68-8eb5-cb07a105d8bc