]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
fs2bs: fix wrong filter when setting osd_ids
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 25 May 2021 14:01:27 +0000 (16:01 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 26 May 2021 07:38:33 +0000 (09:38 +0200)
commit5ece2368cdd3fef1f050d0ec5bd83415b68939ef
tree29367561eb721fadbcaa0e026888a5a058ea2e13
parent71bd606855a0a1eb93db614b24869d2d8e84d8c6
fs2bs: fix wrong filter when setting osd_ids

using 'match' filter in that task will lead to bad behavior if I have
the following node names for instance:

- node1
- node11
- node111

with `selectattr('name', 'match', inventory_hostname)` it will match
'node1' along with 'node11' and 'node111'.

using 'equalto' filter will make sure we only match the target node.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1963066
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 0990ae41099d8b9d678f546fc8790033f421711f)
infrastructure-playbooks/filestore-to-bluestore.yml