2026-02-01 16:21:24,885 - INFO - Domain Default found not creating 2026-02-01 16:21:25,106 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-82325588 not found, creating it 2026-02-01 16:21:25,615 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-82325588, ID : 404d7229-effd-4673-aab3-44059feb5809 2026-02-01 16:21:27,281 - INFO - ================================================================================ 2026-02-01 16:21:27,281 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-01 16:21:27,543 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-02-01 16:21:27,543 - INFO - Initial checks done. Running the testcase now 2026-02-01 16:21:27,543 - INFO - 2026-02-01 16:21:27,543 - INFO - ================================================================================ 2026-02-01 16:21:27,543 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-01 16:21:27,543 - 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-01 16:21:27,842 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-02-01 16:21:27,842 - INFO - Initial checks done. Running the testcase now 2026-02-01 16:21:27,842 - INFO - 2026-02-01 16:21:28,215 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82325588:ctest-vn4-76033787, 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-82325588:ctest-vn4-76033787, 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-82325588:ctest-vn4-76033787, 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-82325588:ctest-vn4-76033787, 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-01 16:21:28,786 - DEBUG - Response for create_network : {'network': {'id': '92dfd03b-d7b9-452a-82dd-95c1d65aa30e', 'name': 'ctest-vn4-76033787', 'tenant_id': '404d7229effd4673aab344059feb5809', 'project_id': '404d7229effd4673aab344059feb5809', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82325588', 'ctest-vn4-76033787'], 'port_security_enabled': True, 'description': ''}} 2026-02-01 16:21:28,963 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b6b4097c-1825-431c-ad71-9152fad1fd4c', 'name': '', 'tenant_id': '404d7229effd4673aab344059feb5809', 'network_id': '92dfd03b-d7b9-452a-82dd-95c1d65aa30e', 'ip_version': 4, 'cidr': '126.84.29.64/26', 'allocation_pools': [{'start': '126.84.29.66', 'end': '126.84.29.126'}], 'gateway_ip': '126.84.29.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.84.29.66', 'tags': [], 'project_id': '404d7229effd4673aab344059feb5809'}} 2026-02-01 16:21:29,166 - DEBUG - Response for create_subnet : {'subnet': {'id': '69ca5497-b6a7-42ac-9845-a3186b3a3673', 'name': '', 'tenant_id': '404d7229effd4673aab344059feb5809', 'network_id': '92dfd03b-d7b9-452a-82dd-95c1d65aa30e', 'ip_version': 6, 'cidr': '38e1:a70a:eb32:84ca:146a:be2f::/96', 'allocation_pools': [{'start': '38e1:a70a:eb32:84ca:146a:be2f:0:2', 'end': '38e1:a70a:eb32:84ca:146a:be2f:ffff:fffe'}], 'gateway_ip': '38e1:a70a:eb32:84ca:146a:be2f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38e1:a70a:eb32:84ca:146a:be2f:0:2', 'tags': [], 'project_id': '404d7229effd4673aab344059feb5809'}} 2026-02-01 16:21:29,190 - INFO - Created VN ctest-vn4-76033787 2026-02-01 16:21:29,244 - DEBUG - VN ctest-vn4-76033787 UUID is 92dfd03b-d7b9-452a-82dd-95c1d65aa30e 2026-02-01 16:21:29,485 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '92dfd03b-d7b9-452a-82dd-95c1d65aa30e', 'name': 'ctest-vn4-76033787', 'tenant_id': '404d7229effd4673aab344059feb5809', 'project_id': '404d7229effd4673aab344059feb5809', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b6b4097c-1825-431c-ad71-9152fad1fd4c', '69ca5497-b6a7-42ac-9845-a3186b3a3673'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82325588', 'ctest-vn4-76033787'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82325588', 'ctest-policy1-30504985']], 'subnet_ipam': [{'subnet_cidr': '126.84.29.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38e1:a70a:eb32:84ca:146a:be2f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-01 16:21:29,652 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-01 16:21:29,961 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-01 16:21:29,998 - DEBUG - Requesting: http://10.0.0.33:8082/domain/54c263ed-51a6-4c79-97ae-dd4212c7dd74 2026-02-01 16:21:30,014 - DEBUG - Requesting: http://10.0.0.33:8082/project/404d7229-effd-4673-aab3-44059feb5809 2026-02-01 16:21:30,098 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/92dfd03b-d7b9-452a-82dd-95c1d65aa30e 2026-02-01 16:21:30,113 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/92dfd03b-d7b9-452a-82dd-95c1d65aa30e 2026-02-01 16:21:30,126 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6df2493d-b933-4875-8e9c-0e1f46b49128 2026-02-01 16:21:30,136 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6df2493d-b933-4875-8e9c-0e1f46b49128 2026-02-01 16:21:30,144 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/84e65e77-b54f-4ca3-8cb8-d4fb9db98dbc 2026-02-01 16:21:30,152 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-01 16:21:30,152 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/92dfd03b-d7b9-452a-82dd-95c1d65aa30e 2026-02-01 16:21:30,164 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6df2493d-b933-4875-8e9c-0e1f46b49128 2026-02-01 16:21:30,183 - INFO - Verified VN network id 11 for VN 92dfd03b-d7b9-452a-82dd-95c1d65aa30e 2026-02-01 16:21:30,183 - INFO - Verifications in API Server for VN ctest-vn4-76033787 passed 2026-02-01 16:21:30,183 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/92dfd03b-d7b9-452a-82dd-95c1d65aa30e 2026-02-01 16:21:30,197 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6df2493d-b933-4875-8e9c-0e1f46b49128 2026-02-01 16:21:30,206 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6df2493d-b933-4875-8e9c-0e1f46b49128 2026-02-01 16:21:30,214 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/84e65e77-b54f-4ca3-8cb8-d4fb9db98dbc 2026-02-01 16:21:30,228 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82325588:ctest-vn4-76033787', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-82325588', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10583406604784846122', 'uuid-lslong': '9429857854541177614'}, 'enable': 'true', 'created': '2026-02-01T16:21:28', 'last-modified': '2026-02-01T16:21:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.777290'} 2026-02-01 16:21:30,236 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-01 16:21:30,236 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-76033787 passed 2026-02-01 16:21:30,237 - DEBUG - ====Verifying policy data for ctest-vn4-76033787 in API_Server ====== 2026-02-01 16:21:30,237 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-01 16:21:30,245 - DEBUG - Requesting: http://10.0.0.33:8082/domain/54c263ed-51a6-4c79-97ae-dd4212c7dd74 2026-02-01 16:21:30,259 - DEBUG - Requesting: http://10.0.0.33:8082/project/404d7229-effd-4673-aab3-44059feb5809 2026-02-01 16:21:30,336 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/92dfd03b-d7b9-452a-82dd-95c1d65aa30e 2026-02-01 16:21:30,349 - DEBUG - ==>Verifying data for policy with id: 762ef119-05b5-4a1f-b11e-544357fbeb26, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-82325588', 'ctest-policy1-30504985'] 2026-02-01 16:21:30,349 - INFO - VN ctest-vn4-76033787 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-01 16:21:30,349 - DEBUG - Verifying the vn in opserver 2026-02-01 16:21:30,350 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82325588:ctest-vn4-76033787 virtual network link through opserver 10.0.0.33 2026-02-01 16:21:30,350 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-01 16:21:30,660 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-02-01 16:21:30,739 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82325588:ctest-vn4-76033787', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82325588:ctest-vn4-76033787?flat'} 2026-02-01 16:21:30,739 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-82325588:ctest-vn4-76033787 is found in opserver 2026-02-01 16:21:30,751 - DEBUG - Do not have enough data to verify VN in agent 2026-02-01 16:21:30,756 - DEBUG - VRF ids for VN ctest-vn4-76033787: {} 2026-02-01 16:21:30,757 - DEBUG - ====Verifying data for ctest-policy1-30504985 in API_Server ====== 2026-02-01 16:21:30,757 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-01 16:21:30,765 - DEBUG - Requesting: http://10.0.0.33:8082/domain/54c263ed-51a6-4c79-97ae-dd4212c7dd74 2026-02-01 16:21:30,778 - DEBUG - Requesting: http://10.0.0.33:8082/project/404d7229-effd-4673-aab3-44059feb5809 2026-02-01 16:21:30,856 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/762ef119-05b5-4a1f-b11e-544357fbeb26 2026-02-01 16:21:30,867 - INFO - Verified policy ctest-policy1-30504985 in API Server, Result: True 2026-02-01 16:21:30,867 - INFO - Done with setup and verification, moving onto test .. 2026-02-01 16:21:30,875 - INFO - Deleting VN ctest-vn4-76033787 2026-02-01 16:21:31,008 - DEBUG - Response for deleting network () 2026-02-01 16:21:31,008 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6df2493d-b933-4875-8e9c-0e1f46b49128 2026-02-01 16:21:31,015 - DEBUG - Response Code: 404 2026-02-01 16:21:31,016 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-02-01 16:21:31,022 - DEBUG - Requesting: http://10.0.0.33:8082/domain/54c263ed-51a6-4c79-97ae-dd4212c7dd74 2026-02-01 16:21:31,082 - DEBUG - Requesting: http://10.0.0.33:8082/project/404d7229-effd-4673-aab3-44059feb5809 2026-02-01 16:21:31,165 - INFO - Validated that VN ctest-vn4-76033787 is not found in API Server 2026-02-01 16:21:31,179 - DEBUG - VN ctest-vn4-76033787 is not present in Agent 10.0.0.33 2026-02-01 16:21:31,179 - INFO - Validated that VN ctest-vn4-76033787 is not in any agent 2026-02-01 16:21:31,199 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-76033787 info 2026-02-01 16:21:31,232 - INFO - Deleted policy ctest-policy1-30504985 2026-02-01 16:21:31,412 - DEBUG - policy ctest-policy1-30504985 is not found in API Server 2026-02-01 16:21:31,684 - DEBUG - No XMPP flaps were noticed during the test
2026-02-01 16:21:31,684 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-01 16:21:31,684 - INFO - -------------------------------------------------------------------------------- 2026-02-01 16:21:31,972 - DEBUG - No XMPP flaps were noticed during the test
2026-02-01 16:21:31,972 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-01 16:21:31,973 - INFO - -------------------------------------------------------------------------------- 2026-02-01 16:21:32,725 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-82325588, ID : 404d7229-effd-4673-aab3-44059feb5809