← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

Running keystone-manage mapping_populate --domain-name <domain name> fails silently with no error message displayed on screen.
The logs from keystone.log is displayed below.

2016-11-18 07:22:26.470 1384 CRITICAL keystone [req-a2de669b-a645-42b0-8af6-a36e1cf53c54 - - - - -] UnboundLocalError: local variable 'domain_id' referenced before assignment
2016-11-18 07:22:26.470 1384 ERROR keystone Traceback (most recent call last):
2016-11-18 07:22:26.470 1384 ERROR keystone   File "/usr/bin/keystone-manage", line 10, in <module>
2016-11-18 07:22:26.470 1384 ERROR keystone     sys.exit(main())
2016-11-18 07:22:26.470 1384 ERROR keystone   File "/usr/lib/python2.7/site-packages/keystone/cmd/manage.py", line 43, in main
2016-11-18 07:22:26.470 1384 ERROR keystone     cli.main(argv=sys.argv, config_files=config_files)
2016-11-18 07:22:26.470 1384 ERROR keystone   File "/usr/lib/python2.7/site-packages/keystone/cmd/cli.py", line 1256, in main
2016-11-18 07:22:26.470 1384 ERROR keystone     CONF.command.cmd_class.main()
2016-11-18 07:22:26.470 1384 ERROR keystone   File "/usr/lib/python2.7/site-packages/keystone/cmd/cli.py", line 1202, in main
2016-11-18 07:22:26.470 1384 ERROR keystone     'domain': domain_id})
2016-11-18 07:22:26.470 1384 ERROR keystone UnboundLocalError: local variable 'domain_id' referenced before assignment
2016-11-18 07:22:26.470 1384 ERROR keystone


My guess is that instead of printing domain_id, we should print domain_name to avoid the error.

** Affects: keystone
     Importance: Undecided
         Status: New

** Summary changed:

- keystone-manage mapping_populate fails and try catch doesn't work
+ keystone-manage mapping_populate fails and gives unhandled exception

-- 
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/1645571

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> fails silently with no error message displayed on screen.
  The logs from keystone.log is displayed below.

  2016-11-18 07:22:26.470 1384 CRITICAL keystone [req-a2de669b-a645-42b0-8af6-a36e1cf53c54 - - - - -] UnboundLocalError: local variable 'domain_id' referenced before assignment
  2016-11-18 07:22:26.470 1384 ERROR keystone Traceback (most recent call last):
  2016-11-18 07:22:26.470 1384 ERROR keystone   File "/usr/bin/keystone-manage", line 10, in <module>
  2016-11-18 07:22:26.470 1384 ERROR keystone     sys.exit(main())
  2016-11-18 07:22:26.470 1384 ERROR keystone   File "/usr/lib/python2.7/site-packages/keystone/cmd/manage.py", line 43, in main
  2016-11-18 07:22:26.470 1384 ERROR keystone     cli.main(argv=sys.argv, config_files=config_files)
  2016-11-18 07:22:26.470 1384 ERROR keystone   File "/usr/lib/python2.7/site-packages/keystone/cmd/cli.py", line 1256, in main
  2016-11-18 07:22:26.470 1384 ERROR keystone     CONF.command.cmd_class.main()
  2016-11-18 07:22:26.470 1384 ERROR keystone   File "/usr/lib/python2.7/site-packages/keystone/cmd/cli.py", line 1202, in main
  2016-11-18 07:22:26.470 1384 ERROR keystone     'domain': domain_id})
  2016-11-18 07:22:26.470 1384 ERROR keystone UnboundLocalError: local variable 'domain_id' referenced before assignment
  2016-11-18 07:22:26.470 1384 ERROR keystone

  
  My guess is that instead of printing domain_id, we should print domain_name to avoid the error.

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


Follow ups