configure Script Fails with TypeError if the Undercloud Runs on Keystone v2

Bug #1693144 reported by Dominique Poulain
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Charm Testing
New
Undecided
Unassigned

Bug Description

Undercloud: OpenStack Mitaka w/ Keystone v2
revno: 298

Steps followed:

$ bzr branch lp:openstack-charm-testing openstack-charm-testing-local
[...]
$ cd openstack-charm-testing-local
$ juju deployer -B -c default.yaml -d -v -s 20 -r 3 xenial-mitaka
[...]
./configure
[...]
Traceback (most recent call last):
  File "./bin/post-deploy-config", line 44, in <module>
    auth_url=os.environ['OS_AUTH_URL'])
  File "/usr/lib/python3/dist-packages/keystoneauth1/identity/v3/base.py", line 281, in __init__
    super(AuthConstructor, self).__init__(auth_url, [method], **kwargs)
  File "/usr/lib/python3/dist-packages/keystoneauth1/identity/v3/base.py", line 109, in __init__
    super(Auth, self).__init__(auth_url=auth_url, **kwargs)
  File "/usr/lib/python3/dist-packages/positional/__init__.py", line 94, in inner
    return func(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'tenant_name'

A workaround is:

$ diff -u post-deploy-config.ori post-deploy-config
--- post-deploy-config.ori 2017-05-24 08:24:53.101691000 +0000
+++ post-deploy-config 2017-05-24 08:55:39.719445000 +0000
@@ -10,7 +10,7 @@
 from neutronclient.v2_0 import client as ne_client
 from novaclient import client as no_client

-import keystoneauth1.identity.v3 as keystoneauth1
+import keystoneauth1.identity.v2 as keystoneauth1
 import keystoneauth1.session as keystoneauth1_session

With that workaround in place, we get a little further along the configure script - we then run into LP#1693146.

Tags: sts
description: updated
summary: - configure Script Fails with TypeError if the Undercloud runs on Keystone
+ configure Script Fails with TypeError if the Undercloud Runs on Keystone
v2
description: updated
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.