2026-03-19 18:05:24,993 - INFO - Domain Default found not creating 2026-03-19 18:05:25,272 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-08155967 not found, creating it 2026-03-19 18:05:25,886 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-08155967, ID : 8a070e36-5bf5-48e2-80f4-8311511b931f 2026-03-19 18:05:27,980 - INFO - ================================================================================ 2026-03-19 18:05:27,980 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 18:05:28,261 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-03-19 18:05:28,261 - INFO - Initial checks done. Running the testcase now 2026-03-19 18:05:28,261 - INFO - 2026-03-19 18:05:28,261 - INFO - ================================================================================ 2026-03-19 18:05:28,261 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-19 18:05:28,261 - 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-19 18:05:28,574 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-03-19 18:05:28,574 - INFO - Initial checks done. Running the testcase now 2026-03-19 18:05:28,575 - INFO - 2026-03-19 18:05:28,990 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08155967:ctest-vn4-16628053, 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-08155967:ctest-vn4-16628053, 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-08155967:ctest-vn4-16628053, 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-08155967:ctest-vn4-16628053, 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-19 18:05:29,631 - DEBUG - Response for create_network : {'network': {'id': 'f753e9ad-ec8c-4383-ae37-83324fc9a67d', 'name': 'ctest-vn4-16628053', 'tenant_id': '8a070e365bf548e280f48311511b931f', 'project_id': '8a070e365bf548e280f48311511b931f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08155967', 'ctest-vn4-16628053'], 'port_security_enabled': True, 'description': ''}} 2026-03-19 18:05:29,854 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eb417ecd-bb78-477a-9f09-0b8b41588c9c', 'name': '', 'tenant_id': '8a070e365bf548e280f48311511b931f', 'network_id': 'f753e9ad-ec8c-4383-ae37-83324fc9a67d', 'ip_version': 4, 'cidr': '123.222.5.128/26', 'allocation_pools': [{'start': '123.222.5.130', 'end': '123.222.5.190'}], 'gateway_ip': '123.222.5.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '123.222.5.130', 'tags': [], 'project_id': '8a070e365bf548e280f48311511b931f'}} 2026-03-19 18:05:30,059 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d21844e-9f6f-4589-b3db-2e017df2aca6', 'name': '', 'tenant_id': '8a070e365bf548e280f48311511b931f', 'network_id': 'f753e9ad-ec8c-4383-ae37-83324fc9a67d', 'ip_version': 6, 'cidr': '2dec:998e:350c:808f:5dc4:1db1::/96', 'allocation_pools': [{'start': '2dec:998e:350c:808f:5dc4:1db1:0:2', 'end': '2dec:998e:350c:808f:5dc4:1db1:ffff:fffe'}], 'gateway_ip': '2dec:998e:350c:808f:5dc4:1db1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2dec:998e:350c:808f:5dc4:1db1:0:2', 'tags': [], 'project_id': '8a070e365bf548e280f48311511b931f'}} 2026-03-19 18:05:30,086 - INFO - Created VN ctest-vn4-16628053 2026-03-19 18:05:30,142 - DEBUG - VN ctest-vn4-16628053 UUID is f753e9ad-ec8c-4383-ae37-83324fc9a67d 2026-03-19 18:05:30,403 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f753e9ad-ec8c-4383-ae37-83324fc9a67d', 'name': 'ctest-vn4-16628053', 'tenant_id': '8a070e365bf548e280f48311511b931f', 'project_id': '8a070e365bf548e280f48311511b931f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eb417ecd-bb78-477a-9f09-0b8b41588c9c', '6d21844e-9f6f-4589-b3db-2e017df2aca6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08155967', 'ctest-vn4-16628053'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08155967', 'ctest-policy1-39530587']], 'subnet_ipam': [{'subnet_cidr': '123.222.5.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2dec:998e:350c:808f:5dc4:1db1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-19 18:05:30,562 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-19 18:05:30,876 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-19 18:05:30,925 - DEBUG - Requesting: http://10.0.0.33:8082/domain/30e7d999-6d49-446f-b83a-8fc6ac7cecf0 2026-03-19 18:05:30,942 - DEBUG - Requesting: http://10.0.0.33:8082/project/8a070e36-5bf5-48e2-80f4-8311511b931f 2026-03-19 18:05:31,027 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f753e9ad-ec8c-4383-ae37-83324fc9a67d 2026-03-19 18:05:31,051 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f753e9ad-ec8c-4383-ae37-83324fc9a67d 2026-03-19 18:05:31,062 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fa2bb4a9-3d59-4d6f-be0a-a0c493a043b6 2026-03-19 18:05:31,070 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fa2bb4a9-3d59-4d6f-be0a-a0c493a043b6 2026-03-19 18:05:31,079 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c461a96e-82a4-44b4-a9a2-e64dfb090d7f 2026-03-19 18:05:31,087 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 18:05:31,087 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f753e9ad-ec8c-4383-ae37-83324fc9a67d 2026-03-19 18:05:31,100 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fa2bb4a9-3d59-4d6f-be0a-a0c493a043b6 2026-03-19 18:05:31,131 - INFO - Verified VN network id 11 for VN f753e9ad-ec8c-4383-ae37-83324fc9a67d 2026-03-19 18:05:31,131 - INFO - Verifications in API Server for VN ctest-vn4-16628053 passed 2026-03-19 18:05:31,131 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f753e9ad-ec8c-4383-ae37-83324fc9a67d 2026-03-19 18:05:31,147 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fa2bb4a9-3d59-4d6f-be0a-a0c493a043b6 2026-03-19 18:05:31,156 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fa2bb4a9-3d59-4d6f-be0a-a0c493a043b6 2026-03-19 18:05:31,166 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/c461a96e-82a4-44b4-a9a2-e64dfb090d7f 2026-03-19 18:05:31,185 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08155967:ctest-vn4-16628053', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-08155967', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17821845083642413955', 'uuid-lslong': '12553646738428765821'}, 'enable': 'true', 'created': '2026-03-19T18:05:29', 'last-modified': '2026-03-19T18:05:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.821980'} 2026-03-19 18:05:31,195 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-19 18:05:31,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16628053 passed 2026-03-19 18:05:31,195 - DEBUG - ====Verifying policy data for ctest-vn4-16628053 in API_Server ====== 2026-03-19 18:05:31,195 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-19 18:05:31,202 - DEBUG - Requesting: http://10.0.0.33:8082/domain/30e7d999-6d49-446f-b83a-8fc6ac7cecf0 2026-03-19 18:05:31,215 - DEBUG - Requesting: http://10.0.0.33:8082/project/8a070e36-5bf5-48e2-80f4-8311511b931f 2026-03-19 18:05:31,298 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/f753e9ad-ec8c-4383-ae37-83324fc9a67d 2026-03-19 18:05:31,310 - DEBUG - ==>Verifying data for policy with id: 54882a9c-638a-4aaa-a23c-1384ed3ef846, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08155967', 'ctest-policy1-39530587'] 2026-03-19 18:05:31,310 - INFO - VN ctest-vn4-16628053 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-19 18:05:31,310 - DEBUG - Verifying the vn in opserver 2026-03-19 18:05:31,310 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08155967:ctest-vn4-16628053 virtual network link through opserver 10.0.0.33 2026-03-19 18:05:31,310 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-19 18:05:31,634 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-03-19 18:05:31,746 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08155967:ctest-vn4-16628053', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08155967:ctest-vn4-16628053?flat'} 2026-03-19 18:05:31,746 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08155967:ctest-vn4-16628053 is found in opserver 2026-03-19 18:05:31,765 - DEBUG - Do not have enough data to verify VN in agent 2026-03-19 18:05:31,772 - DEBUG - VRF ids for VN ctest-vn4-16628053: {} 2026-03-19 18:05:31,773 - DEBUG - ====Verifying data for ctest-policy1-39530587 in API_Server ====== 2026-03-19 18:05:31,773 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-19 18:05:31,781 - DEBUG - Requesting: http://10.0.0.33:8082/domain/30e7d999-6d49-446f-b83a-8fc6ac7cecf0 2026-03-19 18:05:31,792 - DEBUG - Requesting: http://10.0.0.33:8082/project/8a070e36-5bf5-48e2-80f4-8311511b931f 2026-03-19 18:05:31,888 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/54882a9c-638a-4aaa-a23c-1384ed3ef846 2026-03-19 18:05:31,900 - INFO - Verified policy ctest-policy1-39530587 in API Server, Result: True 2026-03-19 18:05:31,901 - INFO - Done with setup and verification, moving onto test .. 2026-03-19 18:05:31,910 - INFO - Deleting VN ctest-vn4-16628053 2026-03-19 18:05:32,048 - DEBUG - Response for deleting network () 2026-03-19 18:05:32,048 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/fa2bb4a9-3d59-4d6f-be0a-a0c493a043b6 2026-03-19 18:05:32,055 - DEBUG - Response Code: 404 2026-03-19 18:05:32,055 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-03-19 18:05:32,060 - DEBUG - Requesting: http://10.0.0.33:8082/domain/30e7d999-6d49-446f-b83a-8fc6ac7cecf0 2026-03-19 18:05:32,115 - DEBUG - Requesting: http://10.0.0.33:8082/project/8a070e36-5bf5-48e2-80f4-8311511b931f 2026-03-19 18:05:32,190 - INFO - Validated that VN ctest-vn4-16628053 is not found in API Server 2026-03-19 18:05:32,201 - DEBUG - VN ctest-vn4-16628053 is not present in Agent 10.0.0.33 2026-03-19 18:05:32,201 - INFO - Validated that VN ctest-vn4-16628053 is not in any agent 2026-03-19 18:05:32,219 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16628053 info 2026-03-19 18:05:32,259 - INFO - Deleted policy ctest-policy1-39530587 2026-03-19 18:05:32,429 - DEBUG - policy ctest-policy1-39530587 is not found in API Server 2026-03-19 18:05:32,730 - DEBUG - No XMPP flaps were noticed during the test
2026-03-19 18:05:32,730 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-19 18:05:32,731 - INFO - -------------------------------------------------------------------------------- 2026-03-19 18:05:33,049 - DEBUG - No XMPP flaps were noticed during the test
2026-03-19 18:05:33,049 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2026-03-19 18:05:33,049 - INFO - -------------------------------------------------------------------------------- 2026-03-19 18:05:33,912 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-08155967, ID : 8a070e36-5bf5-48e2-80f4-8311511b931f