]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rolling_update: Update systemd unit regex for nvme
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 12 Mar 2019 15:22:03 +0000 (11:22 -0400)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Tue, 26 Mar 2019 12:01:00 +0000 (12:01 +0000)
The systemd unit regex doesn't handle nvme devices (/dev/nvmeXn1).

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1687828
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
infrastructure-playbooks/rolling_update.yml

index 26849793054a4f8fe191df1a8a95893abe26b24a..8625927b0a33a6070990c777f2c23ce8984410b0 100644 (file)
       when: not containerized_deployment
 
     - name: get osd unit names - container
-      shell: systemctl list-units | grep -E "loaded * active" | grep -oE "ceph-osd@([0-9]{1,}|[a-z]+).service"
+      shell: systemctl list-units | grep -E "loaded * active" | grep -oE "ceph-osd@([a-z0-9]+).service"
       register: osd_names
       changed_when: false
       when: containerized_deployment