2025-10-23 16:35:25,562 - INFO - Domain Default found not creating 2025-10-23 16:35:25,728 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-55341999 not found, creating it 2025-10-23 16:35:26,189 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-55341999, ID : a1f76b97-9f32-4504-bc2b-fa9363f7415c 2025-10-23 16:35:27,758 - INFO - ================================================================================ 2025-10-23 16:35:27,758 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 16:35:28,011 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-10-23 16:35:28,012 - INFO - Initial checks done. Running the testcase now 2025-10-23 16:35:28,012 - INFO - 2025-10-23 16:35:28,012 - INFO - ================================================================================ 2025-10-23 16:35:28,012 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 16:35:28,012 - 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-23 16:35:28,315 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.254': '0'}} with 2025-10-23 16:35:28,315 - INFO - Initial checks done. Running the testcase now 2025-10-23 16:35:28,316 - INFO - 2025-10-23 16:35:28,723 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55341999:ctest-vn4-49748642, 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-55341999:ctest-vn4-49748642, 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-55341999:ctest-vn4-49748642, 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-55341999:ctest-vn4-49748642, 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-23 16:35:29,272 - DEBUG - Response for create_network : {'network': {'id': '61826740-2b1b-4f2d-857b-282a63e6f699', 'name': 'ctest-vn4-49748642', 'tenant_id': 'a1f76b979f324504bc2bfa9363f7415c', 'project_id': 'a1f76b979f324504bc2bfa9363f7415c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55341999', 'ctest-vn4-49748642'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 16:35:29,530 - DEBUG - Response for create_subnet : {'subnet': {'id': '72ef4ac0-9fd5-4b84-9813-3ed5e43f0b56', 'name': '', 'tenant_id': 'a1f76b979f324504bc2bfa9363f7415c', 'network_id': '61826740-2b1b-4f2d-857b-282a63e6f699', 'ip_version': 4, 'cidr': '135.60.231.0/26', 'allocation_pools': [{'start': '135.60.231.2', 'end': '135.60.231.62'}], 'gateway_ip': '135.60.231.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.60.231.2', 'tags': [], 'project_id': 'a1f76b979f324504bc2bfa9363f7415c'}} 2025-10-23 16:35:29,715 - DEBUG - Response for create_subnet : {'subnet': {'id': '1fae8a33-12bc-465f-ac88-0343a63678a2', 'name': '', 'tenant_id': 'a1f76b979f324504bc2bfa9363f7415c', 'network_id': '61826740-2b1b-4f2d-857b-282a63e6f699', 'ip_version': 6, 'cidr': '2d9b:1b01:f549:3902:2d38:d79::/96', 'allocation_pools': [{'start': '2d9b:1b01:f549:3902:2d38:d79:0:2', 'end': '2d9b:1b01:f549:3902:2d38:d79:ffff:fffe'}], 'gateway_ip': '2d9b:1b01:f549:3902:2d38:d79:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d9b:1b01:f549:3902:2d38:d79:0:2', 'tags': [], 'project_id': 'a1f76b979f324504bc2bfa9363f7415c'}} 2025-10-23 16:35:29,738 - INFO - Created VN ctest-vn4-49748642 2025-10-23 16:35:29,790 - DEBUG - VN ctest-vn4-49748642 UUID is 61826740-2b1b-4f2d-857b-282a63e6f699 2025-10-23 16:35:30,097 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61826740-2b1b-4f2d-857b-282a63e6f699', 'name': 'ctest-vn4-49748642', 'tenant_id': 'a1f76b979f324504bc2bfa9363f7415c', 'project_id': 'a1f76b979f324504bc2bfa9363f7415c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['72ef4ac0-9fd5-4b84-9813-3ed5e43f0b56', '1fae8a33-12bc-465f-ac88-0343a63678a2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55341999', 'ctest-vn4-49748642'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55341999', 'ctest-policy1-00900488']], 'subnet_ipam': [{'subnet_cidr': '135.60.231.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d9b:1b01:f549:3902:2d38:d79::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 16:35:30,258 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 16:35:30,604 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 16:35:30,636 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e3f52d12-6e28-4b9a-b260-e4b32965614c 2025-10-23 16:35:30,650 - DEBUG - Requesting: http://10.0.0.27:8082/project/a1f76b97-9f32-4504-bc2b-fa9363f7415c 2025-10-23 16:35:30,739 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/61826740-2b1b-4f2d-857b-282a63e6f699 2025-10-23 16:35:30,754 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/61826740-2b1b-4f2d-857b-282a63e6f699 2025-10-23 16:35:30,773 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/051adbbd-326b-4d5d-a71d-0b1b46e99bec 2025-10-23 16:35:30,783 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/051adbbd-326b-4d5d-a71d-0b1b46e99bec 2025-10-23 16:35:30,792 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/3f4341fd-f742-4fde-9ee3-c1ed1f52b562 2025-10-23 16:35:30,801 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 16:35:30,801 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/61826740-2b1b-4f2d-857b-282a63e6f699 2025-10-23 16:35:30,811 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/051adbbd-326b-4d5d-a71d-0b1b46e99bec 2025-10-23 16:35:30,827 - INFO - Verified VN network id 11 for VN 61826740-2b1b-4f2d-857b-282a63e6f699 2025-10-23 16:35:30,827 - INFO - Verifications in API Server for VN ctest-vn4-49748642 passed 2025-10-23 16:35:30,827 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/61826740-2b1b-4f2d-857b-282a63e6f699 2025-10-23 16:35:30,839 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/051adbbd-326b-4d5d-a71d-0b1b46e99bec 2025-10-23 16:35:30,848 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/051adbbd-326b-4d5d-a71d-0b1b46e99bec 2025-10-23 16:35:30,855 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/3f4341fd-f742-4fde-9ee3-c1ed1f52b562 2025-10-23 16:35:30,867 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55341999:ctest-vn4-49748642', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-55341999', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7026291893950172973', 'uuid-lslong': '9618325591709644441'}, 'enable': 'true', 'created': '2025-10-23T16:35:29', 'last-modified': '2025-10-23T16:35:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.803096'} 2025-10-23 16:35:30,873 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 16:35:30,873 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-49748642 passed 2025-10-23 16:35:30,874 - DEBUG - ====Verifying policy data for ctest-vn4-49748642 in API_Server ====== 2025-10-23 16:35:30,874 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 16:35:30,880 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e3f52d12-6e28-4b9a-b260-e4b32965614c 2025-10-23 16:35:30,891 - DEBUG - Requesting: http://10.0.0.27:8082/project/a1f76b97-9f32-4504-bc2b-fa9363f7415c 2025-10-23 16:35:30,979 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/61826740-2b1b-4f2d-857b-282a63e6f699 2025-10-23 16:35:30,988 - DEBUG - ==>Verifying data for policy with id: 7f7f2564-f8a9-4a8d-9749-6b9ae417f583, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-55341999', 'ctest-policy1-00900488'] 2025-10-23 16:35:30,988 - INFO - VN ctest-vn4-49748642 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 16:35:30,989 - DEBUG - Verifying the vn in opserver 2025-10-23 16:35:30,989 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55341999:ctest-vn4-49748642 virtual network link through opserver 10.0.0.27 2025-10-23 16:35:30,989 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-23 16:35:31,326 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-23 16:35:31,391 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55341999:ctest-vn4-49748642', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55341999:ctest-vn4-49748642?flat'} 2025-10-23 16:35:31,392 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-55341999:ctest-vn4-49748642 is found in opserver 2025-10-23 16:35:31,402 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 16:35:31,407 - DEBUG - VRF ids for VN ctest-vn4-49748642: {} 2025-10-23 16:35:31,408 - DEBUG - ====Verifying data for ctest-policy1-00900488 in API_Server ====== 2025-10-23 16:35:31,408 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 16:35:31,415 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e3f52d12-6e28-4b9a-b260-e4b32965614c 2025-10-23 16:35:31,426 - DEBUG - Requesting: http://10.0.0.27:8082/project/a1f76b97-9f32-4504-bc2b-fa9363f7415c 2025-10-23 16:35:31,500 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/7f7f2564-f8a9-4a8d-9749-6b9ae417f583 2025-10-23 16:35:31,510 - INFO - Verified policy ctest-policy1-00900488 in API Server, Result: True 2025-10-23 16:35:31,511 - INFO - Done with setup and verification, moving onto test .. 2025-10-23 16:35:31,520 - INFO - Deleting VN ctest-vn4-49748642 2025-10-23 16:35:31,650 - DEBUG - Response for deleting network () 2025-10-23 16:35:31,650 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/051adbbd-326b-4d5d-a71d-0b1b46e99bec 2025-10-23 16:35:31,656 - DEBUG - Response Code: 404 2025-10-23 16:35:31,656 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-10-23 16:35:31,661 - DEBUG - Requesting: http://10.0.0.27:8082/domain/e3f52d12-6e28-4b9a-b260-e4b32965614c 2025-10-23 16:35:31,715 - DEBUG - Requesting: http://10.0.0.27:8082/project/a1f76b97-9f32-4504-bc2b-fa9363f7415c 2025-10-23 16:35:31,789 - INFO - Validated that VN ctest-vn4-49748642 is not found in API Server 2025-10-23 16:35:31,800 - DEBUG - VN ctest-vn4-49748642 is not present in Agent 10.0.0.27 2025-10-23 16:35:31,800 - INFO - Validated that VN ctest-vn4-49748642 is not in any agent 2025-10-23 16:35:31,815 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-49748642 info 2025-10-23 16:35:31,843 - INFO - Deleted policy ctest-policy1-00900488 2025-10-23 16:35:32,010 - DEBUG - policy ctest-policy1-00900488 is not found in API Server 2025-10-23 16:35:32,263 - DEBUG - No XMPP flaps were noticed during the test
2025-10-23 16:35:32,263 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-23 16:35:32,263 - INFO - -------------------------------------------------------------------------------- 2025-10-23 16:35:32,551 - DEBUG - No XMPP flaps were noticed during the test
2025-10-23 16:35:32,551 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-23 16:35:32,551 - INFO - -------------------------------------------------------------------------------- 2025-10-23 16:35:33,282 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-55341999, ID : a1f76b97-9f32-4504-bc2b-fa9363f7415c