2026-01-05 02:30:03,638 - INFO - Domain Default found not creating 2026-01-05 02:30:03,802 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-37066435 not found, creating it 2026-01-05 02:30:04,429 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-37066435, ID : eb153789-71f7-4c4d-a39c-4ee4c62a3614 2026-01-05 02:30:05,923 - INFO - ================================================================================ 2026-01-05 02:30:05,923 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-05 02:30:07,187 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.25': '0', '10.20.0.129': '0'}, '10.0.0.56': {'10.20.0.254': '0', '10.20.0.129': '0'}} with 2026-01-05 02:30:07,187 - INFO - Initial checks done. Running the testcase now 2026-01-05 02:30:07,187 - INFO - 2026-01-05 02:30:07,187 - INFO - ================================================================================ 2026-01-05 02:30:07,187 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-05 02:30:07,188 - 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-01-05 02:30:08,460 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.25': '0', '10.20.0.129': '0'}, '10.0.0.56': {'10.20.0.254': '0', '10.20.0.129': '0'}} with 2026-01-05 02:30:08,460 - INFO - Initial checks done. Running the testcase now 2026-01-05 02:30:08,461 - INFO - 2026-01-05 02:30:08,789 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37066435:ctest-vn4-72398185, 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-37066435:ctest-vn4-72398185, 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-37066435:ctest-vn4-72398185, 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-37066435:ctest-vn4-72398185, 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-01-05 02:30:09,457 - DEBUG - Response for create_network : {'network': {'id': 'e578b275-4ca2-4a69-9ffd-9d60052a8982', 'name': 'ctest-vn4-72398185', 'tenant_id': 'eb15378971f74c4da39c4ee4c62a3614', 'project_id': 'eb15378971f74c4da39c4ee4c62a3614', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37066435', 'ctest-vn4-72398185'], 'port_security_enabled': True, 'description': ''}} 2026-01-05 02:30:09,768 - DEBUG - Response for create_subnet : {'subnet': {'id': 'adfed7c0-c053-4d8d-bed1-62f96e2896a8', 'name': '', 'tenant_id': 'eb15378971f74c4da39c4ee4c62a3614', 'network_id': 'e578b275-4ca2-4a69-9ffd-9d60052a8982', 'ip_version': 4, 'cidr': '12.41.115.0/26', 'allocation_pools': [{'start': '12.41.115.2', 'end': '12.41.115.62'}], 'gateway_ip': '12.41.115.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '12.41.115.2', 'tags': [], 'project_id': 'eb15378971f74c4da39c4ee4c62a3614'}} 2026-01-05 02:30:10,014 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eba00b57-21e6-497e-ac5f-48697fa56d97', 'name': '', 'tenant_id': 'eb15378971f74c4da39c4ee4c62a3614', 'network_id': 'e578b275-4ca2-4a69-9ffd-9d60052a8982', 'ip_version': 6, 'cidr': '2ccd:312a:a87:3754:aec7:2669::/96', 'allocation_pools': [{'start': '2ccd:312a:a87:3754:aec7:2669:0:2', 'end': '2ccd:312a:a87:3754:aec7:2669:ffff:fffe'}], 'gateway_ip': '2ccd:312a:a87:3754:aec7:2669:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ccd:312a:a87:3754:aec7:2669:0:2', 'tags': [], 'project_id': 'eb15378971f74c4da39c4ee4c62a3614'}} 2026-01-05 02:30:10,042 - INFO - Created VN ctest-vn4-72398185 2026-01-05 02:30:10,059 - DEBUG - VN ctest-vn4-72398185 UUID is e578b275-4ca2-4a69-9ffd-9d60052a8982 2026-01-05 02:30:10,268 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e578b275-4ca2-4a69-9ffd-9d60052a8982', 'name': 'ctest-vn4-72398185', 'tenant_id': 'eb15378971f74c4da39c4ee4c62a3614', 'project_id': 'eb15378971f74c4da39c4ee4c62a3614', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['adfed7c0-c053-4d8d-bed1-62f96e2896a8', 'eba00b57-21e6-497e-ac5f-48697fa56d97'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37066435', 'ctest-vn4-72398185'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37066435', 'ctest-policy1-58013672']], 'subnet_ipam': [{'subnet_cidr': '12.41.115.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ccd:312a:a87:3754:aec7:2669::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-05 02:30:10,389 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-05 02:30:10,660 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-05 02:30:10,692 - DEBUG - Requesting: http://10.0.0.27:8082/domain/182056ec-3382-44e1-b0fd-9a9d794f24a6 2026-01-05 02:30:10,711 - DEBUG - Requesting: http://10.0.0.27:8082/project/eb153789-71f7-4c4d-a39c-4ee4c62a3614 2026-01-05 02:30:10,809 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e578b275-4ca2-4a69-9ffd-9d60052a8982 2026-01-05 02:30:10,824 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e578b275-4ca2-4a69-9ffd-9d60052a8982 2026-01-05 02:30:10,835 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/486eae4a-f2d4-4e27-95c6-8a2d4a1d090c 2026-01-05 02:30:10,843 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/486eae4a-f2d4-4e27-95c6-8a2d4a1d090c 2026-01-05 02:30:10,850 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c2355aee-a488-495c-804c-3022a96fdc15 2026-01-05 02:30:10,858 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-05 02:30:10,858 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e578b275-4ca2-4a69-9ffd-9d60052a8982 2026-01-05 02:30:10,867 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/486eae4a-f2d4-4e27-95c6-8a2d4a1d090c 2026-01-05 02:30:10,883 - INFO - Verified VN network id 14 for VN e578b275-4ca2-4a69-9ffd-9d60052a8982 2026-01-05 02:30:10,884 - INFO - Verifications in API Server for VN ctest-vn4-72398185 passed 2026-01-05 02:30:10,884 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e578b275-4ca2-4a69-9ffd-9d60052a8982 2026-01-05 02:30:10,894 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/486eae4a-f2d4-4e27-95c6-8a2d4a1d090c 2026-01-05 02:30:10,900 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/486eae4a-f2d4-4e27-95c6-8a2d4a1d090c 2026-01-05 02:30:10,907 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c2355aee-a488-495c-804c-3022a96fdc15 2026-01-05 02:30:10,918 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37066435:ctest-vn4-72398185', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37066435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16535162248757398121', 'uuid-lslong': '11528543656867432834'}, 'enable': 'true', 'created': '2026-01-05T02:30:09', 'last-modified': '2026-01-05T02:30:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.681251'} 2026-01-05 02:30:10,923 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-05 02:30:10,928 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37066435:ctest-vn4-72398185', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37066435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16535162248757398121', 'uuid-lslong': '11528543656867432834'}, 'enable': 'true', 'created': '2026-01-05T02:30:09', 'last-modified': '2026-01-05T02:30:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.698971'} 2026-01-05 02:30:10,935 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-05 02:30:10,940 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37066435:ctest-vn4-72398185', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37066435', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16535162248757398121', 'uuid-lslong': '11528543656867432834'}, 'enable': 'true', 'created': '2026-01-05T02:30:09', 'last-modified': '2026-01-05T02:30:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.708421'} 2026-01-05 02:30:10,945 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-05 02:30:10,946 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-72398185 passed 2026-01-05 02:30:10,946 - DEBUG - ====Verifying policy data for ctest-vn4-72398185 in API_Server ====== 2026-01-05 02:30:10,946 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-05 02:30:10,952 - DEBUG - Requesting: http://10.0.0.27:8082/domain/182056ec-3382-44e1-b0fd-9a9d794f24a6 2026-01-05 02:30:10,962 - DEBUG - Requesting: http://10.0.0.27:8082/project/eb153789-71f7-4c4d-a39c-4ee4c62a3614 2026-01-05 02:30:11,066 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e578b275-4ca2-4a69-9ffd-9d60052a8982 2026-01-05 02:30:11,078 - DEBUG - ==>Verifying data for policy with id: acc4ff6b-6d45-466c-aa69-c1141c6abd22, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37066435', 'ctest-policy1-58013672'] 2026-01-05 02:30:11,078 - INFO - VN ctest-vn4-72398185 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-05 02:30:11,078 - DEBUG - Verifying the vn in opserver 2026-01-05 02:30:11,078 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37066435:ctest-vn4-72398185 virtual network link through opserver 10.0.0.27 2026-01-05 02:30:11,079 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-05 02:30:11,349 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-01-05 02:30:11,411 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37066435:ctest-vn4-72398185', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37066435:ctest-vn4-72398185?flat'} 2026-01-05 02:30:11,411 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37066435:ctest-vn4-72398185 virtual network link through opserver 10.0.0.33 2026-01-05 02:30:11,411 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-05 02:30:11,677 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-05 02:30:11,776 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37066435:ctest-vn4-72398185', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37066435:ctest-vn4-72398185?flat'} 2026-01-05 02:30:11,776 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37066435:ctest-vn4-72398185 virtual network link through opserver 10.0.0.23 2026-01-05 02:30:11,776 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-05 02:30:12,041 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-01-05 02:30:12,120 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37066435:ctest-vn4-72398185', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37066435:ctest-vn4-72398185?flat'} 2026-01-05 02:30:12,120 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37066435:ctest-vn4-72398185 is found in opserver 2026-01-05 02:30:12,142 - DEBUG - Do not have enough data to verify VN in agent 2026-01-05 02:30:12,152 - DEBUG - VRF ids for VN ctest-vn4-72398185: {} 2026-01-05 02:30:12,152 - DEBUG - ====Verifying data for ctest-policy1-58013672 in API_Server ====== 2026-01-05 02:30:12,152 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-05 02:30:12,158 - DEBUG - Requesting: http://10.0.0.27:8082/domain/182056ec-3382-44e1-b0fd-9a9d794f24a6 2026-01-05 02:30:12,169 - DEBUG - Requesting: http://10.0.0.27:8082/project/eb153789-71f7-4c4d-a39c-4ee4c62a3614 2026-01-05 02:30:12,273 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/acc4ff6b-6d45-466c-aa69-c1141c6abd22 2026-01-05 02:30:12,287 - INFO - Verified policy ctest-policy1-58013672 in API Server, Result: True 2026-01-05 02:30:12,288 - INFO - Done with setup and verification, moving onto test .. 2026-01-05 02:30:12,300 - INFO - Deleting VN ctest-vn4-72398185 2026-01-05 02:30:12,530 - DEBUG - Response for deleting network () 2026-01-05 02:30:12,530 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/486eae4a-f2d4-4e27-95c6-8a2d4a1d090c 2026-01-05 02:30:12,541 - DEBUG - Response Code: 404 2026-01-05 02:30:12,541 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2026-01-05 02:30:12,550 - DEBUG - Requesting: http://10.0.0.27:8082/domain/182056ec-3382-44e1-b0fd-9a9d794f24a6 2026-01-05 02:30:12,565 - DEBUG - Requesting: http://10.0.0.27:8082/project/eb153789-71f7-4c4d-a39c-4ee4c62a3614 2026-01-05 02:30:12,672 - INFO - Validated that VN ctest-vn4-72398185 is not found in API Server 2026-01-05 02:30:12,684 - DEBUG - VN ctest-vn4-72398185 is not present in Agent 10.0.0.57 2026-01-05 02:30:12,694 - DEBUG - VN ctest-vn4-72398185 is not present in Agent 10.0.0.56 2026-01-05 02:30:12,694 - INFO - Validated that VN ctest-vn4-72398185 is not in any agent 2026-01-05 02:30:12,726 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-72398185 info 2026-01-05 02:30:12,773 - INFO - Deleted policy ctest-policy1-58013672 2026-01-05 02:30:12,962 - DEBUG - policy ctest-policy1-58013672 is not found in API Server 2026-01-05 02:30:14,240 - DEBUG - No XMPP flaps were noticed during the test