kolla-ansible/kolla_ansible
Marcin Juszkiewicz 333c74feb4 genpwd: handle lack of password file nicer
From:

(kolla) 13:11 (s) marcin@puchatek:kolla-ansible$ kolla-genpwd
Traceback (most recent call last):
  File "/home/marcin/.virtualenvs/kolla/bin/kolla-genpwd", line 8, in <module>
    sys.exit(main())
  File "/home/marcin/.virtualenvs/kolla/lib/python3.10/site-packages/kolla_ansible/cmd/genpwd.py", line 135, in main
    genpwd(passwords_file, length, uuid_keys, ssh_keys, blank_keys,
  File "/home/marcin/.virtualenvs/kolla/lib/python3.10/site-packages/kolla_ansible/cmd/genpwd.py", line 59, in genpwd
    with open(passwords_file, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/etc/kolla/passwords.yml'

To:

(kolla) 13:17 (s) marcin@puchatek:kolla-ansible$ kolla-genpwd
ERROR: Passwords file "/etc/kolla/passwords.yml" is missing

Change-Id: I18a9559daeb3d124a03dcb735ebb01a2cf24f617
2022-05-24 13:18:20 +02:00
..
cmd genpwd: handle lack of password file nicer 2022-05-24 13:18:20 +02:00
tests re-add rabbitmq config for clustering interface 2022-03-24 17:52:17 +01:00
__init__.py Rename kolla namespace to kolla_ansible 2017-02-15 16:34:51 +08:00
exception.py Add custom filters for checking services 2019-09-16 12:48:52 +00:00
filters.py Use jinja2.pass_context instead of contextfilter 2022-03-24 16:29:26 +00:00
fluentd_filters.py Performance: use a single config file for fluentd 2020-07-28 12:14:48 +01:00
hashi_vault.py Support storing passwords in Hashicorp Vault 2021-06-30 15:16:12 +01:00
helpers.py Fix kolla_address in IPv6 fully-routed topo case 2020-05-19 19:49:14 +02:00
kolla_address.py Use jinja2.pass_context instead of contextfilter 2022-03-24 16:29:26 +00:00
nova_filters.py Add unit tests for Nova Cells filters 2019-10-18 13:13:32 +00:00
put_address_in_context.py re-add rabbitmq config for clustering interface 2022-03-24 17:52:17 +01:00
version.py Rename kolla namespace to kolla_ansible 2017-02-15 16:34:51 +08:00