2025-11-14 07:52:31,181 - INFO - Domain Default found not creating 2025-11-14 07:52:31,351 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93830834 not found, creating it 2025-11-14 07:52:31,815 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93830834, ID : 49dfdab6-962d-4efc-b055-9b30afe638fa 2025-11-14 07:52:33,495 - INFO - ================================================================================ 2025-11-14 07:52:33,495 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-14 07:52:33,770 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-11-14 07:52:33,770 - INFO - Initial checks done. Running the testcase now 2025-11-14 07:52:33,770 - INFO - 2025-11-14 07:52:33,770 - INFO - ================================================================================ 2025-11-14 07:52:33,771 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-14 07:52:33,771 - 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-11-14 07:52:34,063 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-11-14 07:52:34,064 - INFO - Initial checks done. Running the testcase now 2025-11-14 07:52:34,064 - INFO - 2025-11-14 07:52:34,435 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93830834:ctest-vn4-64379488, 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-93830834:ctest-vn4-64379488, 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-93830834:ctest-vn4-64379488, 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-93830834:ctest-vn4-64379488, 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-11-14 07:52:34,947 - DEBUG - Response for create_network : {'network': {'id': '4ec64aaf-446a-4b08-a0d6-cf9eef04f8e9', 'name': 'ctest-vn4-64379488', 'tenant_id': '49dfdab6962d4efcb0559b30afe638fa', 'project_id': '49dfdab6962d4efcb0559b30afe638fa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93830834', 'ctest-vn4-64379488'], 'port_security_enabled': True, 'description': ''}} 2025-11-14 07:52:35,159 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ee762895-b92e-4a07-b1dd-8dd564a63cc1', 'name': '', 'tenant_id': '49dfdab6962d4efcb0559b30afe638fa', 'network_id': '4ec64aaf-446a-4b08-a0d6-cf9eef04f8e9', 'ip_version': 4, 'cidr': '72.12.155.128/26', 'allocation_pools': [{'start': '72.12.155.130', 'end': '72.12.155.190'}], 'gateway_ip': '72.12.155.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.12.155.130', 'tags': [], 'project_id': '49dfdab6962d4efcb0559b30afe638fa'}} 2025-11-14 07:52:35,339 - DEBUG - Response for create_subnet : {'subnet': {'id': '9f05c199-3bbf-4d87-bdee-d9b05ffb9d65', 'name': '', 'tenant_id': '49dfdab6962d4efcb0559b30afe638fa', 'network_id': '4ec64aaf-446a-4b08-a0d6-cf9eef04f8e9', 'ip_version': 6, 'cidr': '3e77:a3e6:3fa1:7bd3:c484:b579::/96', 'allocation_pools': [{'start': '3e77:a3e6:3fa1:7bd3:c484:b579:0:2', 'end': '3e77:a3e6:3fa1:7bd3:c484:b579:ffff:fffe'}], 'gateway_ip': '3e77:a3e6:3fa1:7bd3:c484:b579:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e77:a3e6:3fa1:7bd3:c484:b579:0:2', 'tags': [], 'project_id': '49dfdab6962d4efcb0559b30afe638fa'}} 2025-11-14 07:52:35,361 - INFO - Created VN ctest-vn4-64379488 2025-11-14 07:52:35,414 - DEBUG - VN ctest-vn4-64379488 UUID is 4ec64aaf-446a-4b08-a0d6-cf9eef04f8e9 2025-11-14 07:52:35,620 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4ec64aaf-446a-4b08-a0d6-cf9eef04f8e9', 'name': 'ctest-vn4-64379488', 'tenant_id': '49dfdab6962d4efcb0559b30afe638fa', 'project_id': '49dfdab6962d4efcb0559b30afe638fa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ee762895-b92e-4a07-b1dd-8dd564a63cc1', '9f05c199-3bbf-4d87-bdee-d9b05ffb9d65'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93830834', 'ctest-vn4-64379488'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93830834', 'ctest-policy1-64097353']], 'subnet_ipam': [{'subnet_cidr': '72.12.155.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e77:a3e6:3fa1:7bd3:c484:b579::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-14 07:52:35,778 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-14 07:52:36,119 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-14 07:52:36,152 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8bb30c5f-0428-4214-84fc-6569f7875112 2025-11-14 07:52:36,168 - DEBUG - Requesting: http://10.0.0.50:8082/project/49dfdab6-962d-4efc-b055-9b30afe638fa 2025-11-14 07:52:36,239 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4ec64aaf-446a-4b08-a0d6-cf9eef04f8e9 2025-11-14 07:52:36,253 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4ec64aaf-446a-4b08-a0d6-cf9eef04f8e9 2025-11-14 07:52:36,263 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02bb51f6-ed30-4789-a072-0cc2312f9ee7 2025-11-14 07:52:36,270 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02bb51f6-ed30-4789-a072-0cc2312f9ee7 2025-11-14 07:52:36,276 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/121e9694-21db-419e-a9d0-3a1b79c7f93f 2025-11-14 07:52:36,282 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-14 07:52:36,282 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4ec64aaf-446a-4b08-a0d6-cf9eef04f8e9 2025-11-14 07:52:36,291 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02bb51f6-ed30-4789-a072-0cc2312f9ee7 2025-11-14 07:52:36,304 - INFO - Verified VN network id 10 for VN 4ec64aaf-446a-4b08-a0d6-cf9eef04f8e9 2025-11-14 07:52:36,304 - INFO - Verifications in API Server for VN ctest-vn4-64379488 passed 2025-11-14 07:52:36,304 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4ec64aaf-446a-4b08-a0d6-cf9eef04f8e9 2025-11-14 07:52:36,316 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02bb51f6-ed30-4789-a072-0cc2312f9ee7 2025-11-14 07:52:36,329 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02bb51f6-ed30-4789-a072-0cc2312f9ee7 2025-11-14 07:52:36,350 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/121e9694-21db-419e-a9d0-3a1b79c7f93f 2025-11-14 07:52:36,362 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93830834:ctest-vn4-64379488', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93830834', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5676306496974637832', 'uuid-lslong': '11589678972606413033'}, 'enable': 'true', 'created': '2025-11-14T07:52:34', 'last-modified': '2025-11-14T07:52:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.775872'} 2025-11-14 07:52:36,369 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-14 07:52:36,369 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-64379488 passed 2025-11-14 07:52:36,369 - DEBUG - ====Verifying policy data for ctest-vn4-64379488 in API_Server ====== 2025-11-14 07:52:36,369 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-14 07:52:36,374 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8bb30c5f-0428-4214-84fc-6569f7875112 2025-11-14 07:52:36,386 - DEBUG - Requesting: http://10.0.0.50:8082/project/49dfdab6-962d-4efc-b055-9b30afe638fa 2025-11-14 07:52:36,459 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4ec64aaf-446a-4b08-a0d6-cf9eef04f8e9 2025-11-14 07:52:36,469 - DEBUG - ==>Verifying data for policy with id: bcda6156-a212-4eeb-b463-5795acf615c4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93830834', 'ctest-policy1-64097353'] 2025-11-14 07:52:36,469 - INFO - VN ctest-vn4-64379488 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-14 07:52:36,469 - DEBUG - Verifying the vn in opserver 2025-11-14 07:52:36,469 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93830834:ctest-vn4-64379488 virtual network link through opserver 10.0.0.50 2025-11-14 07:52:36,470 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-14 07:52:36,801 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-14 07:52:36,862 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93830834:ctest-vn4-64379488', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93830834:ctest-vn4-64379488?flat'} 2025-11-14 07:52:36,862 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93830834:ctest-vn4-64379488 is found in opserver 2025-11-14 07:52:36,871 - DEBUG - Do not have enough data to verify VN in agent 2025-11-14 07:52:36,876 - DEBUG - VRF ids for VN ctest-vn4-64379488: {} 2025-11-14 07:52:36,876 - DEBUG - ====Verifying data for ctest-policy1-64097353 in API_Server ====== 2025-11-14 07:52:36,876 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-14 07:52:36,882 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8bb30c5f-0428-4214-84fc-6569f7875112 2025-11-14 07:52:36,893 - DEBUG - Requesting: http://10.0.0.50:8082/project/49dfdab6-962d-4efc-b055-9b30afe638fa 2025-11-14 07:52:36,968 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/bcda6156-a212-4eeb-b463-5795acf615c4 2025-11-14 07:52:36,978 - INFO - Verified policy ctest-policy1-64097353 in API Server, Result: True 2025-11-14 07:52:36,978 - INFO - Done with setup and verification, moving onto test .. 2025-11-14 07:52:36,987 - INFO - Deleting VN ctest-vn4-64379488 2025-11-14 07:52:37,111 - DEBUG - Response for deleting network () 2025-11-14 07:52:37,111 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/02bb51f6-ed30-4789-a072-0cc2312f9ee7 2025-11-14 07:52:37,117 - DEBUG - Response Code: 404 2025-11-14 07:52:37,117 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-14 07:52:37,123 - DEBUG - Requesting: http://10.0.0.50:8082/domain/8bb30c5f-0428-4214-84fc-6569f7875112 2025-11-14 07:52:37,175 - DEBUG - Requesting: http://10.0.0.50:8082/project/49dfdab6-962d-4efc-b055-9b30afe638fa 2025-11-14 07:52:37,248 - INFO - Validated that VN ctest-vn4-64379488 is not found in API Server 2025-11-14 07:52:37,258 - DEBUG - VN ctest-vn4-64379488 is not present in Agent 10.0.0.50 2025-11-14 07:52:37,258 - INFO - Validated that VN ctest-vn4-64379488 is not in any agent 2025-11-14 07:52:37,272 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-64379488 info 2025-11-14 07:52:37,299 - INFO - Deleted policy ctest-policy1-64097353 2025-11-14 07:52:37,466 - DEBUG - policy ctest-policy1-64097353 is not found in API Server 2025-11-14 07:52:37,723 - DEBUG - No XMPP flaps were noticed during the test 2025-11-14 07:52:37,723 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-14 07:52:37,723 - INFO - -------------------------------------------------------------------------------- 2025-11-14 07:52:38,015 - DEBUG - No XMPP flaps were noticed during the test 2025-11-14 07:52:38,015 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-11-14 07:52:38,015 - INFO - -------------------------------------------------------------------------------- 2025-11-14 07:52:39,078 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93830834, ID : 49dfdab6-962d-4efc-b055-9b30afe638fa