python-tripleoclient/tripleoclient/v2
John Fulton 5ee23cf83d Limit standalone ceph-admin user creation to a single host
When 'openstack overcloud ceph user enable --standalone' is
run, call Ansible with '--limit undercloud'.

Bug #1979093 happened because Ansible was running the user
module on the same host as if it were two hosts. The module
is idempotent but not race safe. E.g. when user execution A
and user execution B are run on the same host, A's check that
the user does not exist might be true but before A goes on to
create the user, B could have created it first depending on
scheduling.

The python-tripleoclient uses Ansible --limit when creating
the ceph-admin user so only _admin nodes get the private key.
This works for multinode but standalone only has one node, so
for that condition redefine the limit list to that single node.

Change-Id: I2f62cdfcb88edb5552cbd7351b6240f78376c93d
Closes-Bug: #1979093
2022-06-27 14:45:35 -04:00
..
__init__.py Prepare tripleoclient for v2 implementations of the commands 2020-01-27 13:18:52 +00:00
overcloud_ceph.py Limit standalone ceph-admin user creation to a single host 2022-06-27 14:45:35 -04:00
overcloud_delete.py overcloud delete - bm_deploy - delete ports 2022-05-23 22:28:34 +02:00
overcloud_network.py Dynamic defaults for roles, networks, vips and bm 2021-09-07 13:11:21 +02:00
overcloud_node.py Merge "Add --yes to overcloud node provision for output file overwrite" 2022-03-01 11:42:10 +00:00
overcloud_support.py Add stack_name support to ANSIBLE_INVENTORY 2020-04-29 17:29:33 -05:00
tripleo_container_image.py Update the default namespace 2022-04-13 09:34:28 -05:00