Bug 1856965

Summary: The tripleo_ceph_uuid role should support the ceph_ansible_limit option
Product: Red Hat OpenStack Reporter: John Fulton <johfulto>
Component: tripleo-ansibleAssignee: John Fulton <johfulto>
Status: CLOSED DUPLICATE QA Contact: Yogev Rabl <yrabl>
Severity: high Docs Contact:
Priority: high    
Version: 16.1 (Train)CC: smalleni
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-14 19:42:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description John Fulton 2020-07-14 19:36:08 UTC
While using -e ceph_ansible_limit to exclude nodes the task gather uuid task [0] still runs on all nodes. 

This can affect deployments at scale when a couple of nodes are offline because the operator won't be able to exclude them using ansible's --limit feature.

The problem is that the ceph_ansible_limit is getting passed to the ceph-ansible run but not to the nodes-uuid run [2]. 

Pasting line 55 of [1] into line 32 of [2] should give you a quick workaround.

[0] https://github.com/openstack/tripleo-ansible/blob/ca165ec94018293dfbbbd37c44a2704b8144f203/tripleo_ansible/roles/tripleo_ceph_uuid/tasks/gather.yml#L17 

[1] https://github.com/openstack/tripleo-ansible/blob/stable/train/tripleo_ansible/roles/tripleo-ceph-run-ansible/tasks/main.yml#L55
[2] https://github.com/openstack/tripleo-ansible/blob/ca165ec94018293dfbbbd37c44a2704b8144f203/tripleo_ansible/roles/tripleo_ceph_uuid/tasks/gather.yml#L17

Comment 1 John Fulton 2020-08-14 19:42:57 UTC

*** This bug has been marked as a duplicate of bug 1855112 ***