keystone-manage bootstrap raises ValueError

Bug #1804700 reported by Shuayb Popoola on 2018-11-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Undecided
Unassigned

Bug Description

The 'keystone-manage bootstrap' command still raises Value Error despite 'keystone-manage fernet_setup' command was successful. The whole bug is:

shuayb@shuayb-HP-EliteBook-Folio-9470m:~/keystone$ keystone-manage bootstrap
Either --bootstrap-password argument or OS_BOOTSTRAP_PASSWORD must be set.
2018-11-22 21:51:51.394 3884 CRITICAL keystone [-] Unhandled error: ValueError
2018-11-22 21:51:51.394 3884 ERROR keystone Traceback (most recent call last):
2018-11-22 21:51:51.394 3884 ERROR keystone File "/home/shuayb/anaconda3/bin/keystone-manage", line 10, in <module>
2018-11-22 21:51:51.394 3884 ERROR keystone sys.exit(main())
2018-11-22 21:51:51.394 3884 ERROR keystone File "/home/shuayb/keystone/keystone/cmd/manage.py", line 41, in main
2018-11-22 21:51:51.394 3884 ERROR keystone cli.main(argv=sys.argv, developer_config_file=developer_config)
2018-11-22 21:51:51.394 3884 ERROR keystone File "/home/shuayb/keystone/keystone/cmd/cli.py", line 1349, in main
2018-11-22 21:51:51.394 3884 ERROR keystone CONF.command.cmd_class.main()
2018-11-22 21:51:51.394 3884 ERROR keystone File "/home/shuayb/keystone/keystone/cmd/cli.py", line 178, in main
2018-11-22 21:51:51.394 3884 ERROR keystone klass.do_bootstrap()
2018-11-22 21:51:51.394 3884 ERROR keystone File "/home/shuayb/keystone/keystone/cmd/cli.py", line 156, in do_bootstrap
2018-11-22 21:51:51.394 3884 ERROR keystone raise ValueError
2018-11-22 21:51:51.394 3884 ERROR keystone ValueError
2018-11-22 21:51:51.394 3884 ERROR keystone

Lance Bragstad (lbragstad) wrote :

I think bootstrap is handling this case properly. The keystone-manage bootstrap command needs to have a password to bootstrap with the administrator. It doesn't look like it was provided.

I suggest rerunning the command with an additional argument (--bootstrap-password) or sourcing it from your ENV with OS_BOOTSTRAP_PASSWORD.

Changed in keystone:
status: New → Invalid
Colleen Murphy (krinkle) wrote :

bootstrap is doing the right thing by requiring a password, but it's not acceptable to be emitting a traceback. The error message "Either --bootstrap-password argument or OS_BOOTSTRAP_PASSWORD must be set." and an appropriate exit code is correct, causing a traceback is not.

Changed in keystone:
status: Invalid → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers