VIM type openstack is not supported as an infra driver

Asked by Diarmuid O'Briain

VIM type openstack is not supported as an infra driver

I tried following the initial instructions for operating tacker. I got it installed OK, I have a cirros image in glance, I was able to create the vnfd using the file vnfd-sample file I got from the start guide (https://docs.openstack.org/developer/tacker/install/getting_started.html).

I just changed the image name to match the image in glance. However when I try and create the vnf I receive the message "VIM type openstack is not supported as an infra driver".

osbash@controller:~$ openstack image list
+--------------------------------------+--------+--------+
| ID | Name | Status |
+--------------------------------------+--------+--------+
| aee86071-fa23-45cd-bd13-b4215510322d | cirros | active |
+--------------------------------------+--------+--------+

osbash@controller:~$ tacker vim-list --column id --column name --column type
+--------------------------------------+------------+-----------+
| id | name | type |
+--------------------------------------+------------+-----------+
| d16323f7-24a1-4e7f-ba2b-8ecca764e82e | controller | openstack |
+--------------------------------------+------------+-----------+

osbash@controller:~$ tacker vnfd-create --vnfd-file ~/tacker/config/tosca-vnfd.yaml vnfd-sample
+--------------------------------------+-------------+-----------------+--------------+
| id | name | template_source | description |
+--------------------------------------+-------------+-----------------+--------------+
| 2bbc9dd0-2e2e-4d4e-8a13-799ee784e70c | vnfd-sample | onboarded | Demo example |
+--------------------------------------+-------------+-----------------+--------------+

osbash@controller:~$ tacker vnfd-create --vnfd-file ~/tacker/config/tosca-vnfd.yaml vnfd-sample
Created a new vnfd:
+-----------------+--------------------------------------+
| Field | Value |
+-----------------+--------------------------------------+
| created_at | 2017-05-23 12:45:33.846910 |
| description | Demo example |
| id | ce31622d-a5f1-47dc-89af-121274c142a8 |
| name | vnfd-sample |
| service_types | vnfd |
| template_source | onboarded |
| tenant_id | b078332877a243c3be1644d4ae77f439 |
| updated_at | |
+-----------------+--------------------------------------+

osbash@controller:~$ tacker vnf-create --vnfd-id ce31622d-a5f1-47dc-89af-121274c142a8 vnf-sample
VIM type openstack is not supported as an infra driver

I have added the tacker.conf and the tacker.log output on this webpage. The launchpad spam filter sees the log as spam.

http://www.obriain.com/temp/tacker_question-20170523.html

Question information

Language:
English Edit question
Status:
Answered
For:
tacker Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Yan Xing'an (yanxingan) said :
#1

can you print the result as following?

# python
Python 2.7.5 (default, Nov 6 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> u'openstack' in ['noop', 'openstack']
True
>>>

Revision history for this message
Yan Xing'an (yanxingan) said :
#2

And also print result in your env as following, to make sure openstack is in entry_points:

# tacker-server --version
%prog 0.7.1.dev32

# cat /usr/lib/python2.7/site-packages/tacker-0.7.1.dev32-py2.7.egg-info/entry_points.txt |grep vnfm.drivers -A 2
[tacker.tacker.vnfm.drivers]
noop = tacker.vnfm.infra_drivers.noop:DeviceNoop
openstack = tacker.vnfm.infra_drivers.openstack.openstack:OpenStack

Revision history for this message
Diarmuid O'Briain (laochmumhain) said :
#3

Yan,

Here is the version.

osbash@controller:~$ tacker-server --version
Guru meditation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
%prog 0.7.1.dev112

This is a fail, that python site

osbash@controller:~$ cat /usr/lib/python2.7/site-packages/tacker-0.7.1.dev32-py2.7.egg-info/entry_points.txt |grep vnfm.drivers -A 2
cat: /usr/lib/python2.7/site-packages/tacker-0.7.1.dev32-py2.7.egg-info/entry_points.txt: No such file or directory

Revision history for this message
Diarmuid O'Briain (laochmumhain) said :
#4

What step in the manual install is supposed to add that, I am pretty sure I followed the steps in the document correctly. How can I fix it ?

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Diarmuid O'Briain (laochmumhain) said :
#6

Still waiting for an answer to this question. I supplied the requested information.

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Diarmuid O'Briain (laochmumhain) said :
#8

No one answered. Question still valid.

Sent from my Samsung Galaxy smartphone.

-------- Original message --------
From: Launchpad Janitor <email address hidden>
Date: 25/06/2017 10:50 (GMT+00:00)
To: Diarmuid O'Briain <email address hidden>
Subject: Re: [Question #633708]: VIM type openstack is not supported as an infra driver

Your question #633708 on tacker changed:
https://answers.launchpad.net/tacker/+question/633708

    Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

--
If you're still having this problem, you can reopen your question either
by replying to this email or by going to the following page and
entering more information about your problem:
https://answers.launchpad.net/tacker/+question/633708

You received this question notification because you asked the question.

Revision history for this message
simar (simar15) said :
#9

what is the status of your VIM?

I too am facing the same problem, also when I register for VIM it shows pending.

Revision history for this message
Diarmuid O'Briain (laochmumhain) said :
#10

Simar,

Correct that is what I am seeing also.

osbash@controller:~$ tacker vim-list -c id -c name -c status
+--------------------------------------+------------+-----------+
| id | name | status |
+--------------------------------------+------------+-----------+
| d16323f7-24a1-4e7f-ba2b-8ecca764e82e | controller | REACHABLE |
+--------------------------------------+------------+-----------+

osbash@controller:~$ tacker vim-events-list -c id -c resource_id -c event_type -c resource_state
+----+--------------------------------------+------------+----------------+
| id | resource_id | event_type | resource_state |
+----+--------------------------------------+------------+----------------+
| 1 | d16323f7-24a1-4e7f-ba2b-8ecca764e82e | CREATE | PENDING |
| 2 | d16323f7-24a1-4e7f-ba2b-8ecca764e82e | MONITOR | REACHABLE |
+----+--------------------------------------+------------+----------------+

Revision history for this message
Sridhar Ramaswamy (srics-r) said :
#11

That is a valid response. VIM status starts as PENDING and then moves to REACHABLE once reachability is established.

To isolate the problem can you test creating a simple HEAT stack and see if that comes up fine. Also, please share the whole tacker.log.

Revision history for this message
Diarmuid O'Briain (laochmumhain) said :
#12

Sridhar,

Heat works fine. I had included the full tacker.log in the original post. Here it is again:

http://www.obriain.com/temp/tacker_question-20170523.html

thanks,

Diarmuid

Revision history for this message
simar (simar15) said :
#13

2017-06-28 12:42:50.528 8532 DEBUG tacker.common.log [req-95906ce3-7ac9-4538-b45a-25f8d51638ed 65eb5963176b40bcb7b776271d137df0 c2b6cdd3c101467183a30f73bf442d1b - - -] tacker.db.common_services.common_services_db_plugin.CommonServicesPluginDb method create_event called with arguments (<tacker.context.Context object at 0x7f9c174eba10>,) {'res_type': 'vnfd', 'evt_type': 'CREATE', 'res_id': '20a9c651-bd0f-4848-9a69-74e962b1ba75', 'res_state': 'OnBoarded', 'tstamp': datetime.datetime(2017, 6, 28, 19, 42, 50, 504511)} wrapper /usr/local/lib/python2.7/dist-packages/tacker/common/log.py:34
2017-06-28 12:42:50.551 8532 DEBUG tacker.vnfm.vim_client [req-95906ce3-7ac9-4538-b45a-25f8d51638ed 65eb5963176b40bcb7b776271d137df0 c2b6cdd3c101467183a30f73bf442d1b - - -] VIM info found for vim id b6aa4013-a20a-4ade-82a1-9602ecdd43a8 get_vim /usr/local/lib/python2.7/dist-packages/tacker/vnfm/vim_client.py:53
2017-06-28 12:42:50.551 8532 DEBUG tacker.vnfm.vim_client [req-95906ce3-7ac9-4538-b45a-25f8d51638ed 65eb5963176b40bcb7b776271d137df0 c2b6cdd3c101467183a30f73bf442d1b - - -] VIM id is b6aa4013-a20a-4ade-82a1-9602ecdd43a8 _build_vim_auth /usr/local/lib/python2.7/dist-packages/tacker/vnfm/vim_client.py:69
2017-06-28 12:42:50.552 8532 DEBUG tacker.vnfm.vim_client [req-95906ce3-7ac9-4538-b45a-25f8d51638ed 65eb5963176b40bcb7b776271d137df0 c2b6cdd3c101467183a30f73bf442d1b - - -] Attempting to open key file for vim id b6aa4013-a20a-4ade-82a1-9602ecdd43a8 _find_vim_key /usr/local/lib/python2.7/dist-packages/tacker/vnfm/vim_client.py:93
2017-06-28 12:42:50.554 8532 DEBUG tacker.vnfm.plugin [req-95906ce3-7ac9-4538-b45a-25f8d51638ed 65eb5963176b40bcb7b776271d137df0 c2b6cdd3c101467183a30f73bf442d1b - - -] unknown vim driver openstack in ['noop', 'openstack'] create_vnf /usr/local/lib/python2.7/dist-packages/tacker/vnfm/plugin.py:384
2017-06-28 12:42:50.555 8532 INFO tacker.api.v1.resource [req-95906ce3-7ac9-4538-b45a-25f8d51638ed 65eb5963176b40bcb7b776271d137df0 c2b6cdd3c101467183a30f73bf442d1b - - -] create failed (client error): The server could not comply with the request since it is either malformed or otherwise incorrect.
2017-06-28 12:42:50.557 8532 INFO tacker.wsgi [req-95906ce3-7ac9-4538-b45a-25f8d51638ed 65eb5963176b40bcb7b776271d137df0 c2b6cdd3c101467183a30f73bf442d1b - - -] 10.0.0.5 - - [28/Jun/2017 12:42:50] "POST //v1.0/vnfs.json HTTP/1.1" 400 339 0.181350

Revision history for this message
simar (simar15) said :
#14

Hi Sridhar,

Thanks for your reply.
I have attached tacker log too. Please let me know if you need any more information.

Revision history for this message
Launchpad Janitor (janitor) said :
#15

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Diarmuid O'Briain (laochmumhain) said :
#16

There has been no progress to this question but it is still an issue as documented above by multiple engineers.

Revision history for this message
Roger Luethi (rl-o) said :
#17

Try installing heat-translator. That should fix the problem.

Revision history for this message
Yan Xing'an (yanxingan) said :
#18

This issue occurs in my testbed, the reason is code problem in tacker/vnfm/infra_drivers/openstack/openstack.py, leading to fail to import openstack infra_driver.

So, if you have modified this file, please check it.

Revision history for this message
Trung Le Nguyen Anh (anhtrung87vn) said :
#19

I have the same issue. Do we resolve it?

Revision history for this message
Yan Xing'an (yanxingan) said :
#20

Hi, @Trung Le Nguyen Anh, can you share the log of tacker-server starting?
we can find whether openstack driver is failed to load or not.

Revision history for this message
Trung Le Nguyen Anh (anhtrung87vn) said :
#23

After installing mistral, I don't see the issue anymore but another issue. I will post another topic.

Revision history for this message
montida (pattaranantakul) said :
#24

I have faced the same problem while executing 'tacker vnfd-create' command -> "Request Failed: internal server error while processing your request.". Does any one know how to fix it?

I downloaded devstack/master, and reconfigure the local.con by enabling heat and tacker plugin like
enable_plugin heat https://git.openstack.org/openstack/heat master
enable_plugin networking-sfc git://git.openstack.org/openstack/networking-sfc master
enable_plugin barbican https://git.openstack.org/openstack/barbican master
enable_plugin tacker https://git.openstack.org/openstack/tacker master
enable_plugin mistral https://git.openstack.org/openstack/mistral master

enable_service n-novnc
enable_service n-cauth
enable_service h-eng h-api h-api-cfn h-api-cw

disable_service tempest

USE_BARBICAN=True

I have tacker version 0.10.0, destack version pike, ubuntu 17.04

Can you help with this problem?

Provide an answer of your own, or ask Diarmuid O'Briain for more information if necessary.

To post a message you must log in.