2026-03-12 13:42:33,428 - INFO - Domain Default found not creating 2026-03-12 13:42:33,611 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80621632 not found, creating it 2026-03-12 13:42:34,046 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80621632, ID : 3cf48e0d-cb09-4775-b2f0-eab73e918e7d 2026-03-12 13:42:35,695 - INFO - ================================================================================ 2026-03-12 13:42:35,695 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-12 13:42:35,954 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-03-12 13:42:35,954 - INFO - Initial checks done. Running the testcase now 2026-03-12 13:42:35,954 - INFO - 2026-03-12 13:42:35,954 - INFO - ================================================================================ 2026-03-12 13:42:35,954 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-12 13:42:35,954 - 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-03-12 13:42:36,247 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-03-12 13:42:36,247 - INFO - Initial checks done. Running the testcase now 2026-03-12 13:42:36,247 - INFO - 2026-03-12 13:42:36,658 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80621632:ctest-vn4-44631385, 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-80621632:ctest-vn4-44631385, 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-80621632:ctest-vn4-44631385, 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-80621632:ctest-vn4-44631385, 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-03-12 13:42:37,190 - DEBUG - Response for create_network : {'network': {'id': '5f9741ec-989d-4208-b700-ee854388debe', 'name': 'ctest-vn4-44631385', 'tenant_id': '3cf48e0dcb094775b2f0eab73e918e7d', 'project_id': '3cf48e0dcb094775b2f0eab73e918e7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80621632', 'ctest-vn4-44631385'], 'port_security_enabled': True, 'description': ''}} 2026-03-12 13:42:37,423 - DEBUG - Response for create_subnet : {'subnet': {'id': '540b615d-04d1-4b4d-b627-3274f94c9b0c', 'name': '', 'tenant_id': '3cf48e0dcb094775b2f0eab73e918e7d', 'network_id': '5f9741ec-989d-4208-b700-ee854388debe', 'ip_version': 4, 'cidr': '47.211.106.192/26', 'allocation_pools': [{'start': '47.211.106.194', 'end': '47.211.106.254'}], 'gateway_ip': '47.211.106.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '47.211.106.194', 'tags': [], 'project_id': '3cf48e0dcb094775b2f0eab73e918e7d'}} 2026-03-12 13:42:37,578 - DEBUG - Response for create_subnet : {'subnet': {'id': '811f4ed8-222e-4798-a751-dfb18751a652', 'name': '', 'tenant_id': '3cf48e0dcb094775b2f0eab73e918e7d', 'network_id': '5f9741ec-989d-4208-b700-ee854388debe', 'ip_version': 6, 'cidr': '2e64:c639:de7b:f271:a0cc:b29::/96', 'allocation_pools': [{'start': '2e64:c639:de7b:f271:a0cc:b29:0:2', 'end': '2e64:c639:de7b:f271:a0cc:b29:ffff:fffe'}], 'gateway_ip': '2e64:c639:de7b:f271:a0cc:b29:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e64:c639:de7b:f271:a0cc:b29:0:2', 'tags': [], 'project_id': '3cf48e0dcb094775b2f0eab73e918e7d'}} 2026-03-12 13:42:37,597 - INFO - Created VN ctest-vn4-44631385 2026-03-12 13:42:37,651 - DEBUG - VN ctest-vn4-44631385 UUID is 5f9741ec-989d-4208-b700-ee854388debe 2026-03-12 13:42:37,856 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5f9741ec-989d-4208-b700-ee854388debe', 'name': 'ctest-vn4-44631385', 'tenant_id': '3cf48e0dcb094775b2f0eab73e918e7d', 'project_id': '3cf48e0dcb094775b2f0eab73e918e7d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['540b615d-04d1-4b4d-b627-3274f94c9b0c', '811f4ed8-222e-4798-a751-dfb18751a652'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80621632', 'ctest-vn4-44631385'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80621632', 'ctest-policy1-32747013']], 'subnet_ipam': [{'subnet_cidr': '47.211.106.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e64:c639:de7b:f271:a0cc:b29::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-12 13:42:38,027 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-12 13:42:38,327 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-12 13:42:38,365 - DEBUG - Requesting: http://10.0.0.22:8082/domain/df5b526c-d4f8-40c5-91e4-6687bafd1fdd 2026-03-12 13:42:38,376 - DEBUG - Requesting: http://10.0.0.22:8082/project/3cf48e0d-cb09-4775-b2f0-eab73e918e7d 2026-03-12 13:42:38,443 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5f9741ec-989d-4208-b700-ee854388debe 2026-03-12 13:42:38,455 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5f9741ec-989d-4208-b700-ee854388debe 2026-03-12 13:42:38,464 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/af42cb04-e59e-459f-8b4f-892a36cb3669 2026-03-12 13:42:38,471 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/af42cb04-e59e-459f-8b4f-892a36cb3669 2026-03-12 13:42:38,478 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b84dc59f-cb28-491c-aa06-61097b0abc0e 2026-03-12 13:42:38,486 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-12 13:42:38,486 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5f9741ec-989d-4208-b700-ee854388debe 2026-03-12 13:42:38,499 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/af42cb04-e59e-459f-8b4f-892a36cb3669 2026-03-12 13:42:38,516 - INFO - Verified VN network id 11 for VN 5f9741ec-989d-4208-b700-ee854388debe 2026-03-12 13:42:38,516 - INFO - Verifications in API Server for VN ctest-vn4-44631385 passed 2026-03-12 13:42:38,516 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5f9741ec-989d-4208-b700-ee854388debe 2026-03-12 13:42:38,526 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/af42cb04-e59e-459f-8b4f-892a36cb3669 2026-03-12 13:42:38,533 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/af42cb04-e59e-459f-8b4f-892a36cb3669 2026-03-12 13:42:38,540 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b84dc59f-cb28-491c-aa06-61097b0abc0e 2026-03-12 13:42:38,551 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80621632:ctest-vn4-44631385', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80621632', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6888046639514993160', 'uuid-lslong': '13186801965071916734'}, 'enable': 'true', 'created': '2026-03-12T13:42:37', 'last-modified': '2026-03-12T13:42:37', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.726071'} 2026-03-12 13:42:38,556 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-12 13:42:38,557 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44631385 passed 2026-03-12 13:42:38,557 - DEBUG - ====Verifying policy data for ctest-vn4-44631385 in API_Server ====== 2026-03-12 13:42:38,557 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-12 13:42:38,562 - DEBUG - Requesting: http://10.0.0.22:8082/domain/df5b526c-d4f8-40c5-91e4-6687bafd1fdd 2026-03-12 13:42:38,571 - DEBUG - Requesting: http://10.0.0.22:8082/project/3cf48e0d-cb09-4775-b2f0-eab73e918e7d 2026-03-12 13:42:38,637 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5f9741ec-989d-4208-b700-ee854388debe 2026-03-12 13:42:38,646 - DEBUG - ==>Verifying data for policy with id: 3877c199-03e7-4747-a014-c5b6df1da1ad, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80621632', 'ctest-policy1-32747013'] 2026-03-12 13:42:38,646 - INFO - VN ctest-vn4-44631385 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-12 13:42:38,647 - DEBUG - Verifying the vn in opserver 2026-03-12 13:42:38,647 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80621632:ctest-vn4-44631385 virtual network link through opserver 10.0.0.22 2026-03-12 13:42:38,647 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-12 13:42:38,953 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-03-12 13:42:39,020 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80621632:ctest-vn4-44631385', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80621632:ctest-vn4-44631385?flat'} 2026-03-12 13:42:39,020 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80621632:ctest-vn4-44631385 is found in opserver 2026-03-12 13:42:39,032 - DEBUG - Do not have enough data to verify VN in agent 2026-03-12 13:42:39,038 - DEBUG - VRF ids for VN ctest-vn4-44631385: {} 2026-03-12 13:42:39,038 - DEBUG - ====Verifying data for ctest-policy1-32747013 in API_Server ====== 2026-03-12 13:42:39,038 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-12 13:42:39,045 - DEBUG - Requesting: http://10.0.0.22:8082/domain/df5b526c-d4f8-40c5-91e4-6687bafd1fdd 2026-03-12 13:42:39,055 - DEBUG - Requesting: http://10.0.0.22:8082/project/3cf48e0d-cb09-4775-b2f0-eab73e918e7d 2026-03-12 13:42:39,136 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/3877c199-03e7-4747-a014-c5b6df1da1ad 2026-03-12 13:42:39,146 - INFO - Verified policy ctest-policy1-32747013 in API Server, Result: True 2026-03-12 13:42:39,146 - INFO - Done with setup and verification, moving onto test .. 2026-03-12 13:42:39,153 - INFO - Deleting VN ctest-vn4-44631385 2026-03-12 13:42:39,274 - DEBUG - Response for deleting network () 2026-03-12 13:42:39,274 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/af42cb04-e59e-459f-8b4f-892a36cb3669 2026-03-12 13:42:39,279 - DEBUG - Response Code: 404 2026-03-12 13:42:39,279 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-03-12 13:42:39,285 - DEBUG - Requesting: http://10.0.0.22:8082/domain/df5b526c-d4f8-40c5-91e4-6687bafd1fdd 2026-03-12 13:42:39,339 - DEBUG - Requesting: http://10.0.0.22:8082/project/3cf48e0d-cb09-4775-b2f0-eab73e918e7d 2026-03-12 13:42:39,417 - INFO - Validated that VN ctest-vn4-44631385 is not found in API Server 2026-03-12 13:42:39,426 - DEBUG - VN ctest-vn4-44631385 is not present in Agent 10.0.0.22 2026-03-12 13:42:39,426 - INFO - Validated that VN ctest-vn4-44631385 is not in any agent 2026-03-12 13:42:39,439 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44631385 info 2026-03-12 13:42:39,464 - INFO - Deleted policy ctest-policy1-32747013 2026-03-12 13:42:39,630 - DEBUG - policy ctest-policy1-32747013 is not found in API Server 2026-03-12 13:42:39,896 - DEBUG - No XMPP flaps were noticed during the test
2026-03-12 13:42:39,896 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-12 13:42:39,896 - INFO - -------------------------------------------------------------------------------- 2026-03-12 13:42:40,185 - DEBUG - No XMPP flaps were noticed during the test
2026-03-12 13:42:40,185 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-12 13:42:40,185 - INFO - -------------------------------------------------------------------------------- 2026-03-12 13:42:41,259 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-80621632, ID : 3cf48e0d-cb09-4775-b2f0-eab73e918e7d