2026-02-05 02:09:14,379 - INFO - Domain Default found not creating 2026-02-05 02:09:14,586 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-86796430 not found, creating it 2026-02-05 02:09:15,110 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-86796430, ID : ff308b82-4cb2-4182-b45e-1984ddfe5d0f 2026-02-05 02:09:16,892 - INFO - ================================================================================ 2026-02-05 02:09:16,893 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 02:09:17,155 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with 2026-02-05 02:09:17,155 - INFO - Initial checks done. Running the testcase now 2026-02-05 02:09:17,155 - INFO - 2026-02-05 02:09:17,155 - INFO - ================================================================================ 2026-02-05 02:09:17,155 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 02:09:17,155 - 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-02-05 02:09:17,461 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.14': '0'}} with 2026-02-05 02:09:17,461 - INFO - Initial checks done. Running the testcase now 2026-02-05 02:09:17,462 - INFO - 2026-02-05 02:09:17,863 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86796430:ctest-vn4-76030237, 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-86796430:ctest-vn4-76030237, 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-86796430:ctest-vn4-76030237, 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-86796430:ctest-vn4-76030237, 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-02-05 02:09:18,402 - DEBUG - Response for create_network : {'network': {'id': '2bda73a1-be65-4ae0-b70d-0f5f2c287ef4', 'name': 'ctest-vn4-76030237', 'tenant_id': 'ff308b824cb24182b45e1984ddfe5d0f', 'project_id': 'ff308b824cb24182b45e1984ddfe5d0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86796430', 'ctest-vn4-76030237'], 'port_security_enabled': True, 'description': ''}} 2026-02-05 02:09:18,588 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ff3c29d-fa88-4908-b02f-58b41e38b260', 'name': '', 'tenant_id': 'ff308b824cb24182b45e1984ddfe5d0f', 'network_id': '2bda73a1-be65-4ae0-b70d-0f5f2c287ef4', 'ip_version': 4, 'cidr': '136.196.249.0/26', 'allocation_pools': [{'start': '136.196.249.2', 'end': '136.196.249.62'}], 'gateway_ip': '136.196.249.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '136.196.249.2', 'tags': [], 'project_id': 'ff308b824cb24182b45e1984ddfe5d0f'}} 2026-02-05 02:09:18,770 - DEBUG - Response for create_subnet : {'subnet': {'id': '93a19beb-4994-4a6f-b43b-92c6759c4dd7', 'name': '', 'tenant_id': 'ff308b824cb24182b45e1984ddfe5d0f', 'network_id': '2bda73a1-be65-4ae0-b70d-0f5f2c287ef4', 'ip_version': 6, 'cidr': '2503:b85d:3e27:6e8c:be8f:b5af::/96', 'allocation_pools': [{'start': '2503:b85d:3e27:6e8c:be8f:b5af:0:2', 'end': '2503:b85d:3e27:6e8c:be8f:b5af:ffff:fffe'}], 'gateway_ip': '2503:b85d:3e27:6e8c:be8f:b5af:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2503:b85d:3e27:6e8c:be8f:b5af:0:2', 'tags': [], 'project_id': 'ff308b824cb24182b45e1984ddfe5d0f'}} 2026-02-05 02:09:18,796 - INFO - Created VN ctest-vn4-76030237 2026-02-05 02:09:18,848 - DEBUG - VN ctest-vn4-76030237 UUID is 2bda73a1-be65-4ae0-b70d-0f5f2c287ef4 2026-02-05 02:09:19,094 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2bda73a1-be65-4ae0-b70d-0f5f2c287ef4', 'name': 'ctest-vn4-76030237', 'tenant_id': 'ff308b824cb24182b45e1984ddfe5d0f', 'project_id': 'ff308b824cb24182b45e1984ddfe5d0f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3ff3c29d-fa88-4908-b02f-58b41e38b260', '93a19beb-4994-4a6f-b43b-92c6759c4dd7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86796430', 'ctest-vn4-76030237'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86796430', 'ctest-policy1-51732545']], 'subnet_ipam': [{'subnet_cidr': '136.196.249.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2503:b85d:3e27:6e8c:be8f:b5af::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-05 02:09:19,260 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-05 02:09:19,599 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-05 02:09:19,632 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e3d983cc-bba4-47bb-bee9-9ee7e244d68d 2026-02-05 02:09:19,648 - DEBUG - Requesting: http://10.0.0.41:8082/project/ff308b82-4cb2-4182-b45e-1984ddfe5d0f 2026-02-05 02:09:19,720 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2bda73a1-be65-4ae0-b70d-0f5f2c287ef4 2026-02-05 02:09:19,733 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2bda73a1-be65-4ae0-b70d-0f5f2c287ef4 2026-02-05 02:09:19,743 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/00dc83c1-e0e2-4c3e-b2c5-64d4c5d77dcc 2026-02-05 02:09:19,751 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/00dc83c1-e0e2-4c3e-b2c5-64d4c5d77dcc 2026-02-05 02:09:19,758 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/074dc058-8a99-43b4-a614-396044e05cfb 2026-02-05 02:09:19,764 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 02:09:19,764 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2bda73a1-be65-4ae0-b70d-0f5f2c287ef4 2026-02-05 02:09:19,774 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/00dc83c1-e0e2-4c3e-b2c5-64d4c5d77dcc 2026-02-05 02:09:19,791 - INFO - Verified VN network id 11 for VN 2bda73a1-be65-4ae0-b70d-0f5f2c287ef4 2026-02-05 02:09:19,791 - INFO - Verifications in API Server for VN ctest-vn4-76030237 passed 2026-02-05 02:09:19,792 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2bda73a1-be65-4ae0-b70d-0f5f2c287ef4 2026-02-05 02:09:19,802 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/00dc83c1-e0e2-4c3e-b2c5-64d4c5d77dcc 2026-02-05 02:09:19,810 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/00dc83c1-e0e2-4c3e-b2c5-64d4c5d77dcc 2026-02-05 02:09:19,818 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/074dc058-8a99-43b4-a614-396044e05cfb 2026-02-05 02:09:19,832 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86796430:ctest-vn4-76030237', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-86796430', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3159965227075062496', 'uuid-lslong': '13190215785075212020'}, 'enable': 'true', 'created': '2026-02-05T02:09:18', 'last-modified': '2026-02-05T02:09:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.782912'} 2026-02-05 02:09:19,839 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 02:09:19,839 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76030237 passed 2026-02-05 02:09:19,839 - DEBUG - ====Verifying policy data for ctest-vn4-76030237 in API_Server ====== 2026-02-05 02:09:19,839 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-05 02:09:19,846 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e3d983cc-bba4-47bb-bee9-9ee7e244d68d 2026-02-05 02:09:19,856 - DEBUG - Requesting: http://10.0.0.41:8082/project/ff308b82-4cb2-4182-b45e-1984ddfe5d0f 2026-02-05 02:09:19,927 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/2bda73a1-be65-4ae0-b70d-0f5f2c287ef4 2026-02-05 02:09:19,939 - DEBUG - ==>Verifying data for policy with id: 4076e49e-5fcb-4195-8149-51a2c7e3bae8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86796430', 'ctest-policy1-51732545'] 2026-02-05 02:09:19,939 - INFO - VN ctest-vn4-76030237 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-05 02:09:19,939 - DEBUG - Verifying the vn in opserver 2026-02-05 02:09:19,939 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86796430:ctest-vn4-76030237 virtual network link through opserver 10.0.0.41 2026-02-05 02:09:19,939 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-02-05 02:09:20,283 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-02-05 02:09:20,351 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86796430:ctest-vn4-76030237', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86796430:ctest-vn4-76030237?flat'} 2026-02-05 02:09:20,352 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86796430:ctest-vn4-76030237 is found in opserver 2026-02-05 02:09:20,363 - DEBUG - Do not have enough data to verify VN in agent 2026-02-05 02:09:20,368 - DEBUG - VRF ids for VN ctest-vn4-76030237: {} 2026-02-05 02:09:20,368 - DEBUG - ====Verifying data for ctest-policy1-51732545 in API_Server ====== 2026-02-05 02:09:20,369 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-05 02:09:20,376 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e3d983cc-bba4-47bb-bee9-9ee7e244d68d 2026-02-05 02:09:20,390 - DEBUG - Requesting: http://10.0.0.41:8082/project/ff308b82-4cb2-4182-b45e-1984ddfe5d0f 2026-02-05 02:09:20,472 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/4076e49e-5fcb-4195-8149-51a2c7e3bae8 2026-02-05 02:09:20,484 - INFO - Verified policy ctest-policy1-51732545 in API Server, Result: True 2026-02-05 02:09:20,484 - INFO - Done with setup and verification, moving onto test .. 2026-02-05 02:09:20,494 - INFO - Deleting VN ctest-vn4-76030237 2026-02-05 02:09:20,652 - DEBUG - Response for deleting network () 2026-02-05 02:09:20,652 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/00dc83c1-e0e2-4c3e-b2c5-64d4c5d77dcc 2026-02-05 02:09:20,660 - DEBUG - Response Code: 404 2026-02-05 02:09:20,660 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-02-05 02:09:20,668 - DEBUG - Requesting: http://10.0.0.41:8082/domain/e3d983cc-bba4-47bb-bee9-9ee7e244d68d 2026-02-05 02:09:20,729 - DEBUG - Requesting: http://10.0.0.41:8082/project/ff308b82-4cb2-4182-b45e-1984ddfe5d0f 2026-02-05 02:09:20,806 - INFO - Validated that VN ctest-vn4-76030237 is not found in API Server 2026-02-05 02:09:20,817 - DEBUG - VN ctest-vn4-76030237 is not present in Agent 10.0.0.41 2026-02-05 02:09:20,817 - INFO - Validated that VN ctest-vn4-76030237 is not in any agent 2026-02-05 02:09:20,831 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76030237 info 2026-02-05 02:09:20,862 - INFO - Deleted policy ctest-policy1-51732545 2026-02-05 02:09:21,035 - DEBUG - policy ctest-policy1-51732545 is not found in API Server 2026-02-05 02:09:21,290 - DEBUG - No XMPP flaps were noticed during the test 2026-02-05 02:09:21,290 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-02-05 02:09:21,290 - INFO - -------------------------------------------------------------------------------- 2026-02-05 02:09:21,586 - DEBUG - No XMPP flaps were noticed during the test 2026-02-05 02:09:21,586 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-02-05 02:09:21,587 - INFO - -------------------------------------------------------------------------------- 2026-02-05 02:09:22,361 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-86796430, ID : ff308b82-4cb2-4182-b45e-1984ddfe5d0f