2025-10-30 21:45:32,016 - INFO - Domain Default found not creating 2025-10-30 21:45:32,157 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-12614145 not found, creating it 2025-10-30 21:45:32,605 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-12614145, ID : 6def595c-1188-4418-b8d1-d6d982b23bdf 2025-10-30 21:45:33,944 - INFO - ================================================================================ 2025-10-30 21:45:33,944 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 21:45:34,202 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.241': '0'}} with 2025-10-30 21:45:34,202 - INFO - Initial checks done. Running the testcase now 2025-10-30 21:45:34,202 - INFO - 2025-10-30 21:45:34,202 - INFO - ================================================================================ 2025-10-30 21:45:34,202 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 21:45:34,202 - 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. 2025-10-30 21:45:34,498 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.241': '0'}} with 2025-10-30 21:45:34,498 - INFO - Initial checks done. Running the testcase now 2025-10-30 21:45:34,498 - INFO - 2025-10-30 21:45:34,835 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12614145:ctest-vn4-26024185, 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-12614145:ctest-vn4-26024185, 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-12614145:ctest-vn4-26024185, 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-12614145:ctest-vn4-26024185, 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] 2025-10-30 21:45:35,380 - DEBUG - Response for create_network : {'network': {'id': '824825fd-325d-4ab4-9f33-58a98a0231a7', 'name': 'ctest-vn4-26024185', 'tenant_id': '6def595c11884418b8d1d6d982b23bdf', 'project_id': '6def595c11884418b8d1d6d982b23bdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12614145', 'ctest-vn4-26024185'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 21:45:35,552 - DEBUG - Response for create_subnet : {'subnet': {'id': '995d2052-0adf-461d-af72-d410b0f618ca', 'name': '', 'tenant_id': '6def595c11884418b8d1d6d982b23bdf', 'network_id': '824825fd-325d-4ab4-9f33-58a98a0231a7', 'ip_version': 4, 'cidr': '22.186.228.128/26', 'allocation_pools': [{'start': '22.186.228.130', 'end': '22.186.228.190'}], 'gateway_ip': '22.186.228.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.186.228.130', 'tags': [], 'project_id': '6def595c11884418b8d1d6d982b23bdf'}} 2025-10-30 21:45:35,694 - DEBUG - Response for create_subnet : {'subnet': {'id': '29c51c80-c648-474c-ba00-fbf6ceb2036e', 'name': '', 'tenant_id': '6def595c11884418b8d1d6d982b23bdf', 'network_id': '824825fd-325d-4ab4-9f33-58a98a0231a7', 'ip_version': 6, 'cidr': '3add:702e:6f2e:13e2:ad9a:e820::/96', 'allocation_pools': [{'start': '3add:702e:6f2e:13e2:ad9a:e820:0:2', 'end': '3add:702e:6f2e:13e2:ad9a:e820:ffff:fffe'}], 'gateway_ip': '3add:702e:6f2e:13e2:ad9a:e820:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3add:702e:6f2e:13e2:ad9a:e820:0:2', 'tags': [], 'project_id': '6def595c11884418b8d1d6d982b23bdf'}} 2025-10-30 21:45:35,712 - INFO - Created VN ctest-vn4-26024185 2025-10-30 21:45:35,761 - DEBUG - VN ctest-vn4-26024185 UUID is 824825fd-325d-4ab4-9f33-58a98a0231a7 2025-10-30 21:45:35,950 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '824825fd-325d-4ab4-9f33-58a98a0231a7', 'name': 'ctest-vn4-26024185', 'tenant_id': '6def595c11884418b8d1d6d982b23bdf', 'project_id': '6def595c11884418b8d1d6d982b23bdf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['995d2052-0adf-461d-af72-d410b0f618ca', '29c51c80-c648-474c-ba00-fbf6ceb2036e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12614145', 'ctest-vn4-26024185'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12614145', 'ctest-policy1-24237354']], 'subnet_ipam': [{'subnet_cidr': '22.186.228.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3add:702e:6f2e:13e2:ad9a:e820::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 21:45:36,113 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-10-30 21:45:36,403 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-10-30 21:45:36,431 - DEBUG - Requesting: http://10.0.0.23:8082/domain/735c0676-dff1-49c0-a214-101b496e4037 2025-10-30 21:45:36,442 - DEBUG - Requesting: http://10.0.0.23:8082/project/6def595c-1188-4418-b8d1-d6d982b23bdf 2025-10-30 21:45:36,514 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/824825fd-325d-4ab4-9f33-58a98a0231a7 2025-10-30 21:45:36,524 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/824825fd-325d-4ab4-9f33-58a98a0231a7 2025-10-30 21:45:36,533 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e6c7ca24-59c5-4486-bfca-25dbcb75a7a8 2025-10-30 21:45:36,538 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e6c7ca24-59c5-4486-bfca-25dbcb75a7a8 2025-10-30 21:45:36,544 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/28ee54c7-4f35-48c8-8d58-511c651cb371 2025-10-30 21:45:36,550 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 21:45:36,550 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/824825fd-325d-4ab4-9f33-58a98a0231a7 2025-10-30 21:45:36,557 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e6c7ca24-59c5-4486-bfca-25dbcb75a7a8 2025-10-30 21:45:36,570 - INFO - Verified VN network id 9 for VN 824825fd-325d-4ab4-9f33-58a98a0231a7 2025-10-30 21:45:36,570 - INFO - Verifications in API Server for VN ctest-vn4-26024185 passed 2025-10-30 21:45:36,570 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/824825fd-325d-4ab4-9f33-58a98a0231a7 2025-10-30 21:45:36,578 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e6c7ca24-59c5-4486-bfca-25dbcb75a7a8 2025-10-30 21:45:36,584 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e6c7ca24-59c5-4486-bfca-25dbcb75a7a8 2025-10-30 21:45:36,590 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/28ee54c7-4f35-48c8-8d58-511c651cb371 2025-10-30 21:45:36,600 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12614145:ctest-vn4-26024185', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-12614145', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9387795192655727284', 'uuid-lslong': '11471610161030902183'}, 'enable': 'true', 'created': '2025-10-30T21:45:35', 'last-modified': '2025-10-30T21:45:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.674932'} 2025-10-30 21:45:36,605 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 21:45:36,605 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26024185 passed 2025-10-30 21:45:36,605 - DEBUG - ====Verifying policy data for ctest-vn4-26024185 in API_Server ====== 2025-10-30 21:45:36,606 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-10-30 21:45:36,611 - DEBUG - Requesting: http://10.0.0.23:8082/domain/735c0676-dff1-49c0-a214-101b496e4037 2025-10-30 21:45:36,621 - DEBUG - Requesting: http://10.0.0.23:8082/project/6def595c-1188-4418-b8d1-d6d982b23bdf 2025-10-30 21:45:36,702 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/824825fd-325d-4ab4-9f33-58a98a0231a7 2025-10-30 21:45:36,712 - DEBUG - ==>Verifying data for policy with id: 82836a34-0869-48b8-b781-5cd30e20db1f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12614145', 'ctest-policy1-24237354'] 2025-10-30 21:45:36,712 - INFO - VN ctest-vn4-26024185 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 21:45:36,712 - DEBUG - Verifying the vn in opserver 2025-10-30 21:45:36,712 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12614145:ctest-vn4-26024185 virtual network link through opserver 10.0.0.23 2025-10-30 21:45:36,713 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-10-30 21:45:37,002 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-10-30 21:45:37,056 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12614145:ctest-vn4-26024185', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12614145:ctest-vn4-26024185?flat'} 2025-10-30 21:45:37,056 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12614145:ctest-vn4-26024185 is found in opserver 2025-10-30 21:45:37,064 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 21:45:37,068 - DEBUG - VRF ids for VN ctest-vn4-26024185: {} 2025-10-30 21:45:37,068 - DEBUG - ====Verifying data for ctest-policy1-24237354 in API_Server ====== 2025-10-30 21:45:37,068 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-10-30 21:45:37,073 - DEBUG - Requesting: http://10.0.0.23:8082/domain/735c0676-dff1-49c0-a214-101b496e4037 2025-10-30 21:45:37,084 - DEBUG - Requesting: http://10.0.0.23:8082/project/6def595c-1188-4418-b8d1-d6d982b23bdf 2025-10-30 21:45:37,154 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/82836a34-0869-48b8-b781-5cd30e20db1f 2025-10-30 21:45:37,162 - INFO - Verified policy ctest-policy1-24237354 in API Server, Result: True 2025-10-30 21:45:37,162 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 21:45:37,171 - INFO - Deleting VN ctest-vn4-26024185 2025-10-30 21:45:37,287 - DEBUG - Response for deleting network () 2025-10-30 21:45:37,287 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e6c7ca24-59c5-4486-bfca-25dbcb75a7a8 2025-10-30 21:45:37,291 - DEBUG - Response Code: 404 2025-10-30 21:45:37,291 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-10-30 21:45:37,296 - DEBUG - Requesting: http://10.0.0.23:8082/domain/735c0676-dff1-49c0-a214-101b496e4037 2025-10-30 21:45:37,346 - DEBUG - Requesting: http://10.0.0.23:8082/project/6def595c-1188-4418-b8d1-d6d982b23bdf 2025-10-30 21:45:37,410 - INFO - Validated that VN ctest-vn4-26024185 is not found in API Server 2025-10-30 21:45:37,419 - DEBUG - VN ctest-vn4-26024185 is not present in Agent 10.0.0.23 2025-10-30 21:45:37,419 - INFO - Validated that VN ctest-vn4-26024185 is not in any agent 2025-10-30 21:45:37,433 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26024185 info 2025-10-30 21:45:37,453 - INFO - Deleted policy ctest-policy1-24237354 2025-10-30 21:45:37,617 - DEBUG - policy ctest-policy1-24237354 is not found in API Server 2025-10-30 21:45:37,880 - DEBUG - No XMPP flaps were noticed during the test