← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1817396] Re: 'Namespace' object has no attribute 'os_user_id'

 

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

** Changed in: python-novaclient
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1817396

Title:
  'Namespace' object has no attribute 'os_user_id'

Status in OpenStack Compute (nova):
  Invalid
Status in python-novaclient:
  Expired

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'

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1817396/+subscriptions


References