2026-01-29 19:21:48,271 - INFO - Domain Default found not creating 2026-01-29 19:21:48,415 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-73770552 not found, creating it 2026-01-29 19:21:48,834 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-73770552, ID : 648ec45f-00c7-42a0-9893-2d075168f855 2026-01-29 19:21:50,220 - INFO - ================================================================================ 2026-01-29 19:21:50,220 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 19:21:50,474 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-01-29 19:21:50,474 - INFO - Initial checks done. Running the testcase now 2026-01-29 19:21:50,474 - INFO - 2026-01-29 19:21:50,474 - INFO - ================================================================================ 2026-01-29 19:21:50,474 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-29 19:21:50,474 - 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-29 19:21:50,770 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2026-01-29 19:21:50,770 - INFO - Initial checks done. Running the testcase now 2026-01-29 19:21:50,770 - INFO - 2026-01-29 19:21:51,118 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73770552:ctest-vn4-00935566, 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-73770552:ctest-vn4-00935566, 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-73770552:ctest-vn4-00935566, 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-73770552:ctest-vn4-00935566, 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-29 19:21:51,659 - DEBUG - Response for create_network : {'network': {'id': 'b5e73d32-1ef8-494d-9db7-b7e36acf3e74', 'name': 'ctest-vn4-00935566', 'tenant_id': '648ec45f00c742a098932d075168f855', 'project_id': '648ec45f00c742a098932d075168f855', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73770552', 'ctest-vn4-00935566'], 'port_security_enabled': True, 'description': ''}} 2026-01-29 19:21:51,877 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b86f9829-601f-465e-8baf-ed134b4b74f7', 'name': '', 'tenant_id': '648ec45f00c742a098932d075168f855', 'network_id': 'b5e73d32-1ef8-494d-9db7-b7e36acf3e74', 'ip_version': 4, 'cidr': '16.19.176.128/26', 'allocation_pools': [{'start': '16.19.176.130', 'end': '16.19.176.190'}], 'gateway_ip': '16.19.176.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.19.176.130', 'tags': [], 'project_id': '648ec45f00c742a098932d075168f855'}} 2026-01-29 19:21:52,037 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dac59800-8a34-4620-9a81-441c91b0081f', 'name': '', 'tenant_id': '648ec45f00c742a098932d075168f855', 'network_id': 'b5e73d32-1ef8-494d-9db7-b7e36acf3e74', 'ip_version': 6, 'cidr': '2a53:f98d:fd6d:81e0:4281:1041::/96', 'allocation_pools': [{'start': '2a53:f98d:fd6d:81e0:4281:1041:0:2', 'end': '2a53:f98d:fd6d:81e0:4281:1041:ffff:fffe'}], 'gateway_ip': '2a53:f98d:fd6d:81e0:4281:1041:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a53:f98d:fd6d:81e0:4281:1041:0:2', 'tags': [], 'project_id': '648ec45f00c742a098932d075168f855'}} 2026-01-29 19:21:52,055 - INFO - Created VN ctest-vn4-00935566 2026-01-29 19:21:52,106 - DEBUG - VN ctest-vn4-00935566 UUID is b5e73d32-1ef8-494d-9db7-b7e36acf3e74 2026-01-29 19:21:52,281 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5e73d32-1ef8-494d-9db7-b7e36acf3e74', 'name': 'ctest-vn4-00935566', 'tenant_id': '648ec45f00c742a098932d075168f855', 'project_id': '648ec45f00c742a098932d075168f855', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b86f9829-601f-465e-8baf-ed134b4b74f7', 'dac59800-8a34-4620-9a81-441c91b0081f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73770552', 'ctest-vn4-00935566'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73770552', 'ctest-policy1-36723834']], 'subnet_ipam': [{'subnet_cidr': '16.19.176.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a53:f98d:fd6d:81e0:4281:1041::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-29 19:21:52,438 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 19:21:52,726 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 19:21:52,754 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9bde6b3e-04a0-4a43-a397-2518df866609 2026-01-29 19:21:52,765 - DEBUG - Requesting: http://10.0.0.22:8082/project/648ec45f-00c7-42a0-9893-2d075168f855 2026-01-29 19:21:52,830 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b5e73d32-1ef8-494d-9db7-b7e36acf3e74 2026-01-29 19:21:52,841 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b5e73d32-1ef8-494d-9db7-b7e36acf3e74 2026-01-29 19:21:52,848 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/58848c8b-a14a-44a0-83e2-bcdcb81bff80 2026-01-29 19:21:52,854 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/58848c8b-a14a-44a0-83e2-bcdcb81bff80 2026-01-29 19:21:52,859 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5daaa2f3-0ad6-4348-bfe8-436949370bc2 2026-01-29 19:21:52,863 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 19:21:52,863 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b5e73d32-1ef8-494d-9db7-b7e36acf3e74 2026-01-29 19:21:52,870 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/58848c8b-a14a-44a0-83e2-bcdcb81bff80 2026-01-29 19:21:52,879 - INFO - Verified VN network id 12 for VN b5e73d32-1ef8-494d-9db7-b7e36acf3e74 2026-01-29 19:21:52,880 - INFO - Verifications in API Server for VN ctest-vn4-00935566 passed 2026-01-29 19:21:52,880 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b5e73d32-1ef8-494d-9db7-b7e36acf3e74 2026-01-29 19:21:52,886 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/58848c8b-a14a-44a0-83e2-bcdcb81bff80 2026-01-29 19:21:52,891 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/58848c8b-a14a-44a0-83e2-bcdcb81bff80 2026-01-29 19:21:52,896 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5daaa2f3-0ad6-4348-bfe8-436949370bc2 2026-01-29 19:21:52,905 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73770552:ctest-vn4-00935566', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-73770552', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13107512525962365261', 'uuid-lslong': '11364754372070162036'}, 'enable': 'true', 'created': '2026-01-29T19:21:51', 'last-modified': '2026-01-29T19:21:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.643482'} 2026-01-29 19:21:52,910 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-29 19:21:52,910 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00935566 passed 2026-01-29 19:21:52,910 - DEBUG - ====Verifying policy data for ctest-vn4-00935566 in API_Server ====== 2026-01-29 19:21:52,910 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 19:21:52,914 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9bde6b3e-04a0-4a43-a397-2518df866609 2026-01-29 19:21:52,922 - DEBUG - Requesting: http://10.0.0.22:8082/project/648ec45f-00c7-42a0-9893-2d075168f855 2026-01-29 19:21:52,989 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/b5e73d32-1ef8-494d-9db7-b7e36acf3e74 2026-01-29 19:21:52,997 - DEBUG - ==>Verifying data for policy with id: d9d13466-e288-47fa-b8da-f062b07f89ff, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-73770552', 'ctest-policy1-36723834'] 2026-01-29 19:21:52,997 - INFO - VN ctest-vn4-00935566 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-29 19:21:52,997 - DEBUG - Verifying the vn in opserver 2026-01-29 19:21:52,997 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73770552:ctest-vn4-00935566 virtual network link through opserver 10.0.0.22 2026-01-29 19:21:52,997 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-29 19:21:53,287 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-29 19:21:53,349 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73770552:ctest-vn4-00935566', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73770552:ctest-vn4-00935566?flat'} 2026-01-29 19:21:53,349 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-73770552:ctest-vn4-00935566 is found in opserver 2026-01-29 19:21:53,357 - DEBUG - Do not have enough data to verify VN in agent 2026-01-29 19:21:53,362 - DEBUG - VRF ids for VN ctest-vn4-00935566: {} 2026-01-29 19:21:53,362 - DEBUG - ====Verifying data for ctest-policy1-36723834 in API_Server ====== 2026-01-29 19:21:53,362 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 19:21:53,367 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9bde6b3e-04a0-4a43-a397-2518df866609 2026-01-29 19:21:53,377 - DEBUG - Requesting: http://10.0.0.22:8082/project/648ec45f-00c7-42a0-9893-2d075168f855 2026-01-29 19:21:53,452 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/d9d13466-e288-47fa-b8da-f062b07f89ff 2026-01-29 19:21:53,460 - INFO - Verified policy ctest-policy1-36723834 in API Server, Result: True 2026-01-29 19:21:53,461 - INFO - Done with setup and verification, moving onto test .. 2026-01-29 19:21:53,467 - INFO - Deleting VN ctest-vn4-00935566 2026-01-29 19:21:53,579 - DEBUG - Response for deleting network () 2026-01-29 19:21:53,579 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/58848c8b-a14a-44a0-83e2-bcdcb81bff80 2026-01-29 19:21:53,583 - DEBUG - Response Code: 404 2026-01-29 19:21:53,583 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-29 19:21:53,587 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9bde6b3e-04a0-4a43-a397-2518df866609 2026-01-29 19:21:53,639 - DEBUG - Requesting: http://10.0.0.22:8082/project/648ec45f-00c7-42a0-9893-2d075168f855 2026-01-29 19:21:53,704 - INFO - Validated that VN ctest-vn4-00935566 is not found in API Server 2026-01-29 19:21:53,713 - DEBUG - VN ctest-vn4-00935566 is not present in Agent 10.0.0.22 2026-01-29 19:21:53,713 - INFO - Validated that VN ctest-vn4-00935566 is not in any agent 2026-01-29 19:21:53,725 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00935566 info 2026-01-29 19:21:53,752 - INFO - Deleted policy ctest-policy1-36723834 2026-01-29 19:21:53,917 - DEBUG - policy ctest-policy1-36723834 is not found in API Server 2026-01-29 19:21:54,181 - DEBUG - No XMPP flaps were noticed during the test