'Namespace' object has no attribute 'os_user_id'

Bug #1817396 reported by Eric Xie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned
python-novaclient
Expired
Undecided
Unassigned

Bug Description

Description
===========
In my env, use keycloak as the IDP of keystone.
But when i used the rc file to execute `nova force-delete INSTANCE`, got this error.

Steps to reproduce
==================
* Use keycloak as the IDP of keystone
* then I created the rc file
export OS_AUTH_TYPE=v3oidcpassword
export OS_ACCESS_TOKEN_ENDPOINT=https://xxx/auth/realms/picp/protocol/openid-connect/token
export OS_IDENTITY_PROVIDER=keycloak
export OS_PROTOCOL=openid
export OS_IDENTITY_API_VERSION=3
export OS_AUTH_URL=http://xxx/v3
export OS_PROJECT_DOMAIN_NAME=Default
export OS_REGION_NAME=xxx
#export OS_REGION_NAME=RegionOne
export OS_USERNAME="test05"
#export OS_PASSWORD=123456a?
export OS_PASSWORD=passowrd
export OS_CLIENT_ID=keyclient
export OS_CLIENT_SECRET=4dcd201a-c387-4759-a362-4addb3acbcc8
export OS_PROJECT_NAME="test"
export OS_INTERFACE=internal
export OS_ENDPOINT_TYPE="internal"
export OS_CACERT="/etc/ssl/certs/ca-certificates.crt"
* then I sourced this rc file, executed `nova force-delete` CLI
nova force-delete ECS-2019223142413-0008

Expected result
===============
No output

Actual result
=============
Got 'ERROR (AttributeError): 'Namespace' object has no attribute 'os_user_id''

Environment
===========
# apt list --installed | grep novaclient

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

python-novaclient/2018.4.0,now 2:9.1.1-1~u16.04 all [installed,automatic]

Logs & Configs
==============
~# nova --debug force-delete ECS-2019223142413-0008
DEBUG (shell:951) 'Namespace' object has no attribute 'os_user_id'
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 949, in main
    OpenStackComputeShell().main(argv)
  File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 653, in main
    os_user_id = args.os_user_id
AttributeError: 'Namespace' object has no attribute 'os_user_id'
ERROR (AttributeError): 'Namespace' object has no attribute 'os_user_id'

Revision history for this message
Takashi Natsume (natsume-takashi) wrote :

Probably ths bug is the same as the following bug.

https://bugs.launchpad.net/python-novaclient/+bug/1659015

It has already been fixed.
https://review.openstack.org/#/c/424256/19/novaclient/shell.py

Please try python-novaclient 10.2.0 or later.

Changed in nova:
status: New → Invalid
Changed in python-novaclient:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for python-novaclient because there has been no activity for 60 days.]

Changed in python-novaclient:
status: Incomplete → Expired
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.