Path /var/lib/nova/mnt is mounted on / but it is not a shared mount

Bug #1644602 reported by prameswar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
High
prameswar

Bug Description

I am running master branch on ubuntu 14.04

TASK [nova : Starting nova-compute container] **********************************
fatal: [localhost]: FAILED! => {"changed": true, "failed": true, "msg": "'Traceback (most recent call last):\\n File \"/tmp/ansible_orx2Yo/ansible_module_kolla_docker.py\", line 742, in main\\n result = bool(getattr(dw, module.params.get(\\'action\\'))())\\n File \"/tmp/ansible_orx2Yo/ansible_module_kolla_docker.py\", line 572, in start_container\\n self.dc.start(container=self.params.get(\\'name\\'))\\n File \"/usr/local/lib/python2.7/dist-packages/docker/utils/decorators.py\", line 21, in wrapped\\n return f(self, resource_id, *args, **kwargs)\\n File \"/usr/local/lib/python2.7/dist-packages/docker/api/container.py\", line 363, in start\\n self._raise_for_status(res)\\n File \"/usr/local/lib/python2.7/dist-packages/docker/client.py\", line 146, in _raise_for_status\\n raise errors.APIError(e, response, explanation=explanation)\\nAPIError: 500 Server Error: Internal Server Error (\"{\"message\":\"linux mounts: Path /var/lib/nova/mnt is mounted on / but it is not a shared mount.\"}\")\\n'"}
 to retry, use: --limit @/home/vagrant/kolla-ansible/ansible/site.retry

PLAY RECAP *********************************************************************
localhost : ok=157 changed=1 unreachable=0 failed=1

Command failed ansible-playbook -i ansible/inventory/all-in-one -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla -e action=deploy /home/vagrant/kolla-ansible/ansible/site.yml

solution:

file /home/vagrant/kolla-ansible/ansible/roles/nova/tasks/start_compute.yml either contain
below line:
      - "/var/lib/nova/mnt/:/var/lib/nova/mnt/"
instead of:
      - "/var/lib/nova/mnt/:/var/lib/nova/mnt/:shared"

if it is required then this volume should be "shared". we have to make it shared like /run:

mount --make-shared /run

in documentation. for that this should be /var/lib/nova/mnt/ partition.

any suggestion appreciated :)

prameswar (prameswar)
Changed in kolla:
assignee: nobody → prameswar (prameswar)
status: New → Opinion
Revision history for this message
Jeffrey Zhang (jeffrey4l) wrote :

 try this
<Jeffrey4l>30 mkdir /var/lib/nova/mnt /var/lib/nova/mnt2
<Jeffrey4l>30 mount --bind /var/lib/nova/mnt2 /var/lib/nova/mnt
<Jeffrey4l>30 mount --make-shared /var/lib/nova/mnt
<Jeffrey4l>30 prameswar, ^^ then it should work. ( i do not know why :( )
<Jeffrey4l>30 prameswar, learned from https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

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

Changed in kolla:
status: Opinion → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/402191
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=67935c4ea406dfd04a08c0bc85f3fe59a0b05540
Submitter: Jenkins
Branch: master

commit 67935c4ea406dfd04a08c0bc85f3fe59a0b05540
Author: prameswar <email address hidden>
Date: Fri Nov 25 00:15:06 2016 +0530

    shared mount added for /var/lib/nova/mnt to QSG

    Closes-bug: #1644602

    Change-Id: I35f080f118864be4b09f692b9f90c7635b46a75c

Changed in kolla:
status: In Progress → Fix Released
Changed in kolla:
milestone: none → ocata-2
Steven Dake (sdake)
Changed in kolla:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 4.0.0.0b2

This issue was fixed in the openstack/kolla 4.0.0.0b2 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 4.0.0.0b3

This issue was fixed in the openstack/kolla-ansible 4.0.0.0b3 development milestone.

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.