2026-02-10 02:56:40,206 - INFO - Domain Default found not creating 2026-02-10 02:56:40,366 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-58823623 not found, creating it 2026-02-10 02:56:40,820 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-58823623, ID : b64fd7f8-a92a-44e4-96d6-29dae9385606 2026-02-10 02:56:42,346 - INFO - ================================================================================ 2026-02-10 02:56:42,346 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 02:56:42,626 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2026-02-10 02:56:42,626 - INFO - Initial checks done. Running the testcase now 2026-02-10 02:56:42,626 - INFO - 2026-02-10 02:56:42,626 - INFO - ================================================================================ 2026-02-10 02:56:42,626 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-10 02:56:42,626 - 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-10 02:56:42,910 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2026-02-10 02:56:42,910 - INFO - Initial checks done. Running the testcase now 2026-02-10 02:56:42,910 - INFO - 2026-02-10 02:56:43,265 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58823623:ctest-vn4-43430009, 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-58823623:ctest-vn4-43430009, 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-58823623:ctest-vn4-43430009, 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-58823623:ctest-vn4-43430009, 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-10 02:56:43,770 - DEBUG - Response for create_network : {'network': {'id': 'd960bcfc-3d7e-4a61-9055-cc884afd6bf6', 'name': 'ctest-vn4-43430009', 'tenant_id': 'b64fd7f8a92a44e496d629dae9385606', 'project_id': 'b64fd7f8a92a44e496d629dae9385606', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58823623', 'ctest-vn4-43430009'], 'port_security_enabled': True, 'description': ''}} 2026-02-10 02:56:43,965 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c620c1d4-cd45-453a-b0bb-03e477aa3601', 'name': '', 'tenant_id': 'b64fd7f8a92a44e496d629dae9385606', 'network_id': 'd960bcfc-3d7e-4a61-9055-cc884afd6bf6', 'ip_version': 4, 'cidr': '165.243.49.192/26', 'allocation_pools': [{'start': '165.243.49.194', 'end': '165.243.49.254'}], 'gateway_ip': '165.243.49.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '165.243.49.194', 'tags': [], 'project_id': 'b64fd7f8a92a44e496d629dae9385606'}} 2026-02-10 02:56:44,097 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f82d14d8-b1c8-4442-95f0-bcb3fc6ba4b4', 'name': '', 'tenant_id': 'b64fd7f8a92a44e496d629dae9385606', 'network_id': 'd960bcfc-3d7e-4a61-9055-cc884afd6bf6', 'ip_version': 6, 'cidr': '339b:2bc7:e09b:fa5e:5ec6:3954::/96', 'allocation_pools': [{'start': '339b:2bc7:e09b:fa5e:5ec6:3954:0:2', 'end': '339b:2bc7:e09b:fa5e:5ec6:3954:ffff:fffe'}], 'gateway_ip': '339b:2bc7:e09b:fa5e:5ec6:3954:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '339b:2bc7:e09b:fa5e:5ec6:3954:0:2', 'tags': [], 'project_id': 'b64fd7f8a92a44e496d629dae9385606'}} 2026-02-10 02:56:44,115 - INFO - Created VN ctest-vn4-43430009 2026-02-10 02:56:44,164 - DEBUG - VN ctest-vn4-43430009 UUID is d960bcfc-3d7e-4a61-9055-cc884afd6bf6 2026-02-10 02:56:44,359 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd960bcfc-3d7e-4a61-9055-cc884afd6bf6', 'name': 'ctest-vn4-43430009', 'tenant_id': 'b64fd7f8a92a44e496d629dae9385606', 'project_id': 'b64fd7f8a92a44e496d629dae9385606', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c620c1d4-cd45-453a-b0bb-03e477aa3601', 'f82d14d8-b1c8-4442-95f0-bcb3fc6ba4b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58823623', 'ctest-vn4-43430009'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58823623', 'ctest-policy1-18705079']], 'subnet_ipam': [{'subnet_cidr': '165.243.49.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '339b:2bc7:e09b:fa5e:5ec6:3954::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-10 02:56:44,520 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-10 02:56:44,817 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-10 02:56:44,851 - DEBUG - Requesting: http://10.0.0.130:8082/domain/647bf87e-49fa-4bec-92d2-d2cef5d1bccb 2026-02-10 02:56:44,864 - DEBUG - Requesting: http://10.0.0.130:8082/project/b64fd7f8-a92a-44e4-96d6-29dae9385606 2026-02-10 02:56:44,937 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d960bcfc-3d7e-4a61-9055-cc884afd6bf6 2026-02-10 02:56:44,949 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d960bcfc-3d7e-4a61-9055-cc884afd6bf6 2026-02-10 02:56:44,958 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/2e34d653-c45e-444b-87f5-270542ab0cfd 2026-02-10 02:56:44,965 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/2e34d653-c45e-444b-87f5-270542ab0cfd 2026-02-10 02:56:44,971 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/d6f20a96-ef21-41fb-b871-10d2faa57837 2026-02-10 02:56:44,976 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 02:56:44,976 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d960bcfc-3d7e-4a61-9055-cc884afd6bf6 2026-02-10 02:56:44,984 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/2e34d653-c45e-444b-87f5-270542ab0cfd 2026-02-10 02:56:44,996 - INFO - Verified VN network id 12 for VN d960bcfc-3d7e-4a61-9055-cc884afd6bf6 2026-02-10 02:56:44,996 - INFO - Verifications in API Server for VN ctest-vn4-43430009 passed 2026-02-10 02:56:44,996 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d960bcfc-3d7e-4a61-9055-cc884afd6bf6 2026-02-10 02:56:45,005 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/2e34d653-c45e-444b-87f5-270542ab0cfd 2026-02-10 02:56:45,011 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/2e34d653-c45e-444b-87f5-270542ab0cfd 2026-02-10 02:56:45,017 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/d6f20a96-ef21-41fb-b871-10d2faa57837 2026-02-10 02:56:45,027 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58823623:ctest-vn4-43430009', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58823623', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15663727295544052321', 'uuid-lslong': '10400443800227769334'}, 'enable': 'true', 'created': '2026-02-10T02:56:43', 'last-modified': '2026-02-10T02:56:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.689530'} 2026-02-10 02:56:45,036 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-10 02:56:45,036 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43430009 passed 2026-02-10 02:56:45,036 - DEBUG - ====Verifying policy data for ctest-vn4-43430009 in API_Server ====== 2026-02-10 02:56:45,036 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-10 02:56:45,042 - DEBUG - Requesting: http://10.0.0.130:8082/domain/647bf87e-49fa-4bec-92d2-d2cef5d1bccb 2026-02-10 02:56:45,053 - DEBUG - Requesting: http://10.0.0.130:8082/project/b64fd7f8-a92a-44e4-96d6-29dae9385606 2026-02-10 02:56:45,124 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/d960bcfc-3d7e-4a61-9055-cc884afd6bf6 2026-02-10 02:56:45,136 - DEBUG - ==>Verifying data for policy with id: 4ba763ad-2f9b-4a2f-b02e-619cdb66ee45, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58823623', 'ctest-policy1-18705079'] 2026-02-10 02:56:45,136 - INFO - VN ctest-vn4-43430009 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-10 02:56:45,136 - DEBUG - Verifying the vn in opserver 2026-02-10 02:56:45,136 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58823623:ctest-vn4-43430009 virtual network link through opserver 10.0.0.130 2026-02-10 02:56:45,136 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-10 02:56:45,438 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2026-02-10 02:56:45,507 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58823623:ctest-vn4-43430009', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58823623:ctest-vn4-43430009?flat'} 2026-02-10 02:56:45,507 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58823623:ctest-vn4-43430009 is found in opserver 2026-02-10 02:56:45,516 - DEBUG - Do not have enough data to verify VN in agent 2026-02-10 02:56:45,521 - DEBUG - VRF ids for VN ctest-vn4-43430009: {} 2026-02-10 02:56:45,521 - DEBUG - ====Verifying data for ctest-policy1-18705079 in API_Server ====== 2026-02-10 02:56:45,521 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-10 02:56:45,526 - DEBUG - Requesting: http://10.0.0.130:8082/domain/647bf87e-49fa-4bec-92d2-d2cef5d1bccb 2026-02-10 02:56:45,536 - DEBUG - Requesting: http://10.0.0.130:8082/project/b64fd7f8-a92a-44e4-96d6-29dae9385606 2026-02-10 02:56:45,609 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/4ba763ad-2f9b-4a2f-b02e-619cdb66ee45 2026-02-10 02:56:45,618 - INFO - Verified policy ctest-policy1-18705079 in API Server, Result: True 2026-02-10 02:56:45,618 - INFO - Done with setup and verification, moving onto test .. 2026-02-10 02:56:45,626 - INFO - Deleting VN ctest-vn4-43430009 2026-02-10 02:56:45,740 - DEBUG - Response for deleting network () 2026-02-10 02:56:45,740 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/2e34d653-c45e-444b-87f5-270542ab0cfd 2026-02-10 02:56:45,745 - DEBUG - Response Code: 404 2026-02-10 02:56:45,745 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2026-02-10 02:56:45,750 - DEBUG - Requesting: http://10.0.0.130:8082/domain/647bf87e-49fa-4bec-92d2-d2cef5d1bccb 2026-02-10 02:56:45,806 - DEBUG - Requesting: http://10.0.0.130:8082/project/b64fd7f8-a92a-44e4-96d6-29dae9385606 2026-02-10 02:56:45,875 - INFO - Validated that VN ctest-vn4-43430009 is not found in API Server 2026-02-10 02:56:45,884 - DEBUG - VN ctest-vn4-43430009 is not present in Agent 10.0.0.130 2026-02-10 02:56:45,884 - INFO - Validated that VN ctest-vn4-43430009 is not in any agent 2026-02-10 02:56:45,897 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43430009 info 2026-02-10 02:56:45,918 - INFO - Deleted policy ctest-policy1-18705079 2026-02-10 02:56:46,084 - DEBUG - policy ctest-policy1-18705079 is not found in API Server 2026-02-10 02:56:46,342 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 02:56:46,342 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-10 02:56:46,342 - INFO - -------------------------------------------------------------------------------- 2026-02-10 02:56:46,634 - DEBUG - No XMPP flaps were noticed during the test
2026-02-10 02:56:46,634 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-10 02:56:46,634 - INFO - -------------------------------------------------------------------------------- 2026-02-10 02:56:47,313 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-58823623, ID : b64fd7f8-a92a-44e4-96d6-29dae9385606