Tacker : Unable to create VIM

Asked by Akash

I am trying to create a VIM with the following command but am failing with the mentioned error. I tried passing the OS credentials with the tacker command but it failed then also. Please help.

$ tacker vim-register --description 'just a test' --config-file /opt/stack/data/tacker/vim_config.yaml test_vim

Unable to find key file for VIM db308eff-82ae-47a5-82b2-84ea9bc1e8ae

Please help. Stuck in the same for a while.

Question information

Language:
English Edit question
Status:
Expired
For:
tacker Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
yong sheng gong (gongysh) said :
#1

how do you install tacker? you can use kolla way: https://docs.openstack.org/tacker/latest/install/kolla.html

Revision history for this message
Akash (akash1471) said :
#2

I installed Openstack with tacker using devstack installation (ocata branch).

Revision history for this message
Cong Phuoc Hoang (hoangphuoc) said :
#3

Can you show me your vim_config.yaml file?

Revision history for this message
Akash (akash1471) said :
#4

My vim_config.yaml file is as follows:

auth_url: 'http://172.16.66.169:35357/v3'
username: 'placement'
password: 'openstack'
project_name: 'service'
project_domain_name: 'Default'
user_domain_name: 'Default'

Revision history for this message
Cong Phuoc Hoang (hoangphuoc) said :
#5

I see your project_name is 'service' , it is wired to me. Because I don't know your devstack configuration, so here is my local.conf file: http://paste.openstack.org/show/613061. Username is 'admin', password is 'devstack', I only use the default configurations with project_name is 'admin'.

Then I create vim_config.yaml file with flowing content:
http://paste.openstack.org/show/622724/

tacker vim-register --config-file vim_config.yaml --is-default vim-default

I worked fine for me. I hope it will help you :)

Revision history for this message
Akash (akash1471) said :
#6

Ok, I will try this and let you know. Thanks

Revision history for this message
Akash (akash1471) said :
#7

I am still getting the same... Still the same error.. Unable to find key. Can you please help me out?

Revision history for this message
Cong Phuoc Hoang (hoangphuoc) said :
#8

Can you give me your local.conf file?

Revision history for this message
Akash (akash1471) said :
#9

Here is my local.conf file

[[local|localrc]]

#OFFLINE=True

disable_all_services

# Core compute (glance+keystone+nova+vnc)

enable_service g-api g-reg key n-api n-crt n-obj n-cpu n-cond n-sch n-novnc n-xvnc n-cauth

ENABLED_SERVICES+=,placement-api,placement-client

#enable heat services

ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng

# Enable the ceilometer metering services

#enable_service ceilometer-acompute ceilometer-acentral ceilometer-anotification ceilometer-collector

# Enable the ceilometer alarming services

#enable_service ceilometer-alarm-evaluator,ceilometer-alarm-notifier

# Enable the ceilometer api services

#enable_service ceilometer-api

disable_service tempest

enable_service cinder c-api c-sch c-vol

enable_service s-proxy s-object s-container s-account

# dashboard

enable_service horizon

#disable_service horizon

#network

disable_service n-net

enable_service q-svc

enable_service q-agt

enable_service q-dhcp

enable_service q-l3

enable_service q-meta

enable_service neutron

# additional services

enable_service mysql rabbit

HOST_IP=172.16.66.169

MYSQL_PASSWORD=openstack

RABBIT_PASSWORD=openstack

SERVICE_TOKEN=openstack

SERVICE_PASSWORD=openstack

ADMIN_PASSWORD=openstack

SWIFT_HASH=openstack

PUBLIC_INTERFACE=eno1

#mistral

enable_plugin mistral https://github.com/openstack/mistral.git

enable_plugin tacker https://git.openstack.org/openstack/tacker stable/ocata

# Neutron options

Q_USE_SECGROUP=True

FLOATING_RANGE="172.16.66.0/24"

FIXED_RANGE="10.0.0.0/24"

NETWORK_GATEWAY=10.0.0.1

Q_FLOATING_ALLOCATION_POOL=start=172.16.66.11,end=172.16.66.15

PUBLIC_NETWORK_GATEWAY="172.16.66.1"

Q_L3_ENABLED=True

PUBLIC_INTERFACE=eno1

Q_USE_PROVIDERNET_FOR_PUBLIC=True

OVS_PHYSICAL_BRIDGE=br-ex

PUBLIC_BRIDGE=br-ex

OVS_BRIDGE_MAPPINGS=public:br-ex

Revision history for this message
Cong Phuoc Hoang (hoangphuoc) said :
#10

Can you try with this local.conf file
http://paste.openstack.org/show/623907/

If it is not working, I prefer to use master version in Tacker
http://paste.openstack.org/show/613061

Revision history for this message
Akash (akash1471) said :
#11

ok

Revision history for this message
Akash (akash1471) said :
#12

On trying the first local.conf file , i am getting the following error during installation:

2017-10-20 12:10:52.256 | Running upgrade for neutron ...
2017-10-20 12:10:52.256 | OK
2017-10-20 12:10:52.256 | Traceback (most recent call last):
2017-10-20 12:10:52.256 | File "/usr/local/bin/neutron-db-manage", line 10, in <module>
2017-10-20 12:10:52.256 | sys.exit(main())
2017-10-20 12:10:52.256 | File "/opt/stack/neutron/neutron/db/migration/cli.py", line 688, in main
2017-10-20 12:10:52.256 | return_val |= bool(CONF.command.func(config, CONF.command.name))
2017-10-20 12:10:52.256 | File "/opt/stack/neutron/neutron/db/migration/cli.py", line 207, in do_upgrade
2017-10-20 12:10:52.256 | run_sanity_checks(config, revision)
2017-10-20 12:10:52.256 | File "/opt/stack/neutron/neutron/db/migration/cli.py", line 672, in run_sanity_checks
2017-10-20 12:10:52.256 | script_dir.run_env()
2017-10-20 12:10:52.256 | File "/usr/local/lib/python2.7/dist-packages/alembic/script/base.py", line 425, in run_env
2017-10-20 12:10:52.256 | util.load_python_file(self.dir, 'env.py')
2017-10-20 12:10:52.256 | File "/usr/local/lib/python2.7/dist-packages/alembic/util/pyfiles.py", line 93, in load_python_file
2017-10-20 12:10:52.256 | module = load_module_py(module_id, path)
2017-10-20 12:10:52.256 | File "/usr/local/lib/python2.7/dist-packages/alembic/util/compat.py", line 75, in load_module_py
2017-10-20 12:10:52.256 | mod = imp.load_source(module_id, path, fp)
2017-10-20 12:10:52.256 | File "/opt/stack/networking-sfc/networking_sfc/db/migration/alembic_migrations/env.py", line 25, in <module>
2017-10-20 12:10:52.256 | from networking_sfc.db.migration.models import head # noqa
2017-10-20 12:10:52.256 | File "/opt/stack/networking-sfc/networking_sfc/db/migration/models/head.py", line 17, in <module>
2017-10-20 12:10:52.256 | from networking_sfc.db import flowclassifier_db # noqa
2017-10-20 12:10:52.256 | File "/opt/stack/networking-sfc/networking_sfc/db/flowclassifier_db.py", line 33, in <module>
2017-10-20 12:10:52.257 | from networking_sfc.extensions import flowclassifier as fc_ext
2017-10-20 12:10:52.257 | File "/opt/stack/networking-sfc/networking_sfc/extensions/flowclassifier.py", line 291, in <module>
2017-10-20 12:10:52.257 | class FlowClassifierPluginBase(service_base.ServicePluginBase):
2017-10-20 12:10:52.257 | AttributeError: 'module' object has no attribute 'ServicePluginBase'
2017-10-20 12:10:52.333 | +lib/neutron-legacy:init_mutnauq:1 exit_trap
2017-10-20 12:10:52.336 | +./stack.sh:exit_trap:493 local r=1
2017-10-20 12:10:52.340 | ++./stack.sh:exit_trap:494 jobs -p
2017-10-20 12:10:52.344 | +./stack.sh:exit_trap:494 jobs=
2017-10-20 12:10:52.348 | +./stack.sh:exit_trap:497 [[ -n '' ]]
2017-10-20 12:10:52.352 | +./stack.sh:exit_trap:503 '[' -f /tmp/tmp.kRi0OJbTYV ']'
2017-10-20 12:10:52.356 | +./stack.sh:exit_trap:504 rm /tmp/tmp.kRi0OJbTYV
2017-10-20 12:10:52.360 | +./stack.sh:exit_trap:508 kill_spinner
2017-10-20 12:10:52.364 | +./stack.sh:kill_spinner:407 '[' '!' -z '' ']'
2017-10-20 12:10:52.369 | +./stack.sh:exit_trap:510 [[ 1 -ne 0 ]]
2017-10-20 12:10:52.372 | +./stack.sh:exit_trap:511 echo 'Error on exit'
2017-10-20 12:10:52.372 | Error on exit
2017-10-20 12:10:52.376 | +./stack.sh:exit_trap:513 type -p generate-subunit
2017-10-20 12:10:52.380 | +./stack.sh:exit_trap:514 generate-subunit 1508495179 6273 fail
2017-10-20 12:10:52.600 | +./stack.sh:exit_trap:516 [[ -z /opt/stack/logs ]]
2017-10-20 12:10:52.603 | +./stack.sh:exit_trap:519 /home/stack/devstack/tools/worlddump.py -d /opt/stack/logs
2017-10-20 12:10:52.914 | +./stack.sh:exit_trap:528 exit 1

Revision history for this message
Cong Phuoc Hoang (hoangphuoc) said :
#13

I get this errors too. I think you should try master branch version

Revision history for this message
Akash (akash1471) said :
#14

I am getting the same error for master also.

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.