keystone-manage: error: argument command: invalid choice: 'credential_setup'

Asked by Zhang Chen on 2016-10-19

[root@newton ~]# keystone-manage credential_setup --keystone-user keystone --keystone-group keystone
usage: keystone-manage [bootstrap|db_sync|db_version|domain_config_upload|fernet_rotate|fernet_setup|mapping_purge|mapping_engine|pki_setup|saml_idp_metadata|token_flush]
keystone-manage: error: argument command: invalid choice: 'credential_setup' (choose from 'bootstrap', 'db_sync', 'db_version', 'domain_config_upload', 'fernet_rotate', 'fernet_setup', 'mapping_purge', 'mapping_engine', 'pki_setup', 'saml_idp_metadata', 'token_flush')

while when I check the manual of keystone-manage, it shows:

 Available commands:

       · bootstrap: Perform the basic bootstrap process.

       · credential_migrate: Encrypt credentials using a new primary key.

       · credential_rotate: Rotate Fernet keys for credential encryption.

       · credential_setup: Setup a Fernet key repository for credential
         encryption.

       · db_sync: Sync the database.

       · db_version: Print the current migration version of the database.

       · doctor: Diagnose common problems with keystone deployments.

       · domain_config_upload: Upload domain configuration file.

       · fernet_rotate: Rotate keys in the Fernet key repository.

       · fernet_setup: Setup a Fernet key repository for token encryption.

……

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Zhang Chen
Solved:
2016-10-20
Last query:
2016-10-20
Last reply:
Zhang Chen (chansonzhang) said : #1

another user in the same host installed devstack somewhen, and this may has caused some confliction, and when I delete all the devstack related files. All get OK.

miaohb (miao-hongbao) said : #2

Hi, zhangchen. I meet the same question. Would you please tell me which files you delete? thanks.

miaohb (miao-hongbao) said : #3

Hi, zhangchen. I meet the same question. Would you please tell me which files you delete? thanks.

Zhang Chen (chansonzhang) said : #4

Hi, miaohb, you can try remove files under /opt/stack/. Good luck.