]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rolling_update: Update systemd unit regex for nvme v3.2.11
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 12 Mar 2019 15:22:03 +0000 (11:22 -0400)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Mon, 1 Apr 2019 15:22:24 +0000 (15:22 +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>
(cherry picked from commit c8442f3705d0bd7b64fe2b14d925a82d52a052e4)

infrastructure-playbooks/rolling_update.yml

index b37fee25970758715e8ab8d44f1bd8804761cae3..7872c7201c735abbd4cf6fc594d25c9ff6715b34 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