2025-10-30 02:02:28,586 - INFO - Reading existing Domain with UUID e05897ec-8f26-4de0-b53d-6381700aec6a 2025-10-30 02:02:28,599 - INFO - Using existing domain ['admin_domain'](e05897ec-8f26-4de0-b53d-6381700aec6a) 2025-10-30 02:02:28,840 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-90315318 not found, creating it 2025-10-30 02:02:29,358 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-90315318, ID : 72a9c35a-94a6-4307-a3c4-5e104d25f60c 2025-10-30 02:02:31,132 - INFO - ================================================================================ 2025-10-30 02:02:31,132 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 02:02:31,532 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with 2025-10-30 02:02:31,532 - INFO - Initial checks done. Running the testcase now 2025-10-30 02:02:31,532 - INFO - 2025-10-30 02:02:31,532 - INFO - ================================================================================ 2025-10-30 02:02:31,533 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 02:02:31,533 - 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 02:02:31,929 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.0.0.27': '0'}} with 2025-10-30 02:02:31,929 - INFO - Initial checks done. Running the testcase now 2025-10-30 02:02:31,929 - INFO - 2025-10-30 02:02:32,322 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-90315318:ctest-vn4-47019775, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-90315318:ctest-vn4-47019775, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-90315318:ctest-vn4-47019775, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-90315318:ctest-vn4-47019775, 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 02:02:33,050 - DEBUG - Response for create_network : {'network': {'id': '2982c42b-4b31-4f97-954e-7c6b54cfc138', 'name': 'ctest-vn4-47019775', 'tenant_id': '72a9c35a94a64307a3c45e104d25f60c', 'project_id': '72a9c35a94a64307a3c45e104d25f60c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90315318', 'ctest-vn4-47019775'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-30 02:02:33,308 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e815971d-a8af-4bce-8094-4a469cca1ac8', 'name': '', 'tenant_id': '72a9c35a94a64307a3c45e104d25f60c', 'network_id': '2982c42b-4b31-4f97-954e-7c6b54cfc138', 'ip_version': 4, 'cidr': '180.184.56.64/26', 'allocation_pools': [{'start': '180.184.56.66', 'end': '180.184.56.126'}], 'gateway_ip': '180.184.56.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-30T02:02:33.195935', 'updated_at': '2025-10-30T02:02:33.195935', 'dns_server_address': '180.184.56.66', 'tags': [], 'project_id': '72a9c35a94a64307a3c45e104d25f60c'}} 2025-10-30 02:02:33,511 - DEBUG - Response for create_subnet : {'subnet': {'id': '4dca9751-2415-40c6-b159-9e4b31fec5e8', 'name': '', 'tenant_id': '72a9c35a94a64307a3c45e104d25f60c', 'network_id': '2982c42b-4b31-4f97-954e-7c6b54cfc138', 'ip_version': 6, 'cidr': '346a:2a17:f048:1e3b:d79d:78a0::/96', 'allocation_pools': [{'start': '346a:2a17:f048:1e3b:d79d:78a0:0:2', 'end': '346a:2a17:f048:1e3b:d79d:78a0:ffff:fffe'}], 'gateway_ip': '346a:2a17:f048:1e3b:d79d:78a0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-30T02:02:33.409715', 'updated_at': '2025-10-30T02:02:33.409715', 'dns_server_address': '346a:2a17:f048:1e3b:d79d:78a0:0:2', 'tags': [], 'project_id': '72a9c35a94a64307a3c45e104d25f60c'}} 2025-10-30 02:02:33,581 - INFO - Created VN ctest-vn4-47019775 2025-10-30 02:02:33,635 - DEBUG - VN ctest-vn4-47019775 UUID is 2982c42b-4b31-4f97-954e-7c6b54cfc138 2025-10-30 02:02:34,128 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2982c42b-4b31-4f97-954e-7c6b54cfc138', 'name': 'ctest-vn4-47019775', 'tenant_id': '72a9c35a94a64307a3c45e104d25f60c', 'project_id': '72a9c35a94a64307a3c45e104d25f60c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e815971d-a8af-4bce-8094-4a469cca1ac8', '4dca9751-2415-40c6-b159-9e4b31fec5e8'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90315318', 'ctest-vn4-47019775'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90315318', 'ctest-policy1-57595955']], 'subnet_ipam': [{'subnet_cidr': '180.184.56.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '346a:2a17:f048:1e3b:d79d:78a0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-30T02:02:32.969459', 'updated_at': '2025-10-30T02:02:33.426936'}} 2025-10-30 02:02:34,327 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-30 02:02:34,670 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-30 02:02:34,752 - DEBUG - Requesting: https://10.0.0.27:8082/domain/e05897ec-8f26-4de0-b53d-6381700aec6a 2025-10-30 02:02:34,813 - DEBUG - Requesting: https://10.0.0.27:8082/project/72a9c35a-94a6-4307-a3c4-5e104d25f60c 2025-10-30 02:02:34,901 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/2982c42b-4b31-4f97-954e-7c6b54cfc138 2025-10-30 02:02:34,961 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/2982c42b-4b31-4f97-954e-7c6b54cfc138 2025-10-30 02:02:35,022 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/1c1579cb-822e-4013-966b-8e6e0ccc5690 2025-10-30 02:02:35,076 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/1c1579cb-822e-4013-966b-8e6e0ccc5690 2025-10-30 02:02:35,127 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/143e4be2-a0df-4113-aad3-4cec7d2a4412 2025-10-30 02:02:35,179 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:02:35,180 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/2982c42b-4b31-4f97-954e-7c6b54cfc138 2025-10-30 02:02:35,237 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/1c1579cb-822e-4013-966b-8e6e0ccc5690 2025-10-30 02:02:35,302 - INFO - Verified VN network id 11 for VN 2982c42b-4b31-4f97-954e-7c6b54cfc138 2025-10-30 02:02:35,302 - INFO - Verifications in API Server for VN ctest-vn4-47019775 passed 2025-10-30 02:02:35,302 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/2982c42b-4b31-4f97-954e-7c6b54cfc138 2025-10-30 02:02:35,357 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/1c1579cb-822e-4013-966b-8e6e0ccc5690 2025-10-30 02:02:35,412 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/1c1579cb-822e-4013-966b-8e6e0ccc5690 2025-10-30 02:02:35,463 - DEBUG - Requesting: https://10.0.0.27:8082/route-target/143e4be2-a0df-4113-aad3-4cec7d2a4412 2025-10-30 02:02:35,572 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-90315318:ctest-vn4-47019775', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-90315318', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2991168792751591319', 'uuid-lslong': '10758673360260940088'}, 'enable': 'true', 'created': '2025-10-30T02:02:32', 'last-modified': '2025-10-30T02:02:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.472606'} 2025-10-30 02:02:35,625 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 02:02:35,625 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47019775 passed 2025-10-30 02:02:35,625 - DEBUG - ====Verifying policy data for ctest-vn4-47019775 in API_Server ====== 2025-10-30 02:02:35,625 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-30 02:02:35,683 - DEBUG - Requesting: https://10.0.0.27:8082/domain/e05897ec-8f26-4de0-b53d-6381700aec6a 2025-10-30 02:02:35,740 - DEBUG - Requesting: https://10.0.0.27:8082/project/72a9c35a-94a6-4307-a3c4-5e104d25f60c 2025-10-30 02:02:35,820 - DEBUG - Requesting: https://10.0.0.27:8082/virtual-network/2982c42b-4b31-4f97-954e-7c6b54cfc138 2025-10-30 02:02:35,878 - DEBUG - ==>Verifying data for policy with id: 47abc9ee-ba62-4332-8524-6c7340ede180, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-90315318', 'ctest-policy1-57595955'] 2025-10-30 02:02:35,878 - INFO - VN ctest-vn4-47019775 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 02:02:35,878 - DEBUG - Verifying the vn in opserver 2025-10-30 02:02:35,878 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-90315318:ctest-vn4-47019775 virtual network link through opserver 10.0.0.27 2025-10-30 02:02:35,878 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-30 02:02:36,220 - DEBUG - Requesting: https://10.0.0.27:8081/analytics/uves/virtual-networks 2025-10-30 02:02:36,331 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-90315318:ctest-vn4-47019775', 'href': 'https://10.0.0.27:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-90315318:ctest-vn4-47019775?flat'} 2025-10-30 02:02:36,332 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-90315318:ctest-vn4-47019775 is found in opserver 2025-10-30 02:02:36,427 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 02:02:36,475 - DEBUG - VRF ids for VN ctest-vn4-47019775: {} 2025-10-30 02:02:36,476 - DEBUG - ====Verifying data for ctest-policy1-57595955 in API_Server ====== 2025-10-30 02:02:36,476 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-30 02:02:36,531 - DEBUG - Requesting: https://10.0.0.27:8082/domain/e05897ec-8f26-4de0-b53d-6381700aec6a 2025-10-30 02:02:36,588 - DEBUG - Requesting: https://10.0.0.27:8082/project/72a9c35a-94a6-4307-a3c4-5e104d25f60c 2025-10-30 02:02:36,660 - DEBUG - Requesting: https://10.0.0.27:8082/network-policy/47abc9ee-ba62-4332-8524-6c7340ede180 2025-10-30 02:02:36,717 - INFO - Verified policy ctest-policy1-57595955 in API Server, Result: True 2025-10-30 02:02:36,717 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 02:02:36,728 - INFO - Deleting VN ctest-vn4-47019775 2025-10-30 02:02:36,913 - DEBUG - Response for deleting network () 2025-10-30 02:02:36,913 - DEBUG - Requesting: https://10.0.0.27:8082/routing-instance/1c1579cb-822e-4013-966b-8e6e0ccc5690 2025-10-30 02:02:36,963 - DEBUG - Response Code: 404 2025-10-30 02:02:36,963 - DEBUG - Requesting: https://10.0.0.27:8082/domains 2025-10-30 02:02:37,019 - DEBUG - Requesting: https://10.0.0.27:8082/domain/e05897ec-8f26-4de0-b53d-6381700aec6a 2025-10-30 02:02:37,076 - DEBUG - Requesting: https://10.0.0.27:8082/project/72a9c35a-94a6-4307-a3c4-5e104d25f60c 2025-10-30 02:02:37,168 - INFO - Validated that VN ctest-vn4-47019775 is not found in API Server 2025-10-30 02:02:37,267 - DEBUG - VN ctest-vn4-47019775 is not present in Agent 10.0.0.27 2025-10-30 02:02:37,267 - INFO - Validated that VN ctest-vn4-47019775 is not in any agent 2025-10-30 02:02:37,416 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47019775 info 2025-10-30 02:02:37,440 - INFO - Deleted policy ctest-policy1-57595955 2025-10-30 02:02:37,614 - DEBUG - policy ctest-policy1-57595955 is not found in API Server 2025-10-30 02:02:37,996 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 02:02:37,996 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2025-10-30 02:02:37,996 - INFO - -------------------------------------------------------------------------------- 2025-10-30 02:02:38,404 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 02:02:38,404 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2025-10-30 02:02:38,404 - INFO - -------------------------------------------------------------------------------- 2025-10-30 02:02:39,176 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-90315318, ID : 72a9c35a-94a6-4307-a3c4-5e104d25f60c