'Namespace' object has no attribute 'os_user_id'
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_
export OS_ACCESS_
export OS_IDENTITY_
export OS_PROTOCOL=openid
export OS_IDENTITY_
export OS_AUTH_URL=http://
export OS_PROJECT_
export OS_REGION_NAME=xxx
#export OS_REGION_
export OS_USERNAME=
#export OS_PASSWORD=
export OS_PASSWORD=
export OS_CLIENT_
export OS_CLIENT_
export OS_PROJECT_
export OS_INTERFACE=
export OS_ENDPOINT_
export OS_CACERT=
* then I sourced this rc file, executed `nova force-delete` CLI
nova force-delete ECS-20192231424
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-
Logs & Configs
==============
~# nova --debug force-delete ECS-20192231424
DEBUG (shell:951) 'Namespace' object has no attribute 'os_user_id'
Traceback (most recent call last):
File "/usr/lib/
OpenStackCo
File "/usr/lib/
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'
Probably ths bug is the same as the following bug.
https:/ /bugs.launchpad .net/python- novaclient/ +bug/1659015
It has already been fixed. /review. openstack. org/#/c/ 424256/ 19/novaclient/ shell.py
https:/
Please try python-novaclient 10.2.0 or later.