2025-07-31 12:51:20,537 - INFO - Domain Default found not creating 2025-07-31 12:51:20,695 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-34762488 not found, creating it 2025-07-31 12:51:21,164 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-34762488, ID : ae0c0593-6523-4bec-96b9-e81fd38bae5f 2025-07-31 12:51:23,220 - INFO - ================================================================================ 2025-07-31 12:51:23,220 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-31 12:51:23,476 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-07-31 12:51:23,476 - INFO - Initial checks done. Running the testcase now 2025-07-31 12:51:23,477 - INFO - 2025-07-31 12:51:23,477 - INFO - ================================================================================ 2025-07-31 12:51:23,477 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-31 12:51:23,477 - 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-07-31 12:51:23,765 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-07-31 12:51:23,765 - INFO - Initial checks done. Running the testcase now 2025-07-31 12:51:23,765 - INFO - 2025-07-31 12:51:24,112 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34762488:ctest-vn4-61270734, 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-34762488:ctest-vn4-61270734, 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-34762488:ctest-vn4-61270734, 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-34762488:ctest-vn4-61270734, 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-07-31 12:51:24,650 - DEBUG - Response for create_network : {'network': {'id': 'ecbbf399-6c48-41eb-b408-a21ee19399da', 'name': 'ctest-vn4-61270734', 'tenant_id': 'ae0c059365234bec96b9e81fd38bae5f', 'project_id': 'ae0c059365234bec96b9e81fd38bae5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34762488', 'ctest-vn4-61270734'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 12:51:24,850 - DEBUG - Response for create_subnet : {'subnet': {'id': '0e0b273a-11db-4e9f-b522-a32f22ed4930', 'name': '', 'tenant_id': 'ae0c059365234bec96b9e81fd38bae5f', 'network_id': 'ecbbf399-6c48-41eb-b408-a21ee19399da', 'ip_version': 4, 'cidr': '215.149.231.64/26', 'allocation_pools': [{'start': '215.149.231.66', 'end': '215.149.231.126'}], 'gateway_ip': '215.149.231.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '215.149.231.66', 'tags': [], 'project_id': 'ae0c059365234bec96b9e81fd38bae5f'}} 2025-07-31 12:51:25,017 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dacd5823-c8de-45e8-b4c7-c912c79f37bd', 'name': '', 'tenant_id': 'ae0c059365234bec96b9e81fd38bae5f', 'network_id': 'ecbbf399-6c48-41eb-b408-a21ee19399da', 'ip_version': 6, 'cidr': '202e:cbbb:30ba:71d3:c57d:f67b::/96', 'allocation_pools': [{'start': '202e:cbbb:30ba:71d3:c57d:f67b:0:2', 'end': '202e:cbbb:30ba:71d3:c57d:f67b:ffff:fffe'}], 'gateway_ip': '202e:cbbb:30ba:71d3:c57d:f67b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '202e:cbbb:30ba:71d3:c57d:f67b:0:2', 'tags': [], 'project_id': 'ae0c059365234bec96b9e81fd38bae5f'}} 2025-07-31 12:51:25,044 - INFO - Created VN ctest-vn4-61270734 2025-07-31 12:51:25,099 - DEBUG - VN ctest-vn4-61270734 UUID is ecbbf399-6c48-41eb-b408-a21ee19399da 2025-07-31 12:51:25,321 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ecbbf399-6c48-41eb-b408-a21ee19399da', 'name': 'ctest-vn4-61270734', 'tenant_id': 'ae0c059365234bec96b9e81fd38bae5f', 'project_id': 'ae0c059365234bec96b9e81fd38bae5f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0e0b273a-11db-4e9f-b522-a32f22ed4930', 'dacd5823-c8de-45e8-b4c7-c912c79f37bd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34762488', 'ctest-vn4-61270734'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34762488', 'ctest-policy1-10006392']], 'subnet_ipam': [{'subnet_cidr': '215.149.231.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '202e:cbbb:30ba:71d3:c57d:f67b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 12:51:25,498 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-31 12:51:25,794 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-31 12:51:25,821 - DEBUG - Requesting: http://10.0.0.50:8082/domain/87a790ac-c1b1-4085-ae5c-c5018b1e875d 2025-07-31 12:51:25,836 - DEBUG - Requesting: http://10.0.0.50:8082/project/ae0c0593-6523-4bec-96b9-e81fd38bae5f 2025-07-31 12:51:25,936 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ecbbf399-6c48-41eb-b408-a21ee19399da 2025-07-31 12:51:25,951 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ecbbf399-6c48-41eb-b408-a21ee19399da 2025-07-31 12:51:25,963 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fe0e62ed-8a66-44eb-9b45-26792aedd555 2025-07-31 12:51:25,972 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fe0e62ed-8a66-44eb-9b45-26792aedd555 2025-07-31 12:51:25,981 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/106cb52b-bcab-4963-a9dc-7b23fbeb665a 2025-07-31 12:51:25,988 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 12:51:25,988 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ecbbf399-6c48-41eb-b408-a21ee19399da 2025-07-31 12:51:26,001 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fe0e62ed-8a66-44eb-9b45-26792aedd555 2025-07-31 12:51:26,020 - INFO - Verified VN network id 11 for VN ecbbf399-6c48-41eb-b408-a21ee19399da 2025-07-31 12:51:26,020 - INFO - Verifications in API Server for VN ctest-vn4-61270734 passed 2025-07-31 12:51:26,020 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ecbbf399-6c48-41eb-b408-a21ee19399da 2025-07-31 12:51:26,034 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fe0e62ed-8a66-44eb-9b45-26792aedd555 2025-07-31 12:51:26,042 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fe0e62ed-8a66-44eb-9b45-26792aedd555 2025-07-31 12:51:26,050 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/106cb52b-bcab-4963-a9dc-7b23fbeb665a 2025-07-31 12:51:26,064 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34762488:ctest-vn4-61270734', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-34762488', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17058495853868106219', 'uuid-lslong': '12972796980157979098'}, 'enable': 'true', 'created': '2025-07-31T12:51:24', 'last-modified': '2025-07-31T12:51:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.782060'} 2025-07-31 12:51:26,071 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 12:51:26,071 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-61270734 passed 2025-07-31 12:51:26,072 - DEBUG - ====Verifying policy data for ctest-vn4-61270734 in API_Server ====== 2025-07-31 12:51:26,072 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-31 12:51:26,078 - DEBUG - Requesting: http://10.0.0.50:8082/domain/87a790ac-c1b1-4085-ae5c-c5018b1e875d 2025-07-31 12:51:26,092 - DEBUG - Requesting: http://10.0.0.50:8082/project/ae0c0593-6523-4bec-96b9-e81fd38bae5f 2025-07-31 12:51:26,168 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ecbbf399-6c48-41eb-b408-a21ee19399da 2025-07-31 12:51:26,179 - DEBUG - ==>Verifying data for policy with id: efadeeb6-9e50-4e31-b8c3-d2cb4d8c6fcd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-34762488', 'ctest-policy1-10006392'] 2025-07-31 12:51:26,179 - INFO - VN ctest-vn4-61270734 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 12:51:26,179 - DEBUG - Verifying the vn in opserver 2025-07-31 12:51:26,179 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34762488:ctest-vn4-61270734 virtual network link through opserver 10.0.0.50 2025-07-31 12:51:26,180 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-31 12:51:26,472 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-31 12:51:26,532 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34762488:ctest-vn4-61270734', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34762488:ctest-vn4-61270734?flat'} 2025-07-31 12:51:26,532 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-34762488:ctest-vn4-61270734 is found in opserver 2025-07-31 12:51:26,543 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 12:51:26,549 - DEBUG - VRF ids for VN ctest-vn4-61270734: {} 2025-07-31 12:51:26,549 - DEBUG - ====Verifying data for ctest-policy1-10006392 in API_Server ====== 2025-07-31 12:51:26,549 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-31 12:51:26,556 - DEBUG - Requesting: http://10.0.0.50:8082/domain/87a790ac-c1b1-4085-ae5c-c5018b1e875d 2025-07-31 12:51:26,569 - DEBUG - Requesting: http://10.0.0.50:8082/project/ae0c0593-6523-4bec-96b9-e81fd38bae5f 2025-07-31 12:51:26,642 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/efadeeb6-9e50-4e31-b8c3-d2cb4d8c6fcd 2025-07-31 12:51:26,653 - INFO - Verified policy ctest-policy1-10006392 in API Server, Result: True 2025-07-31 12:51:26,653 - INFO - Done with setup and verification, moving onto test .. 2025-07-31 12:51:26,663 - INFO - Deleting VN ctest-vn4-61270734 2025-07-31 12:51:26,794 - DEBUG - Response for deleting network () 2025-07-31 12:51:26,794 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/fe0e62ed-8a66-44eb-9b45-26792aedd555 2025-07-31 12:51:26,800 - DEBUG - Response Code: 404 2025-07-31 12:51:26,800 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-31 12:51:26,806 - DEBUG - Requesting: http://10.0.0.50:8082/domain/87a790ac-c1b1-4085-ae5c-c5018b1e875d 2025-07-31 12:51:26,860 - DEBUG - Requesting: http://10.0.0.50:8082/project/ae0c0593-6523-4bec-96b9-e81fd38bae5f 2025-07-31 12:51:26,936 - INFO - Validated that VN ctest-vn4-61270734 is not found in API Server 2025-07-31 12:51:26,948 - DEBUG - VN ctest-vn4-61270734 is not present in Agent 10.0.0.50 2025-07-31 12:51:26,948 - INFO - Validated that VN ctest-vn4-61270734 is not in any agent 2025-07-31 12:51:26,966 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-61270734 info 2025-07-31 12:51:26,992 - INFO - Deleted policy ctest-policy1-10006392 2025-07-31 12:51:27,162 - DEBUG - policy ctest-policy1-10006392 is not found in API Server 2025-07-31 12:51:27,417 - DEBUG - No XMPP flaps were noticed during the test 2025-07-31 12:51:27,417 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-07-31 12:51:27,417 - INFO - -------------------------------------------------------------------------------- 2025-07-31 12:51:27,714 - DEBUG - No XMPP flaps were noticed during the test 2025-07-31 12:51:27,714 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-07-31 12:51:27,714 - INFO - -------------------------------------------------------------------------------- 2025-07-31 12:51:28,413 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-34762488, ID : ae0c0593-6523-4bec-96b9-e81fd38bae5f