Tacker fails to register openstack VIM

Bug #2007632 reported by Louis Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
New
Undecided
Kenta Fukaya

Bug Description

I am using Tacker (master commit 46a28fc8) with devstack to connect external openstack.

I register VIM with config:
auth_url: 'http://keystone.ocloud.test/v3' # I also tried 'http://keystone.ocloud.test'
username: 'admin'
password: 'xxxxxx'
project_name: 'admin'
project_domain_name: 'Default'
user_domain_name: 'Default'
#cert_verify: 'False'

Run command "openstack vim register --config-file ./vim_config_openstack.yaml vim-openstack" response internal error.

I trace tacker source code, and find cause.

In tacker/tacker/nfvo/drivers/vim/openstack_driver.py:
OpenStack_Driver::register_vim
   self.discover_placement_attr(vim_obj, ks_client)
     regions = self._find_regions(ks_client)
       resp = ks_client.get('/v3/regions')

_find_regions calls ks_client.get with '/v3/regions'.
However, I capture the http packet and find that the real request URL sent to VIM is '/v3/v3/regions'.

After moidfy the code to ks_client.get('/regions'), openstack VIM can register success.

I am not sure this is tacker's BUG, keystoneauth1's BUG or I misconfig something.

Yasufumi Ogawa (yasufum)
Changed in tacker:
assignee: nobody → Yasufumi Ogawa (yasufum)
Changed in tacker:
assignee: Yasufumi Ogawa (yasufum) → Hiromu Asahina (h-asahina)
Kenta Fukaya (fukayan)
Changed in tacker:
assignee: Hiromu Asahina (h-asahina) → Kenta Fukaya (fukayan)
Revision history for this message
Kenta Fukaya (fukayan) wrote :

Hi, thanks for your report.
In order to determine the cause, could you give me the following information?

- version of keystoneauth1
- endpoint URL of keystone

Revision history for this message
Louis Li (gamerslouis) wrote (last edit ):

## Dev stack
DevStack Version: 2023.1
Change: 7533276c0a008bb84a58881494b1d627ec7bdcb9 Merge "Remove the neutron bash completion installation" 2023-02-02 00:50:10 +0000
OS Version: Ubuntu 20.04 focal

## pip freeze
keystoneauth1==5.1.1
keystonemiddleware==10.2.0
python-keystoneclient==5.0.1
python-tackerclient==1.12.0
-e git+https://opendev.org/openstack/tacker@46a28fc8a20efb6e5df79a3ffe2d525228e96681#egg=tacker
-e git+https://opendev.org/openstack/tacker-horizon.git@ef2bebf58ede4dc53d0b2adf7fe35a389405763f#egg=tacker_horizon

## openstack endpoint list
keystone endpoint: http://10.10.0.78/identity

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.