keystone-manage bootstrap not supported in version < 9.0.0

Bug #1554640 reported by Rodolfo Alonso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Invalid
Critical
Rodolfo Alonso

Bug Description

keystone-manage bootstrap it's not supported in version < 9.0.0

Now, the current version of keystone deployed in the container is 8.0.0. The bootstrap file added to keystone (docker/keystone/keystone_bootstrap.sh) uses the parameter "bootstrap" which is still not supported:

LOGS:
TASK: [keystone | Creating admin project, user, role, service, and endpoint] ***
<localhost> REMOTE_MODULE command docker exec -t keystone kolla_keystone_bootstrap admin password admin admin http://10.237.214.118:35357/v3 http://10.237.214.118:5000/v3 http://10.237.214.118:5000/v3 RegionOne
<localhost> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1457459029.56-252614993851850 && echo $HOME/.ansible/tmp/ansible-tmp-1457459029.56-252614993851850']
<localhost> PUT /tmp/tmpS0Zl6f TO /root/.ansible/tmp/ansible-tmp-1457459029.56-252614993851850/command
<localhost> EXEC ['/bin/sh', '-c', u'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /root/.ansible/tmp/ansible-tmp-1457459029.56-252614993851850/command; rm -rf /root/.ansible/tmp/ansible-tmp-1457459029.56-252614993851850/ >/dev/null 2>&1']
failed: [localhost] => {"changed": true, "cmd": ["docker", "exec", "-t", "keystone", "kolla_keystone_bootstrap", "admin", "password", "admin", "admin", "http://10.237.214.118:35357/v3", "http://10.237.214.118:5000/v3", "http://10.237.214.118:5000/v3", "RegionOne"], "delta": "0:00:09.312270", "end": "2016-03-08 17:43:58.935319", "failed": true, "failed_when_result": true, "rc": 1, "start": "2016-03-08 17:43:49.623049", "stdout_lines": ["{\"failed\": true, \"msg\": \"usage: keystone-manage [db_sync|db_version|domain_config_upload|fernet_rotate|fernet_setup|mapping_purge|mapping_engine|pki_setup|saml_idp_metadata|ssl_setup|token_flush] keystone-manage: error: argument command: invalid choice: 'bootstrap' (choose from 'db_sync', 'db_version', 'domain_config_upload', 'fernet_rotate', 'fernet_setup', 'mapping_purge', 'mapping_engine', 'pki_setup', 'saml_idp_metadata', 'ssl_setup', 'token_flush')\", \"changed\": true}"]}
stdout: {"failed": true, "msg": "usage: keystone-manage [db_sync|db_version|domain_config_upload|fernet_rotate|fernet_setup|mapping_purge|mapping_engine|pki_setup|saml_idp_metadata|ssl_setup|token_flush] keystone-manage: error: argument command: invalid choice: 'bootstrap' (choose from 'db_sync', 'db_version', 'domain_config_upload', 'fernet_rotate', 'fernet_setup', 'mapping_purge', 'mapping_engine', 'pki_setup', 'saml_idp_metadata', 'ssl_setup', 'token_flush')", "changed": true}

FATAL: all hosts have already failed -- aborting

Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

Branch: master
OS: ubuntu
Version: 14.04
Install type: source

Changed in kolla:
assignee: nobody → Rodolfo Alonso (rodolfo-alonso-hernandez)
Revision history for this message
Steven Dake (sdake) wrote :

Why does the gate work and your deployment not? I think there is more going on here. Are you doing multi-node deployment?

Changed in kolla:
status: New → Triaged
importance: Undecided → High
milestone: none → mitaka-rc1
importance: High → Critical
Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

No, I'm in a all-in-one deployment.

As you can see in the log, the version of keystone in the Ubuntu image is 8.0.0. But the command executed (keystone-manage bootstrap) is only supported in version 9.0.0

Revision history for this message
Martin André (mandre) wrote :

Could it be that you're using ubuntu-binary? In this case it's not going to work until ubuntu-cloud-archive switch to mitaka packages.

I suggest you try with ubuntu-source.

Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

kolla_base_distro: "ubuntu"
kolla_install_type: "source"
openstack_release: "latest"

I'm already using source, with the latest version. That is what is annoying me...

I'm trying to manually modify the image and install the latest version of keystone.

BTW: i've tried in other computer to install keystone (pip install keystone). The version installed is 9.0.0 and supports "keystone-manage bootstrap"

Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

I downloaded the latest code and now the latest version of keystone is being installed in the container. And also the command it's working.

I'll close the bug.

Thanks for follow it.

Changed in kolla:
status: Triaged → Invalid
Revision history for this message
smarta94 (smarta94) wrote :

I am facing a similar issue with liberty right now. I have tried a pip install of a more recent keystone client but my keystoneclient still shows as version 8.0.1 (the one installed by the system package manager, which does not have the boostrap command option to keystone-manage). The pip listed version shows as expected, but the official liberty repo still has the python-keystoneclient without bootstrap option as far as I can tell, and my system package manager seems to take precidence and not let the pip version be used.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.