redeploys are broken with Error loading unit file ''cinder-lvm-losetup"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Jesse Pretorius |
Bug Description
Ever since landing https:/
TASK [cinder enable the LVM losetup service] *******
Monday 20 April 2020 15:16:10 +0000 (0:00:01.704) 0:04:17.437 **********
fatal: [overcloud-
msg: 'Error loading unit file ''cinder-
fatal: [overcloud-
msg: 'Error loading unit file ''cinder-
fatal: [overcloud-
msg: 'Error loading unit file ''cinder-
The reason seems that the following code:
- name: cinder identify the LVM loopback device
command:
losetup -j /var/lib/
Returns:
[root@overcloud
/dev/loop1
/dev/loop0
And then we register the above output in the 'cinder_lvm_dev' fact and we use it (with the \n) inside the systemd service which then is broken for systemd:
"""
[root@overcloud
[Unit]
Description=Cinder LVM losetup
After=syslog.target
[Service]
Type=oneshot
ExecStart=/bin/bash -c '/sbin/losetup /dev/loop1
/dev/loop0 || /sbin/losetup /dev/loop1
/dev/loop0 /var/lib/
ExecStop=/bin/bash -c '/sbin/losetup -d /dev/loop1
/dev/loop0'
RemainAfterExit=yes
[Install]
WantedBy=
"""
Changed in tripleo: | |
assignee: | Alan Bishop (alan-bishop) → Jesse Pretorius (jesse-pretorius) |
status: | Triaged → In Progress |
I understand what's happening, and will submit a patch to fix this asap.