2026-01-12 02:03:43,451 - INFO - Domain Default found not creating 2026-01-12 02:03:43,601 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-22665924 not found, creating it 2026-01-12 02:03:44,022 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-22665924, ID : 9555edb3-35d0-4a0c-9fd5-ed5c4c7aa747 2026-01-12 02:03:45,536 - INFO - ================================================================================ 2026-01-12 02:03:45,536 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-12 02:03:45,784 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2026-01-12 02:03:45,784 - INFO - Initial checks done. Running the testcase now 2026-01-12 02:03:45,784 - INFO - 2026-01-12 02:03:45,784 - INFO - ================================================================================ 2026-01-12 02:03:45,784 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-12 02:03:45,784 - 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-12 02:03:46,075 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.254': '0'}} with 2026-01-12 02:03:46,075 - INFO - Initial checks done. Running the testcase now 2026-01-12 02:03:46,075 - INFO - 2026-01-12 02:03:46,421 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22665924:ctest-vn4-20155710, 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-22665924:ctest-vn4-20155710, 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-22665924:ctest-vn4-20155710, 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-22665924:ctest-vn4-20155710, 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-12 02:03:46,908 - DEBUG - Response for create_network : {'network': {'id': '17c99f11-0083-49d7-b5dc-324fb67d9105', 'name': 'ctest-vn4-20155710', 'tenant_id': '9555edb335d04a0c9fd5ed5c4c7aa747', 'project_id': '9555edb335d04a0c9fd5ed5c4c7aa747', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22665924', 'ctest-vn4-20155710'], 'port_security_enabled': True, 'description': ''}} 2026-01-12 02:03:47,104 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6cfc3f3-c0eb-44dd-8c05-576715ff5098', 'name': '', 'tenant_id': '9555edb335d04a0c9fd5ed5c4c7aa747', 'network_id': '17c99f11-0083-49d7-b5dc-324fb67d9105', 'ip_version': 4, 'cidr': '16.53.191.64/26', 'allocation_pools': [{'start': '16.53.191.66', 'end': '16.53.191.126'}], 'gateway_ip': '16.53.191.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '16.53.191.66', 'tags': [], 'project_id': '9555edb335d04a0c9fd5ed5c4c7aa747'}} 2026-01-12 02:03:47,313 - DEBUG - Response for create_subnet : {'subnet': {'id': '94ea81d7-ce39-402a-b4da-1a18666d2291', 'name': '', 'tenant_id': '9555edb335d04a0c9fd5ed5c4c7aa747', 'network_id': '17c99f11-0083-49d7-b5dc-324fb67d9105', 'ip_version': 6, 'cidr': '3c9c:6a87:f95d:62c7:9c82:8c3f::/96', 'allocation_pools': [{'start': '3c9c:6a87:f95d:62c7:9c82:8c3f:0:2', 'end': '3c9c:6a87:f95d:62c7:9c82:8c3f:ffff:fffe'}], 'gateway_ip': '3c9c:6a87:f95d:62c7:9c82:8c3f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c9c:6a87:f95d:62c7:9c82:8c3f:0:2', 'tags': [], 'project_id': '9555edb335d04a0c9fd5ed5c4c7aa747'}} 2026-01-12 02:03:47,336 - INFO - Created VN ctest-vn4-20155710 2026-01-12 02:03:47,387 - DEBUG - VN ctest-vn4-20155710 UUID is 17c99f11-0083-49d7-b5dc-324fb67d9105 2026-01-12 02:03:47,572 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '17c99f11-0083-49d7-b5dc-324fb67d9105', 'name': 'ctest-vn4-20155710', 'tenant_id': '9555edb335d04a0c9fd5ed5c4c7aa747', 'project_id': '9555edb335d04a0c9fd5ed5c4c7aa747', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d6cfc3f3-c0eb-44dd-8c05-576715ff5098', '94ea81d7-ce39-402a-b4da-1a18666d2291'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22665924', 'ctest-vn4-20155710'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22665924', 'ctest-policy1-30979076']], 'subnet_ipam': [{'subnet_cidr': '16.53.191.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c9c:6a87:f95d:62c7:9c82:8c3f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-12 02:03:47,731 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-12 02:03:48,025 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-12 02:03:48,053 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ba511797-12cb-481a-8027-43ce6ffb9955 2026-01-12 02:03:48,063 - DEBUG - Requesting: http://10.0.0.249:8082/project/9555edb3-35d0-4a0c-9fd5-ed5c4c7aa747 2026-01-12 02:03:48,132 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/17c99f11-0083-49d7-b5dc-324fb67d9105 2026-01-12 02:03:48,145 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/17c99f11-0083-49d7-b5dc-324fb67d9105 2026-01-12 02:03:48,154 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/100092c3-948c-4f7b-987e-5bfc7807152d 2026-01-12 02:03:48,160 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/100092c3-948c-4f7b-987e-5bfc7807152d 2026-01-12 02:03:48,166 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b1eab073-8fce-44dd-8858-21e8b0ea0c82 2026-01-12 02:03:48,172 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-12 02:03:48,172 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/17c99f11-0083-49d7-b5dc-324fb67d9105 2026-01-12 02:03:48,180 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/100092c3-948c-4f7b-987e-5bfc7807152d 2026-01-12 02:03:48,191 - INFO - Verified VN network id 11 for VN 17c99f11-0083-49d7-b5dc-324fb67d9105 2026-01-12 02:03:48,192 - INFO - Verifications in API Server for VN ctest-vn4-20155710 passed 2026-01-12 02:03:48,192 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/17c99f11-0083-49d7-b5dc-324fb67d9105 2026-01-12 02:03:48,200 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/100092c3-948c-4f7b-987e-5bfc7807152d 2026-01-12 02:03:48,206 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/100092c3-948c-4f7b-987e-5bfc7807152d 2026-01-12 02:03:48,211 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/b1eab073-8fce-44dd-8858-21e8b0ea0c82 2026-01-12 02:03:48,220 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22665924:ctest-vn4-20155710', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-22665924', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1714076028563048919', 'uuid-lslong': '13104404333686788357'}, 'enable': 'true', 'created': '2026-01-12T02:03:46', 'last-modified': '2026-01-12T02:03:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.674830'} 2026-01-12 02:03:48,226 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-12 02:03:48,226 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-20155710 passed 2026-01-12 02:03:48,226 - DEBUG - ====Verifying policy data for ctest-vn4-20155710 in API_Server ====== 2026-01-12 02:03:48,226 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-12 02:03:48,230 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ba511797-12cb-481a-8027-43ce6ffb9955 2026-01-12 02:03:48,239 - DEBUG - Requesting: http://10.0.0.249:8082/project/9555edb3-35d0-4a0c-9fd5-ed5c4c7aa747 2026-01-12 02:03:48,306 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/17c99f11-0083-49d7-b5dc-324fb67d9105 2026-01-12 02:03:48,315 - DEBUG - ==>Verifying data for policy with id: df86f0c5-11fd-4c6d-a6db-8f0a6881dc7d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-22665924', 'ctest-policy1-30979076'] 2026-01-12 02:03:48,315 - INFO - VN ctest-vn4-20155710 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-12 02:03:48,315 - DEBUG - Verifying the vn in opserver 2026-01-12 02:03:48,315 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22665924:ctest-vn4-20155710 virtual network link through opserver 10.0.0.249 2026-01-12 02:03:48,316 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-12 02:03:48,608 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-12 02:03:48,664 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22665924:ctest-vn4-20155710', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22665924:ctest-vn4-20155710?flat'} 2026-01-12 02:03:48,664 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-22665924:ctest-vn4-20155710 is found in opserver 2026-01-12 02:03:48,672 - DEBUG - Do not have enough data to verify VN in agent 2026-01-12 02:03:48,676 - DEBUG - VRF ids for VN ctest-vn4-20155710: {} 2026-01-12 02:03:48,676 - DEBUG - ====Verifying data for ctest-policy1-30979076 in API_Server ====== 2026-01-12 02:03:48,676 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-12 02:03:48,680 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ba511797-12cb-481a-8027-43ce6ffb9955 2026-01-12 02:03:48,689 - DEBUG - Requesting: http://10.0.0.249:8082/project/9555edb3-35d0-4a0c-9fd5-ed5c4c7aa747 2026-01-12 02:03:48,757 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/df86f0c5-11fd-4c6d-a6db-8f0a6881dc7d 2026-01-12 02:03:48,765 - INFO - Verified policy ctest-policy1-30979076 in API Server, Result: True 2026-01-12 02:03:48,766 - INFO - Done with setup and verification, moving onto test .. 2026-01-12 02:03:48,772 - INFO - Deleting VN ctest-vn4-20155710 2026-01-12 02:03:48,874 - DEBUG - Response for deleting network () 2026-01-12 02:03:48,875 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/100092c3-948c-4f7b-987e-5bfc7807152d 2026-01-12 02:03:48,879 - DEBUG - Response Code: 404 2026-01-12 02:03:48,879 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-12 02:03:48,883 - DEBUG - Requesting: http://10.0.0.249:8082/domain/ba511797-12cb-481a-8027-43ce6ffb9955 2026-01-12 02:03:48,935 - DEBUG - Requesting: http://10.0.0.249:8082/project/9555edb3-35d0-4a0c-9fd5-ed5c4c7aa747 2026-01-12 02:03:49,001 - INFO - Validated that VN ctest-vn4-20155710 is not found in API Server 2026-01-12 02:03:49,009 - DEBUG - VN ctest-vn4-20155710 is not present in Agent 10.0.0.249 2026-01-12 02:03:49,009 - INFO - Validated that VN ctest-vn4-20155710 is not in any agent 2026-01-12 02:03:49,021 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-20155710 info 2026-01-12 02:03:49,041 - INFO - Deleted policy ctest-policy1-30979076 2026-01-12 02:03:49,203 - DEBUG - policy ctest-policy1-30979076 is not found in API Server 2026-01-12 02:03:49,455 - DEBUG - No XMPP flaps were noticed during the test
2026-01-12 02:03:49,455 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-12 02:03:49,455 - INFO - -------------------------------------------------------------------------------- 2026-01-12 02:03:49,753 - DEBUG - No XMPP flaps were noticed during the test
2026-01-12 02:03:49,753 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-12 02:03:49,753 - INFO - -------------------------------------------------------------------------------- 2026-01-12 02:03:50,427 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-22665924, ID : 9555edb3-35d0-4a0c-9fd5-ed5c4c7aa747