← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1645607] [NEW] keystone-manage mapping_populate fails and gives unhandled exception

 

Public bug reported:

Running keystone-manage mapping_populate --domain-name <domain name>
displays the ID of the domain but throws an unhandled exception. This is
visible in keystone.log

2016-11-18 09:48:27.730 7685 ERROR keystone   File "/usr/bin/keystone-manage", line 10, in <module>
2016-11-18 09:48:27.730 7685 ERROR keystone     sys.exit(main())
2016-11-18 09:48:27.730 7685 ERROR keystone   File "/usr/lib/python2.7/site-packages/keystone/cmd/manage.py", line 43, in main
2016-11-18 09:48:27.730 7685 ERROR keystone     cli.main(argv=sys.argv, config_files=config_files)
2016-11-18 09:48:27.730 7685 ERROR keystone   File "/usr/lib/python2.7/site-packages/keystone/cmd/cli.py", line 1260, in main
2016-11-18 09:48:27.730 7685 ERROR keystone     CONF.command.cmd_class.main()
2016-11-18 09:48:27.730 7685 ERROR keystone   File "/usr/lib/python2.7/site-packages/keystone/cmd/cli.py", line 1211, in main
2016-11-18 09:48:27.730 7685 ERROR keystone     cls.identity_api.list_users(domain_scope=domain_id)
2016-11-18 09:48:27.730 7685 ERROR keystone NameError: global name 'domain_id' is not defined
2016-11-18 09:48:27.730 7685 ERROR keystone

It seems to me that the variable domain_id hasn't been properly scoped
which is causing this error.

** Affects: keystone
     Importance: Undecided
         Status: New


** Tags: newton

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

Title:
  keystone-manage mapping_populate fails and gives unhandled exception

Status in OpenStack Identity (keystone):
  New

Bug description:
  Running keystone-manage mapping_populate --domain-name <domain name>
  displays the ID of the domain but throws an unhandled exception. This
  is visible in keystone.log

  2016-11-18 09:48:27.730 7685 ERROR keystone   File "/usr/bin/keystone-manage", line 10, in <module>
  2016-11-18 09:48:27.730 7685 ERROR keystone     sys.exit(main())
  2016-11-18 09:48:27.730 7685 ERROR keystone   File "/usr/lib/python2.7/site-packages/keystone/cmd/manage.py", line 43, in main
  2016-11-18 09:48:27.730 7685 ERROR keystone     cli.main(argv=sys.argv, config_files=config_files)
  2016-11-18 09:48:27.730 7685 ERROR keystone   File "/usr/lib/python2.7/site-packages/keystone/cmd/cli.py", line 1260, in main
  2016-11-18 09:48:27.730 7685 ERROR keystone     CONF.command.cmd_class.main()
  2016-11-18 09:48:27.730 7685 ERROR keystone   File "/usr/lib/python2.7/site-packages/keystone/cmd/cli.py", line 1211, in main
  2016-11-18 09:48:27.730 7685 ERROR keystone     cls.identity_api.list_users(domain_scope=domain_id)
  2016-11-18 09:48:27.730 7685 ERROR keystone NameError: global name 'domain_id' is not defined
  2016-11-18 09:48:27.730 7685 ERROR keystone

  It seems to me that the variable domain_id hasn't been properly scoped
  which is causing this error.

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


Follow ups