2026-06-04 18:49:03,671 - INFO - Domain Default found not creating 2026-06-04 18:49:03,855 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03541585 not found, creating it 2026-06-04 18:49:04,484 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03541585, ID : 50e66f62-c63a-4776-84d4-5a988f57c28d 2026-06-04 18:49:06,138 - INFO - ================================================================================ 2026-06-04 18:49:06,138 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-04 18:49:07,409 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0', '10.20.0.201': '0'}, '10.0.0.41': {'10.20.0.192': '0', '10.20.0.201': '0'}} with 2026-06-04 18:49:07,409 - INFO - Initial checks done. Running the testcase now 2026-06-04 18:49:07,410 - INFO - 2026-06-04 18:49:07,410 - INFO - ================================================================================ 2026-06-04 18:49:07,410 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-04 18:49:07,410 - 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 18:49:08,694 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0', '10.20.0.201': '0'}, '10.0.0.41': {'10.20.0.192': '0', '10.20.0.201': '0'}} with 2026-06-04 18:49:08,694 - INFO - Initial checks done. Running the testcase now 2026-06-04 18:49:08,694 - INFO - 2026-06-04 18:49:09,144 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03541585:ctest-vn4-01374904, 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-03541585:ctest-vn4-01374904, 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-03541585:ctest-vn4-01374904, 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-03541585:ctest-vn4-01374904, 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 18:49:09,754 - DEBUG - Response for create_network : {'network': {'id': '9ee55519-ac29-41b5-8225-fe49605580ef', 'name': 'ctest-vn4-01374904', 'tenant_id': '50e66f62c63a477684d45a988f57c28d', 'project_id': '50e66f62c63a477684d45a988f57c28d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03541585', 'ctest-vn4-01374904'], 'port_security_enabled': True, 'description': ''}} 2026-06-04 18:49:10,033 - DEBUG - Response for create_subnet : {'subnet': {'id': '76521599-b25e-4dc8-86fb-50c1e4d20e1b', 'name': '', 'tenant_id': '50e66f62c63a477684d45a988f57c28d', 'network_id': '9ee55519-ac29-41b5-8225-fe49605580ef', 'ip_version': 4, 'cidr': '113.185.84.192/26', 'allocation_pools': [{'start': '113.185.84.194', 'end': '113.185.84.254'}], 'gateway_ip': '113.185.84.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.185.84.194', 'tags': [], 'project_id': '50e66f62c63a477684d45a988f57c28d'}} 2026-06-04 18:49:10,303 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f88b1e86-6b64-40d2-90b7-97745754c962', 'name': '', 'tenant_id': '50e66f62c63a477684d45a988f57c28d', 'network_id': '9ee55519-ac29-41b5-8225-fe49605580ef', 'ip_version': 6, 'cidr': '2faf:d208:b747:696c:a4e4:1ef4::/96', 'allocation_pools': [{'start': '2faf:d208:b747:696c:a4e4:1ef4:0:2', 'end': '2faf:d208:b747:696c:a4e4:1ef4:ffff:fffe'}], 'gateway_ip': '2faf:d208:b747:696c:a4e4:1ef4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2faf:d208:b747:696c:a4e4:1ef4:0:2', 'tags': [], 'project_id': '50e66f62c63a477684d45a988f57c28d'}} 2026-06-04 18:49:10,330 - INFO - Created VN ctest-vn4-01374904 2026-06-04 18:49:10,354 - DEBUG - VN ctest-vn4-01374904 UUID is 9ee55519-ac29-41b5-8225-fe49605580ef 2026-06-04 18:49:10,630 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ee55519-ac29-41b5-8225-fe49605580ef', 'name': 'ctest-vn4-01374904', 'tenant_id': '50e66f62c63a477684d45a988f57c28d', 'project_id': '50e66f62c63a477684d45a988f57c28d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76521599-b25e-4dc8-86fb-50c1e4d20e1b', 'f88b1e86-6b64-40d2-90b7-97745754c962'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03541585', 'ctest-vn4-01374904'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03541585', 'ctest-policy1-83642634']], 'subnet_ipam': [{'subnet_cidr': '113.185.84.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2faf:d208:b747:696c:a4e4:1ef4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-04 18:49:10,720 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-04 18:49:11,023 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-04 18:49:11,054 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4e02db34-016b-4b63-8018-86160ff1d58c 2026-06-04 18:49:11,070 - DEBUG - Requesting: http://10.0.0.50:8082/project/50e66f62-c63a-4776-84d4-5a988f57c28d 2026-06-04 18:49:11,192 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9ee55519-ac29-41b5-8225-fe49605580ef 2026-06-04 18:49:11,205 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9ee55519-ac29-41b5-8225-fe49605580ef 2026-06-04 18:49:11,218 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07cc11d1-aad5-4d3d-951f-c5b359013b53 2026-06-04 18:49:11,227 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07cc11d1-aad5-4d3d-951f-c5b359013b53 2026-06-04 18:49:11,235 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d1d4f336-13d8-4b83-9c34-66095b04b22b 2026-06-04 18:49:11,243 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 18:49:11,243 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9ee55519-ac29-41b5-8225-fe49605580ef 2026-06-04 18:49:11,254 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07cc11d1-aad5-4d3d-951f-c5b359013b53 2026-06-04 18:49:11,277 - INFO - Verified VN network id 12 for VN 9ee55519-ac29-41b5-8225-fe49605580ef 2026-06-04 18:49:11,278 - INFO - Verifications in API Server for VN ctest-vn4-01374904 passed 2026-06-04 18:49:11,278 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9ee55519-ac29-41b5-8225-fe49605580ef 2026-06-04 18:49:11,291 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07cc11d1-aad5-4d3d-951f-c5b359013b53 2026-06-04 18:49:11,303 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07cc11d1-aad5-4d3d-951f-c5b359013b53 2026-06-04 18:49:11,311 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/d1d4f336-13d8-4b83-9c34-66095b04b22b 2026-06-04 18:49:11,324 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03541585:ctest-vn4-01374904', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03541585', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11449651196410282421', 'uuid-lslong': '9378181390171209967'}, 'enable': 'true', 'created': '2026-06-04T18:49:09', 'last-modified': '2026-06-04T18:49:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778741'} 2026-06-04 18:49:11,333 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 18:49:11,339 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03541585:ctest-vn4-01374904', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03541585', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11449651196410282421', 'uuid-lslong': '9378181390171209967'}, 'enable': 'true', 'created': '2026-06-04T18:49:09', 'last-modified': '2026-06-04T18:49:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.789822'} 2026-06-04 18:49:11,347 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 18:49:11,355 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03541585:ctest-vn4-01374904', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03541585', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11449651196410282421', 'uuid-lslong': '9378181390171209967'}, 'enable': 'true', 'created': '2026-06-04T18:49:09', 'last-modified': '2026-06-04T18:49:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.815857'} 2026-06-04 18:49:11,366 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-04 18:49:11,366 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01374904 passed 2026-06-04 18:49:11,366 - DEBUG - ====Verifying policy data for ctest-vn4-01374904 in API_Server ====== 2026-06-04 18:49:11,367 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-04 18:49:11,374 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4e02db34-016b-4b63-8018-86160ff1d58c 2026-06-04 18:49:11,386 - DEBUG - Requesting: http://10.0.0.50:8082/project/50e66f62-c63a-4776-84d4-5a988f57c28d 2026-06-04 18:49:11,485 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9ee55519-ac29-41b5-8225-fe49605580ef 2026-06-04 18:49:11,499 - DEBUG - ==>Verifying data for policy with id: dfe9d1ab-c3da-4e17-9df7-753180278c96, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03541585', 'ctest-policy1-83642634'] 2026-06-04 18:49:11,499 - INFO - VN ctest-vn4-01374904 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-04 18:49:11,499 - DEBUG - Verifying the vn in opserver 2026-06-04 18:49:11,499 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03541585:ctest-vn4-01374904 virtual network link through opserver 10.0.0.50 2026-06-04 18:49:11,500 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-04 18:49:11,816 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-06-04 18:49:11,879 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03541585:ctest-vn4-01374904', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03541585:ctest-vn4-01374904?flat'} 2026-06-04 18:49:11,879 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03541585:ctest-vn4-01374904 virtual network link through opserver 10.0.0.129 2026-06-04 18:49:11,879 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-06-04 18:49:12,192 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-06-04 18:49:12,264 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03541585:ctest-vn4-01374904', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03541585:ctest-vn4-01374904?flat'} 2026-06-04 18:49:12,264 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03541585:ctest-vn4-01374904 virtual network link through opserver 10.0.0.241 2026-06-04 18:49:12,264 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-06-04 18:49:12,596 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-06-04 18:49:12,661 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03541585:ctest-vn4-01374904', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03541585:ctest-vn4-01374904?flat'} 2026-06-04 18:49:12,661 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03541585:ctest-vn4-01374904 is found in opserver 2026-06-04 18:49:12,682 - DEBUG - Do not have enough data to verify VN in agent 2026-06-04 18:49:12,692 - DEBUG - VRF ids for VN ctest-vn4-01374904: {} 2026-06-04 18:49:12,692 - DEBUG - ====Verifying data for ctest-policy1-83642634 in API_Server ====== 2026-06-04 18:49:12,692 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-04 18:49:12,699 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4e02db34-016b-4b63-8018-86160ff1d58c 2026-06-04 18:49:12,711 - DEBUG - Requesting: http://10.0.0.50:8082/project/50e66f62-c63a-4776-84d4-5a988f57c28d 2026-06-04 18:49:12,822 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/dfe9d1ab-c3da-4e17-9df7-753180278c96 2026-06-04 18:49:12,832 - INFO - Verified policy ctest-policy1-83642634 in API Server, Result: True 2026-06-04 18:49:12,832 - INFO - Done with setup and verification, moving onto test .. 2026-06-04 18:49:12,846 - INFO - Deleting VN ctest-vn4-01374904 2026-06-04 18:49:13,054 - DEBUG - Response for deleting network () 2026-06-04 18:49:13,054 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/07cc11d1-aad5-4d3d-951f-c5b359013b53 2026-06-04 18:49:13,070 - DEBUG - Response Code: 404 2026-06-04 18:49:13,070 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-06-04 18:49:13,079 - DEBUG - Requesting: http://10.0.0.50:8082/domain/4e02db34-016b-4b63-8018-86160ff1d58c 2026-06-04 18:49:13,136 - DEBUG - Requesting: http://10.0.0.50:8082/project/50e66f62-c63a-4776-84d4-5a988f57c28d 2026-06-04 18:49:13,238 - INFO - Validated that VN ctest-vn4-01374904 is not found in API Server 2026-06-04 18:49:13,250 - DEBUG - VN ctest-vn4-01374904 is not present in Agent 10.0.0.242 2026-06-04 18:49:13,258 - DEBUG - VN ctest-vn4-01374904 is not present in Agent 10.0.0.41 2026-06-04 18:49:13,258 - INFO - Validated that VN ctest-vn4-01374904 is not in any agent 2026-06-04 18:49:13,291 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01374904 info 2026-06-04 18:49:13,332 - INFO - Deleted policy ctest-policy1-83642634 2026-06-04 18:49:13,518 - DEBUG - policy ctest-policy1-83642634 is not found in API Server 2026-06-04 18:49:14,794 - DEBUG - No XMPP flaps were noticed during the test 2026-06-04 18:49:14,794 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-06-04 18:49:14,795 - INFO - -------------------------------------------------------------------------------- 2026-06-04 18:49:16,068 - DEBUG - No XMPP flaps were noticed during the test 2026-06-04 18:49:16,068 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2026-06-04 18:49:16,068 - INFO - -------------------------------------------------------------------------------- 2026-06-04 18:49:16,806 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-03541585, ID : 50e66f62-c63a-4776-84d4-5a988f57c28d