2026-01-28 16:18:25,386 - INFO - Domain Default found not creating 2026-01-28 16:18:25,540 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02741278 not found, creating it 2026-01-28 16:18:25,973 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02741278, ID : dac7319b-de07-494e-8e13-3182951f641d 2026-01-28 16:18:27,446 - INFO - ================================================================================ 2026-01-28 16:18:27,446 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 16:18:27,700 - WARNING - Test is running with cores: {'10.0.0.22': ['core.isc-loop-0002.71495.cn-jenkins-deploy-platform-ansible-os-5095-1.1769616681']} 2026-01-28 16:18:27,707 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-01-28 16:18:27,707 - INFO - Initial checks done. Running the testcase now 2026-01-28 16:18:27,707 - INFO - 2026-01-28 16:18:27,707 - INFO - ================================================================================ 2026-01-28 16:18:27,707 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 16:18:27,707 - 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-28 16:18:27,988 - WARNING - Test is running with cores: {'10.0.0.22': ['core.isc-loop-0002.71495.cn-jenkins-deploy-platform-ansible-os-5095-1.1769616681']} 2026-01-28 16:18:27,993 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-01-28 16:18:27,993 - INFO - Initial checks done. Running the testcase now 2026-01-28 16:18:27,993 - INFO - 2026-01-28 16:18:28,332 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02741278:ctest-vn4-06789691, 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-02741278:ctest-vn4-06789691, 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-02741278:ctest-vn4-06789691, 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-02741278:ctest-vn4-06789691, 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-28 16:18:28,826 - DEBUG - Response for create_network : {'network': {'id': '5af17607-9a83-4786-b9b0-c7538f54c1c9', 'name': 'ctest-vn4-06789691', 'tenant_id': 'dac7319bde07494e8e133182951f641d', 'project_id': 'dac7319bde07494e8e133182951f641d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02741278', 'ctest-vn4-06789691'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 16:18:28,989 - DEBUG - Response for create_subnet : {'subnet': {'id': '540639d4-5395-4ca8-b077-5d19b736fb81', 'name': '', 'tenant_id': 'dac7319bde07494e8e133182951f641d', 'network_id': '5af17607-9a83-4786-b9b0-c7538f54c1c9', 'ip_version': 4, 'cidr': '72.13.185.192/26', 'allocation_pools': [{'start': '72.13.185.194', 'end': '72.13.185.254'}], 'gateway_ip': '72.13.185.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.13.185.194', 'tags': [], 'project_id': 'dac7319bde07494e8e133182951f641d'}} 2026-01-28 16:18:29,144 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8abd64e-d760-4b37-a5a2-d590037da934', 'name': '', 'tenant_id': 'dac7319bde07494e8e133182951f641d', 'network_id': '5af17607-9a83-4786-b9b0-c7538f54c1c9', 'ip_version': 6, 'cidr': '23de:e667:5965:2b47:5164:b27e::/96', 'allocation_pools': [{'start': '23de:e667:5965:2b47:5164:b27e:0:2', 'end': '23de:e667:5965:2b47:5164:b27e:ffff:fffe'}], 'gateway_ip': '23de:e667:5965:2b47:5164:b27e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23de:e667:5965:2b47:5164:b27e:0:2', 'tags': [], 'project_id': 'dac7319bde07494e8e133182951f641d'}} 2026-01-28 16:18:29,162 - INFO - Created VN ctest-vn4-06789691 2026-01-28 16:18:29,212 - DEBUG - VN ctest-vn4-06789691 UUID is 5af17607-9a83-4786-b9b0-c7538f54c1c9 2026-01-28 16:18:29,407 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5af17607-9a83-4786-b9b0-c7538f54c1c9', 'name': 'ctest-vn4-06789691', 'tenant_id': 'dac7319bde07494e8e133182951f641d', 'project_id': 'dac7319bde07494e8e133182951f641d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['540639d4-5395-4ca8-b077-5d19b736fb81', 'b8abd64e-d760-4b37-a5a2-d590037da934'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02741278', 'ctest-vn4-06789691'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02741278', 'ctest-policy1-70507734']], 'subnet_ipam': [{'subnet_cidr': '72.13.185.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '23de:e667:5965:2b47:5164:b27e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 16:18:29,560 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 16:18:29,859 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 16:18:29,887 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8fc58ad7-3bf3-4fa7-9ece-4d0ee8eb2150 2026-01-28 16:18:29,899 - DEBUG - Requesting: http://10.0.0.22:8082/project/dac7319b-de07-494e-8e13-3182951f641d 2026-01-28 16:18:29,963 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5af17607-9a83-4786-b9b0-c7538f54c1c9 2026-01-28 16:18:29,973 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5af17607-9a83-4786-b9b0-c7538f54c1c9 2026-01-28 16:18:29,981 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8436fd3f-02a1-4e40-9557-3414220dd410 2026-01-28 16:18:29,987 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8436fd3f-02a1-4e40-9557-3414220dd410 2026-01-28 16:18:29,993 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5af5db21-0ce1-448d-bf9a-04386d2cedbe 2026-01-28 16:18:29,997 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 16:18:29,998 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5af17607-9a83-4786-b9b0-c7538f54c1c9 2026-01-28 16:18:30,005 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8436fd3f-02a1-4e40-9557-3414220dd410 2026-01-28 16:18:30,017 - INFO - Verified VN network id 10 for VN 5af17607-9a83-4786-b9b0-c7538f54c1c9 2026-01-28 16:18:30,017 - INFO - Verifications in API Server for VN ctest-vn4-06789691 passed 2026-01-28 16:18:30,017 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5af17607-9a83-4786-b9b0-c7538f54c1c9 2026-01-28 16:18:30,024 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8436fd3f-02a1-4e40-9557-3414220dd410 2026-01-28 16:18:30,029 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8436fd3f-02a1-4e40-9557-3414220dd410 2026-01-28 16:18:30,035 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5af5db21-0ce1-448d-bf9a-04386d2cedbe 2026-01-28 16:18:30,044 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02741278:ctest-vn4-06789691', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02741278', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6553148707829925766', 'uuid-lslong': '13380413654618653129'}, 'enable': 'true', 'created': '2026-01-28T16:18:28', 'last-modified': '2026-01-28T16:18:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.662495'} 2026-01-28 16:18:30,050 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 16:18:30,050 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06789691 passed 2026-01-28 16:18:30,050 - DEBUG - ====Verifying policy data for ctest-vn4-06789691 in API_Server ====== 2026-01-28 16:18:30,050 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 16:18:30,054 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8fc58ad7-3bf3-4fa7-9ece-4d0ee8eb2150 2026-01-28 16:18:30,064 - DEBUG - Requesting: http://10.0.0.22:8082/project/dac7319b-de07-494e-8e13-3182951f641d 2026-01-28 16:18:30,139 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5af17607-9a83-4786-b9b0-c7538f54c1c9 2026-01-28 16:18:30,148 - DEBUG - ==>Verifying data for policy with id: 965a0c9a-fceb-4464-828e-bc48b4daaece, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02741278', 'ctest-policy1-70507734'] 2026-01-28 16:18:30,148 - INFO - VN ctest-vn4-06789691 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 16:18:30,148 - DEBUG - Verifying the vn in opserver 2026-01-28 16:18:30,148 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02741278:ctest-vn4-06789691 virtual network link through opserver 10.0.0.22 2026-01-28 16:18:30,148 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-28 16:18:30,442 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-01-28 16:18:30,524 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02741278:ctest-vn4-06789691', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02741278:ctest-vn4-06789691?flat'} 2026-01-28 16:18:30,524 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02741278:ctest-vn4-06789691 is found in opserver 2026-01-28 16:18:30,534 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 16:18:30,538 - DEBUG - VRF ids for VN ctest-vn4-06789691: {} 2026-01-28 16:18:30,539 - DEBUG - ====Verifying data for ctest-policy1-70507734 in API_Server ====== 2026-01-28 16:18:30,539 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 16:18:30,545 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8fc58ad7-3bf3-4fa7-9ece-4d0ee8eb2150 2026-01-28 16:18:30,607 - DEBUG - Requesting: http://10.0.0.22:8082/project/dac7319b-de07-494e-8e13-3182951f641d 2026-01-28 16:18:30,700 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/965a0c9a-fceb-4464-828e-bc48b4daaece 2026-01-28 16:18:30,717 - INFO - Verified policy ctest-policy1-70507734 in API Server, Result: True 2026-01-28 16:18:30,717 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 16:18:30,732 - INFO - Deleting VN ctest-vn4-06789691 2026-01-28 16:18:31,004 - DEBUG - Response for deleting network () 2026-01-28 16:18:31,004 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8436fd3f-02a1-4e40-9557-3414220dd410 2026-01-28 16:18:31,012 - DEBUG - Response Code: 404 2026-01-28 16:18:31,012 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-01-28 16:18:31,019 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8fc58ad7-3bf3-4fa7-9ece-4d0ee8eb2150 2026-01-28 16:18:31,073 - DEBUG - Requesting: http://10.0.0.22:8082/project/dac7319b-de07-494e-8e13-3182951f641d 2026-01-28 16:18:31,140 - INFO - Validated that VN ctest-vn4-06789691 is not found in API Server 2026-01-28 16:18:31,148 - DEBUG - VN ctest-vn4-06789691 is not present in Agent 10.0.0.22 2026-01-28 16:18:31,148 - INFO - Validated that VN ctest-vn4-06789691 is not in any agent 2026-01-28 16:18:31,159 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06789691 info 2026-01-28 16:18:31,182 - INFO - Deleted policy ctest-policy1-70507734 2026-01-28 16:18:31,340 - DEBUG - policy ctest-policy1-70507734 is not found in API Server 2026-01-28 16:18:31,596 - DEBUG - No XMPP flaps were noticed during the test
2026-01-28 16:18:31,596 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-28 16:18:31,597 - INFO - -------------------------------------------------------------------------------- 2026-01-28 16:18:31,886 - DEBUG - No XMPP flaps were noticed during the test
2026-01-28 16:18:31,887 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-28 16:18:31,887 - INFO - -------------------------------------------------------------------------------- 2026-01-28 16:18:32,561 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-02741278, ID : dac7319b-de07-494e-8e13-3182951f641d