losesetup, pvdisplay, pvcreate etc commands are not found in cinder create lvm volume group task

Bug #1824210 reported by wes hayutin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
wes hayutin

Bug Description

2019-04-10 15:14:03 | TASK [ensure ceph configurations exist] ****************************************
2019-04-10 15:14:03 | changed: [standalone]
2019-04-10 15:14:03 |
2019-04-10 15:14:03 | TASK [cinder_enable_iscsi_backend fact] ****************************************
2019-04-10 15:14:03 | ok: [standalone]
2019-04-10 15:14:03 |
2019-04-10 15:14:03 | TASK [cinder create LVM volume group dd] ***************************************
2019-04-10 15:14:03 | changed: [standalone]
2019-04-10 15:14:03 |
2019-04-10 15:14:03 | TASK [cinder create LVM volume group] ******************************************
2019-04-10 15:14:03 | fatal: [standalone]: FAILED! => {"changed": true, "cmd": "if ! losetup /dev/loop2; then\n losetup /dev/loop2 /var/lib/cinder/cinder-volumes\n fi\n if ! pvdisplay | grep cinder-volumes; then\n pvcreate /dev/loop2\n fi\n if ! vgdisplay | grep cinder-volumes; then\n vgcreate cinder-volumes /dev/loop2\n fi", "delta": "0:00:00.024881", "end": "2019-04-10 15:14:03.528355", "msg": "non-zero return code", "rc": 127, "start": "2019-04-10 15:14:03.503474", "stderr": "losetup: /dev/loop2: No such file or directory\n/bin/bash: line 3: pvdisplay: command not found\n/bin/bash: line 4: pvcreate: command not found\n/bin/bash: line 6: vgdisplay: command not found\n/bin/bash: line 7: vgcreate: command not found", "stderr_lines": ["losetup: /dev/loop2: No such file or directory", "/bin/bash: line 3: pvdisplay: command not found", "/bin/bash: line 4: pvcreate: command not found", "/bin/bash: line 6: vgdisplay: command not found", "/bin/bash: line 7: vgcreate: command not found"], "stdout": "", "stdout_lines": []}
2019-04-10 15:14:03 |
2019-04-10 15:14:03 | NO MORE HOSTS LEFT *************************************************************
2019-04-10 15:14:03 |

This works after installing lvm2 by hand and rerunning.

Tags: alert
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

Fix proposed to branch: master
Review: https://review.openstack.org/651612

Changed in tripleo:
assignee: nobody → wes hayutin (weshayutin)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/651612
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=34a932c9c630df1872a869dd3a1bb85a1fe02f12
Submitter: Zuul
Branch: master

commit 34a932c9c630df1872a869dd3a1bb85a1fe02f12
Author: Wes Hayutin <email address hidden>
Date: Wed Apr 10 11:06:09 2019 -0600

    Ensure lvm2 is installed prior to lvm commands

    install the lvm2 rpm

    Closes-Bug: #1824210
    Change-Id: I817d3c938399a053d97a73d66a1e9bcc3ff3ef4d

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to tripleo-puppet-elements (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/651663

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 10.5.0

This issue was fixed in the openstack/tripleo-heat-templates 10.5.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-puppet-elements (master)

Reviewed: https://review.opendev.org/651663
Committed: https://git.openstack.org/cgit/openstack/tripleo-puppet-elements/commit/?id=a3bac6a9ea357e5e0f8449915e3d27fb8edcfd6f
Submitter: Zuul
Branch: master

commit a3bac6a9ea357e5e0f8449915e3d27fb8edcfd6f
Author: Wes Hayutin <email address hidden>
Date: Wed Apr 10 16:50:09 2019 -0600

    lvm2 is required for cinder

    explicitly require lvm2 to be sure the
    lvm commands are available to cinder.

    Related-Bug: #1824210
    Change-Id: I00c67ae30dca7fa16d7b3fe23fcf2256c0c1d194

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.