os_cinder volume service fails with Volume group "cinder-volumes" not found

Bug #1698831 reported by Jesse Pretorius on 2017-06-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-ansible
Medium
Jesse Pretorius

Bug Description

The os_cinder tests have a 50% chance of failing due to one of the cinder-volume services not being functional.

The tests are setup to have two services - one on the host and one in a container. The container is meant to be able to have its own lvm vg using a loopback device, but recent changes to LXC now prevent that with the previous implementations [1] to work around it no longer working.

This configuration was setup to ensure that we test two services are executes correctly: https://github.com/openstack/openstack-ansible-os_cinder/commit/879082f204cd848f1423714a3d93943c4c7d9fa6

I can re-work it to do the same with NFS/Ceph instead of LVM to work around this issue.

[1] https://askubuntu.com/questions/376345/allow-loop-mounting-files-inside-lxc-containers

Changed in openstack-ansible:
assignee: nobody → Jesse Pretorius (jesse-pretorius)
importance: Undecided → Medium
description: updated

Reviewed: https://review.openstack.org/475396
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_cinder/commit/?id=1bbe80e83dddbd14838f63c2c881627a74a3510b
Submitter: Jenkins
Branch: master

commit 1bbe80e83dddbd14838f63c2c881627a74a3510b
Author: Jesse Pretorius <email address hidden>
Date: Mon Jun 19 15:05:44 2017 +0100

    Install lvm2 for cinder-volume LVM hosts

    Currently the LVM2 package is installed by the
    openstack_hosts role for the integrated build,
    and by a test playbook for the role tests.

    This does not seem sensible to me - it would
    be better to ensure that the role installs the
    distro packages it need in order to function
    properly.

    Additionally, it is not possible to setup a
    loopback device inside an LXC container after
    some recent updates to LXC. The secondary
    cinder-volume service for LVM2 therefore
    does not work, so it is removed from the
    inventory to buy some time to come up with
    an alternative solution.

    Related-Bug: 1698831
    Change-Id: Ie8a84a0412989c64fd896e8d781b8e9b2c153556

Reviewed: https://review.openstack.org/475508
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_cinder/commit/?id=21f1cec004cff2a03705606cd58863b19c75630b
Submitter: Jenkins
Branch: stable/ocata

commit 21f1cec004cff2a03705606cd58863b19c75630b
Author: Jesse Pretorius <email address hidden>
Date: Mon Jun 19 15:05:44 2017 +0100

    Install lvm2 for cinder-volume LVM hosts

    Currently the LVM2 package is installed by the
    openstack_hosts role for the integrated build,
    and by a test playbook for the role tests.

    This does not seem sensible to me - it would
    be better to ensure that the role installs the
    distro packages it need in order to function
    properly.

    Additionally, it is not possible to setup a
    loopback device inside an LXC container after
    some recent updates to LXC. The secondary
    cinder-volume service for LVM2 therefore
    does not work, so it is removed from the
    inventory to buy some time to come up with
    an alternative solution.

    Related-Bug: 1698831
    Change-Id: Ie8a84a0412989c64fd896e8d781b8e9b2c153556
    (cherry picked from commit 1bbe80e83dddbd14838f63c2c881627a74a3510b)

tags: added: in-stable-ocata

Reviewed: https://review.openstack.org/475509
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_cinder/commit/?id=bdd22c7c2a08452ad82d37880cfeb83bf15b764f
Submitter: Jenkins
Branch: stable/newton

commit bdd22c7c2a08452ad82d37880cfeb83bf15b764f
Author: Jesse Pretorius <email address hidden>
Date: Mon Jun 19 15:05:44 2017 +0100

    Install lvm2 for cinder-volume LVM hosts

    Currently the LVM2 package is installed by the
    openstack_hosts role for the integrated build,
    and by a test playbook for the role tests.

    This does not seem sensible to me - it would
    be better to ensure that the role installs the
    distro packages it need in order to function
    properly.

    Additionally, it is not possible to setup a
    loopback device inside an LXC container after
    some recent updates to LXC. The secondary
    cinder-volume service for LVM2 therefore
    does not work, so it is removed from the
    inventory to buy some time to come up with
    an alternative solution.

    Related-Bug: 1698831
    Change-Id: Ie8a84a0412989c64fd896e8d781b8e9b2c153556
    (cherry picked from commit 1bbe80e83dddbd14838f63c2c881627a74a3510b)

tags: added: in-stable-newton
Changed in openstack-ansible:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers