2025-10-06 01:46:44,554 - INFO - Domain Default found not creating 2025-10-06 01:46:44,690 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-15428531 not found, creating it 2025-10-06 01:46:45,113 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-15428531, ID : da0923c0-85fc-4c87-be62-bbae1d38aa75 2025-10-06 01:46:46,453 - INFO - ================================================================================ 2025-10-06 01:46:46,453 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 01:46:46,707 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with 2025-10-06 01:46:46,707 - INFO - Initial checks done. Running the testcase now 2025-10-06 01:46:46,707 - INFO - 2025-10-06 01:46:46,707 - INFO - ================================================================================ 2025-10-06 01:46:46,707 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 01:46:46,707 - 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-06 01:46:47,003 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.14': '0'}} with 2025-10-06 01:46:47,003 - INFO - Initial checks done. Running the testcase now 2025-10-06 01:46:47,003 - INFO - 2025-10-06 01:46:47,351 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15428531:ctest-vn4-15268625, 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-15428531:ctest-vn4-15268625, 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-15428531:ctest-vn4-15268625, 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-15428531:ctest-vn4-15268625, 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-06 01:46:47,840 - DEBUG - Response for create_network : {'network': {'id': '85a26d3f-aab2-48da-b2c2-402769904ca3', 'name': 'ctest-vn4-15268625', 'tenant_id': 'da0923c085fc4c87be62bbae1d38aa75', 'project_id': 'da0923c085fc4c87be62bbae1d38aa75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15428531', 'ctest-vn4-15268625'], 'port_security_enabled': True, 'description': ''}} 2025-10-06 01:46:47,992 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5474b75-7ce8-4765-99f6-3d96e57cfde8', 'name': '', 'tenant_id': 'da0923c085fc4c87be62bbae1d38aa75', 'network_id': '85a26d3f-aab2-48da-b2c2-402769904ca3', 'ip_version': 4, 'cidr': '162.94.210.128/26', 'allocation_pools': [{'start': '162.94.210.130', 'end': '162.94.210.190'}], 'gateway_ip': '162.94.210.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.94.210.130', 'tags': [], 'project_id': 'da0923c085fc4c87be62bbae1d38aa75'}} 2025-10-06 01:46:48,171 - DEBUG - Response for create_subnet : {'subnet': {'id': '957e466c-6296-4797-89d9-71588062b42f', 'name': '', 'tenant_id': 'da0923c085fc4c87be62bbae1d38aa75', 'network_id': '85a26d3f-aab2-48da-b2c2-402769904ca3', 'ip_version': 6, 'cidr': '35a7:c138:8af:1aab:e0b8:dc32::/96', 'allocation_pools': [{'start': '35a7:c138:8af:1aab:e0b8:dc32:0:2', 'end': '35a7:c138:8af:1aab:e0b8:dc32:ffff:fffe'}], 'gateway_ip': '35a7:c138:8af:1aab:e0b8:dc32:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35a7:c138:8af:1aab:e0b8:dc32:0:2', 'tags': [], 'project_id': 'da0923c085fc4c87be62bbae1d38aa75'}} 2025-10-06 01:46:48,189 - INFO - Created VN ctest-vn4-15268625 2025-10-06 01:46:48,242 - DEBUG - VN ctest-vn4-15268625 UUID is 85a26d3f-aab2-48da-b2c2-402769904ca3 2025-10-06 01:46:48,425 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '85a26d3f-aab2-48da-b2c2-402769904ca3', 'name': 'ctest-vn4-15268625', 'tenant_id': 'da0923c085fc4c87be62bbae1d38aa75', 'project_id': 'da0923c085fc4c87be62bbae1d38aa75', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5474b75-7ce8-4765-99f6-3d96e57cfde8', '957e466c-6296-4797-89d9-71588062b42f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15428531', 'ctest-vn4-15268625'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15428531', 'ctest-policy1-99588723']], 'subnet_ipam': [{'subnet_cidr': '162.94.210.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '35a7:c138:8af:1aab:e0b8:dc32::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-06 01:46:48,586 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-06 01:46:48,875 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-06 01:46:48,899 - DEBUG - Requesting: http://10.0.0.130:8082/domain/fbcd0d6b-1b30-465c-a9a4-10e5a1179752 2025-10-06 01:46:48,909 - DEBUG - Requesting: http://10.0.0.130:8082/project/da0923c0-85fc-4c87-be62-bbae1d38aa75 2025-10-06 01:46:48,978 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/85a26d3f-aab2-48da-b2c2-402769904ca3 2025-10-06 01:46:48,988 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/85a26d3f-aab2-48da-b2c2-402769904ca3 2025-10-06 01:46:48,996 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/00f81ff9-25e0-4798-8073-5c679c0ec9db 2025-10-06 01:46:49,003 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/00f81ff9-25e0-4798-8073-5c679c0ec9db 2025-10-06 01:46:49,008 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/82cbb86f-2502-4a36-8a42-c31f77d6febc 2025-10-06 01:46:49,013 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 01:46:49,013 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/85a26d3f-aab2-48da-b2c2-402769904ca3 2025-10-06 01:46:49,022 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/00f81ff9-25e0-4798-8073-5c679c0ec9db 2025-10-06 01:46:49,033 - INFO - Verified VN network id 12 for VN 85a26d3f-aab2-48da-b2c2-402769904ca3 2025-10-06 01:46:49,033 - INFO - Verifications in API Server for VN ctest-vn4-15268625 passed 2025-10-06 01:46:49,034 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/85a26d3f-aab2-48da-b2c2-402769904ca3 2025-10-06 01:46:49,043 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/00f81ff9-25e0-4798-8073-5c679c0ec9db 2025-10-06 01:46:49,048 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/00f81ff9-25e0-4798-8073-5c679c0ec9db 2025-10-06 01:46:49,053 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/82cbb86f-2502-4a36-8a42-c31f77d6febc 2025-10-06 01:46:49,063 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15428531:ctest-vn4-15268625', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15428531', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9629379073485719770', 'uuid-lslong': '12880928422252006563'}, 'enable': 'true', 'created': '2025-10-06T01:46:47', 'last-modified': '2025-10-06T01:46:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.662417'} 2025-10-06 01:46:49,068 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 01:46:49,068 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15268625 passed 2025-10-06 01:46:49,068 - DEBUG - ====Verifying policy data for ctest-vn4-15268625 in API_Server ====== 2025-10-06 01:46:49,068 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-06 01:46:49,073 - DEBUG - Requesting: http://10.0.0.130:8082/domain/fbcd0d6b-1b30-465c-a9a4-10e5a1179752 2025-10-06 01:46:49,083 - DEBUG - Requesting: http://10.0.0.130:8082/project/da0923c0-85fc-4c87-be62-bbae1d38aa75 2025-10-06 01:46:49,148 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/85a26d3f-aab2-48da-b2c2-402769904ca3 2025-10-06 01:46:49,158 - DEBUG - ==>Verifying data for policy with id: 6e816dd4-0152-4ea3-b345-307c4c5f6ef1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15428531', 'ctest-policy1-99588723'] 2025-10-06 01:46:49,158 - INFO - VN ctest-vn4-15268625 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-06 01:46:49,158 - DEBUG - Verifying the vn in opserver 2025-10-06 01:46:49,158 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15428531:ctest-vn4-15268625 virtual network link through opserver 10.0.0.130 2025-10-06 01:46:49,158 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-10-06 01:46:49,452 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-10-06 01:46:49,516 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15428531:ctest-vn4-15268625', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15428531:ctest-vn4-15268625?flat'} 2025-10-06 01:46:49,516 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15428531:ctest-vn4-15268625 is found in opserver 2025-10-06 01:46:49,524 - DEBUG - Do not have enough data to verify VN in agent 2025-10-06 01:46:49,528 - DEBUG - VRF ids for VN ctest-vn4-15268625: {} 2025-10-06 01:46:49,528 - DEBUG - ====Verifying data for ctest-policy1-99588723 in API_Server ====== 2025-10-06 01:46:49,528 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-06 01:46:49,533 - DEBUG - Requesting: http://10.0.0.130:8082/domain/fbcd0d6b-1b30-465c-a9a4-10e5a1179752 2025-10-06 01:46:49,543 - DEBUG - Requesting: http://10.0.0.130:8082/project/da0923c0-85fc-4c87-be62-bbae1d38aa75 2025-10-06 01:46:49,608 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/6e816dd4-0152-4ea3-b345-307c4c5f6ef1 2025-10-06 01:46:49,617 - INFO - Verified policy ctest-policy1-99588723 in API Server, Result: True 2025-10-06 01:46:49,617 - INFO - Done with setup and verification, moving onto test .. 2025-10-06 01:46:49,623 - INFO - Deleting VN ctest-vn4-15268625 2025-10-06 01:46:49,714 - DEBUG - Response for deleting network () 2025-10-06 01:46:49,714 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/00f81ff9-25e0-4798-8073-5c679c0ec9db 2025-10-06 01:46:49,718 - DEBUG - Response Code: 404 2025-10-06 01:46:49,718 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-10-06 01:46:49,722 - DEBUG - Requesting: http://10.0.0.130:8082/domain/fbcd0d6b-1b30-465c-a9a4-10e5a1179752 2025-10-06 01:46:49,774 - DEBUG - Requesting: http://10.0.0.130:8082/project/da0923c0-85fc-4c87-be62-bbae1d38aa75 2025-10-06 01:46:49,841 - INFO - Validated that VN ctest-vn4-15268625 is not found in API Server 2025-10-06 01:46:49,849 - DEBUG - VN ctest-vn4-15268625 is not present in Agent 10.0.0.130 2025-10-06 01:46:49,849 - INFO - Validated that VN ctest-vn4-15268625 is not in any agent 2025-10-06 01:46:49,860 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15268625 info 2025-10-06 01:46:49,881 - INFO - Deleted policy ctest-policy1-99588723 2025-10-06 01:46:50,038 - DEBUG - policy ctest-policy1-99588723 is not found in API Server 2025-10-06 01:46:50,290 - DEBUG - No XMPP flaps were noticed during the test
2025-10-06 01:46:50,290 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-06 01:46:50,290 - INFO - -------------------------------------------------------------------------------- 2025-10-06 01:46:50,579 - DEBUG - No XMPP flaps were noticed during the test
2025-10-06 01:46:50,579 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-06 01:46:50,579 - INFO - -------------------------------------------------------------------------------- 2025-10-06 01:46:51,225 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-15428531, ID : da0923c0-85fc-4c87-be62-bbae1d38aa75