Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

keystone: unable to use --config-dir/--config--file

HI,

I am trying to use --config-dir / --config-file option with keystone-mange but it keeps throwing unrecognized arguments error.

keystone# keystone-manage --version
11.0.5
keystone-manage --help
usage: keystone-manage [bootstrap|credential_migrate|credential_rotate|credential_setup|db_sync|db_version|doctor|domain_config_upload|fernet_rotate|fernet_setup|mapping_populate|mapping_purge|mapping_engine|pki_setup|saml_idp_metadata|token_flush]

optional arguments:
  -h, --help            show this help message and exit
  --config-dir DIR      Path to a config directory to pull *.conf files from.
                        This file set is sorted, so as to provide a
                        predictable parse order if individual options are
                        over-ridden. The set is parsed after the file(s)
                        specified via previous --config-file, arguments hence
                        over-ridden options in the directory take precedence.
  --config-file PATH    Path to a config file to use. Multiple config files
                        can be specified, with values in later files taking
                        precedence. Defaults to None.
...
keystone# /usr/bin/keystone-manage fernet_setup --config-file /etc/keystone/keystone.conf --keystone-user keystone --keystone-group keystone
usage: keystone-manage [bootstrap|credential_migrate|credential_rotate|credential_setup|db_sync|db_version|doctor|domain_config_upload|fernet_rotate|fernet_setup|mapping_populate|mapping_purge|mapping_engine|pki_setup|saml_idp_metadata|token_flush]
keystone-manage: error: unrecognized arguments: --config-file /etc/keystone/keystone.conf
keystone# /usr/bin/keystone-manage fernet_setup --config-file /etc/keystone --keystone-user keystone --keystone-group keystone
usage: keystone-manage [bootstrap|credential_migrate|credential_rotate|credential_setup|db_sync|db_version|doctor|domain_config_upload|fernet_rotate|fernet_setup|mapping_populate|mapping_purge|mapping_engine|pki_setup|saml_idp_metadata|token_flush]
keystone-manage: error: unrecognized arguments: --config-file /etc/keystone

Any pointers?

Thanks!