2026-07-18 05:51:21,706 - INFO - Domain Default found not creating 2026-07-18 05:51:21,871 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70452566 not found, creating it 2026-07-18 05:51:22,350 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70452566, ID : 5d53b44f-f253-4c83-9de3-1f273fee3867 2026-07-18 05:51:24,020 - INFO - ================================================================================ 2026-07-18 05:51:24,021 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-18 05:51:24,296 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-07-18 05:51:24,296 - INFO - Initial checks done. Running the testcase now 2026-07-18 05:51:24,297 - INFO - 2026-07-18 05:51:24,297 - INFO - ================================================================================ 2026-07-18 05:51:24,297 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-18 05:51:24,297 - 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-07-18 05:51:24,586 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-07-18 05:51:24,586 - INFO - Initial checks done. Running the testcase now 2026-07-18 05:51:24,587 - INFO - 2026-07-18 05:51:25,028 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70452566:ctest-vn4-60103642, 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-70452566:ctest-vn4-60103642, 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-70452566:ctest-vn4-60103642, 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-70452566:ctest-vn4-60103642, 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-07-18 05:51:25,586 - DEBUG - Response for create_network : {'network': {'id': 'd460418a-8621-49a6-a7a5-018a3b4cfd0a', 'name': 'ctest-vn4-60103642', 'tenant_id': '5d53b44ff2534c839de31f273fee3867', 'project_id': '5d53b44ff2534c839de31f273fee3867', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70452566', 'ctest-vn4-60103642'], 'port_security_enabled': True, 'description': ''}} 2026-07-18 05:51:25,829 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a67cc3ef-cc56-4f3b-bf40-578293375bce', 'name': '', 'tenant_id': '5d53b44ff2534c839de31f273fee3867', 'network_id': 'd460418a-8621-49a6-a7a5-018a3b4cfd0a', 'ip_version': 4, 'cidr': '5.169.250.192/26', 'allocation_pools': [{'start': '5.169.250.194', 'end': '5.169.250.254'}], 'gateway_ip': '5.169.250.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.169.250.194', 'tags': [], 'project_id': '5d53b44ff2534c839de31f273fee3867'}} 2026-07-18 05:51:26,002 - DEBUG - Response for create_subnet : {'subnet': {'id': '753da4cd-4a0f-43c1-8352-145b8ec2ff35', 'name': '', 'tenant_id': '5d53b44ff2534c839de31f273fee3867', 'network_id': 'd460418a-8621-49a6-a7a5-018a3b4cfd0a', 'ip_version': 6, 'cidr': '2328:327f:9057:4def:ac7a:3916::/96', 'allocation_pools': [{'start': '2328:327f:9057:4def:ac7a:3916:0:2', 'end': '2328:327f:9057:4def:ac7a:3916:ffff:fffe'}], 'gateway_ip': '2328:327f:9057:4def:ac7a:3916:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2328:327f:9057:4def:ac7a:3916:0:2', 'tags': [], 'project_id': '5d53b44ff2534c839de31f273fee3867'}} 2026-07-18 05:51:26,022 - INFO - Created VN ctest-vn4-60103642 2026-07-18 05:51:26,078 - DEBUG - VN ctest-vn4-60103642 UUID is d460418a-8621-49a6-a7a5-018a3b4cfd0a 2026-07-18 05:51:26,293 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd460418a-8621-49a6-a7a5-018a3b4cfd0a', 'name': 'ctest-vn4-60103642', 'tenant_id': '5d53b44ff2534c839de31f273fee3867', 'project_id': '5d53b44ff2534c839de31f273fee3867', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a67cc3ef-cc56-4f3b-bf40-578293375bce', '753da4cd-4a0f-43c1-8352-145b8ec2ff35'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70452566', 'ctest-vn4-60103642'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70452566', 'ctest-policy1-98451963']], 'subnet_ipam': [{'subnet_cidr': '5.169.250.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2328:327f:9057:4def:ac7a:3916::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-18 05:51:26,457 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-18 05:51:26,835 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-18 05:51:26,865 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e804eac-3624-4588-8513-b7d52f5f3d48 2026-07-18 05:51:26,879 - DEBUG - Requesting: http://10.0.0.50:8082/project/5d53b44f-f253-4c83-9de3-1f273fee3867 2026-07-18 05:51:26,960 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d460418a-8621-49a6-a7a5-018a3b4cfd0a 2026-07-18 05:51:26,974 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d460418a-8621-49a6-a7a5-018a3b4cfd0a 2026-07-18 05:51:26,985 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5e097e0-0a75-4b6c-a040-894a00e289b9 2026-07-18 05:51:26,993 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5e097e0-0a75-4b6c-a040-894a00e289b9 2026-07-18 05:51:27,001 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7d867c42-d8a3-415e-8611-571f2bc679f1 2026-07-18 05:51:27,009 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-18 05:51:27,009 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d460418a-8621-49a6-a7a5-018a3b4cfd0a 2026-07-18 05:51:27,019 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5e097e0-0a75-4b6c-a040-894a00e289b9 2026-07-18 05:51:27,034 - INFO - Verified VN network id 11 for VN d460418a-8621-49a6-a7a5-018a3b4cfd0a 2026-07-18 05:51:27,034 - INFO - Verifications in API Server for VN ctest-vn4-60103642 passed 2026-07-18 05:51:27,034 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d460418a-8621-49a6-a7a5-018a3b4cfd0a 2026-07-18 05:51:27,045 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5e097e0-0a75-4b6c-a040-894a00e289b9 2026-07-18 05:51:27,053 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5e097e0-0a75-4b6c-a040-894a00e289b9 2026-07-18 05:51:27,061 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/7d867c42-d8a3-415e-8611-571f2bc679f1 2026-07-18 05:51:27,075 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70452566:ctest-vn4-60103642', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70452566', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15303303597016566182', 'uuid-lslong': '12080063268703239434'}, 'enable': 'true', 'created': '2026-07-18T05:51:25', 'last-modified': '2026-07-18T05:51:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.810533'} 2026-07-18 05:51:27,082 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-18 05:51:27,082 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-60103642 passed 2026-07-18 05:51:27,082 - DEBUG - ====Verifying policy data for ctest-vn4-60103642 in API_Server ====== 2026-07-18 05:51:27,082 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-18 05:51:27,090 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e804eac-3624-4588-8513-b7d52f5f3d48 2026-07-18 05:51:27,101 - DEBUG - Requesting: http://10.0.0.50:8082/project/5d53b44f-f253-4c83-9de3-1f273fee3867 2026-07-18 05:51:27,176 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d460418a-8621-49a6-a7a5-018a3b4cfd0a 2026-07-18 05:51:27,187 - DEBUG - ==>Verifying data for policy with id: baf82b79-8459-4cfc-8dfe-72c6c4aa7c16, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70452566', 'ctest-policy1-98451963'] 2026-07-18 05:51:27,187 - INFO - VN ctest-vn4-60103642 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-18 05:51:27,187 - DEBUG - Verifying the vn in opserver 2026-07-18 05:51:27,187 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70452566:ctest-vn4-60103642 virtual network link through opserver 10.0.0.50 2026-07-18 05:51:27,188 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-18 05:51:27,560 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-18 05:51:27,617 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70452566:ctest-vn4-60103642', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70452566:ctest-vn4-60103642?flat'} 2026-07-18 05:51:27,617 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70452566:ctest-vn4-60103642 is found in opserver 2026-07-18 05:51:27,627 - DEBUG - Do not have enough data to verify VN in agent 2026-07-18 05:51:27,633 - DEBUG - VRF ids for VN ctest-vn4-60103642: {} 2026-07-18 05:51:27,633 - DEBUG - ====Verifying data for ctest-policy1-98451963 in API_Server ====== 2026-07-18 05:51:27,633 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-18 05:51:27,640 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e804eac-3624-4588-8513-b7d52f5f3d48 2026-07-18 05:51:27,652 - DEBUG - Requesting: http://10.0.0.50:8082/project/5d53b44f-f253-4c83-9de3-1f273fee3867 2026-07-18 05:51:27,726 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/baf82b79-8459-4cfc-8dfe-72c6c4aa7c16 2026-07-18 05:51:27,737 - INFO - Verified policy ctest-policy1-98451963 in API Server, Result: True 2026-07-18 05:51:27,738 - INFO - Done with setup and verification, moving onto test .. 2026-07-18 05:51:27,748 - INFO - Deleting VN ctest-vn4-60103642 2026-07-18 05:51:27,885 - DEBUG - Response for deleting network () 2026-07-18 05:51:27,885 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/f5e097e0-0a75-4b6c-a040-894a00e289b9 2026-07-18 05:51:27,890 - DEBUG - Response Code: 404 2026-07-18 05:51:27,890 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-18 05:51:27,896 - DEBUG - Requesting: http://10.0.0.50:8082/domain/1e804eac-3624-4588-8513-b7d52f5f3d48 2026-07-18 05:51:27,951 - DEBUG - Requesting: http://10.0.0.50:8082/project/5d53b44f-f253-4c83-9de3-1f273fee3867 2026-07-18 05:51:28,025 - INFO - Validated that VN ctest-vn4-60103642 is not found in API Server 2026-07-18 05:51:28,036 - DEBUG - VN ctest-vn4-60103642 is not present in Agent 10.0.0.50 2026-07-18 05:51:28,036 - INFO - Validated that VN ctest-vn4-60103642 is not in any agent 2026-07-18 05:51:28,052 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-60103642 info 2026-07-18 05:51:28,075 - INFO - Deleted policy ctest-policy1-98451963 2026-07-18 05:51:28,241 - DEBUG - policy ctest-policy1-98451963 is not found in API Server 2026-07-18 05:51:28,509 - DEBUG - No XMPP flaps were noticed during the test