VNF force delete failed with invalid VIM error

Bug #1833506 reported by dharmendra on 2019-06-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
High
dharmendra

Bug Description

ubuntu@openstack-nti-4:/opt/stack/tacker$ openstack vnf list
+--------------------------------------+-----------+-------------------------------+-------------------+--------------------------------------+--------------------------------------+
| ID | Name | Mgmt Ip Address | Status | VIM ID | VNFD ID |
+--------------------------------------+-----------+-------------------------------+-------------------+--------------------------------------+--------------------------------------+
| 498c7161-568e-4d5c-83fd-bda07dbcfb9a | drax2_vnf | {"VDU1": ["192.168.120.44"]} | PENDING_SCALE_OUT | bf2a73ad-0ea0-47b3-8324-f1f86de3310a | 585f4321-823d-4aa5-8021-8a8555fbf8b1 |
| d893e3c7-1069-47c6-9636-b5427be1febd | drax1_vnf | {"VDU1": ["192.168.120.231"]} | PENDING_DELETE | f6cce305-965a-40a5-9b55-16e3e094ef55 | 4ec5e844-451a-49a7-a1e6-64ecaecee4c5 |
+--------------------------------------+-----------+-------------------------------+-------------------+--------------------------------------+--------------------------------------+
ubuntu@openstack-nti-4:/opt/stack/tacker$ openstack vnf delete d893e3c7-1069-47c6-9636-b5427be1febd --force

Unable to delete the below vnf(s):
 Cannot delete d893e3c7-1069-47c6-9636-b5427be1febd: Specified VIM id f6cce305-965a-40a5-9b55-16e3e094ef55 is invalid. Please verify and pass a valid VIM id

Traces are------------------>

2019-06-20 06:55:36.598 DEBUG tacker.common.log [req-b8c7eeb3-299d-4df6-b9d4-87c09bcacfba admin admin] tacker.db.common_services.common_services_db_plugin.CommonServicesPluginDb method create_event called with arguments (<tacker.context.Context object at 0x7fcfe9a51350>,) {'res_type': 'vnf', 'tstamp': datetime.datetime(2019, 6, 20, 6, 55, 36, 598682), 'details': 'VNF force delete initiated', 'evt_type': 'DELETE', 'res_id': u'd893e3c7-1069-47c6-9636-b5427be1febd', 'res_state': 'PENDING_DELETE'} wrapper /opt/stack/tacker/tacker/common/log.py:34
2019-06-20 06:55:36.625 ERROR tacker.api.v1.resource [req-b8c7eeb3-299d-4df6-b9d4-87c09bcacfba admin admin] delete failed: No details.: VimNotFoundException: Specified VIM id f6cce305-965a-40a5-9b55-16e3e094ef55 is invalid. Please verify and pass a valid VIM id
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource Traceback (most recent call last):
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/api/v1/resource.py", line 77, in resource
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource result = method(request=request, **args)
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/api/v1/base.py", line 421, in delete
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource obj_deleter(request.context, id, **kwargs)
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/vnfm/plugin.py", line 605, in delete_vnf
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource driver_name, vim_auth = self._get_infra_driver(context, vnf_dict)
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/vnfm/plugin.py", line 300, in _get_infra_driver
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource vim_res = self.get_vim(context, vnf_info)
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/vnfm/plugin.py", line 355, in get_vim
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource region_name)
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource File "/opt/stack/tacker/tacker/vnfm/vim_client.py", line 56, in get_vim
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource raise nfvo.VimNotFoundException(vim_id=vim_id)
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource VimNotFoundException: Specified VIM id f6cce305-965a-40a5-9b55-16e3e094ef55 is invalid. Please verify and pass a valid VIM id
2019-06-20 06:55:36.625 5579 ERROR tacker.api.v1.resource

Changed in tacker:
importance: Undecided → High
assignee: nobody → dharmendra (dharmendra-kushwaha)
Changed in tacker:
status: New → In Progress
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers