LXC volume attach problem

Bug #948193 reported by Ripal Nathuji
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

I ran into an issue using volumes with LXC. The problem was in trying to mount/access the volume inside of the instance after attaching. As an example, when I attach the volume the following command line gets run:

sudo echo > c 8:16 rwm /sys/fs/cgroup/devices/sysdefault/libvirt/lxc/instance-00000001/devices.allow

With that, the device does not show in devices.list, and I cannot use mknod inside the container to get to and mount the volume. As a work around I can run the following manually after the attach:

echo b 8:16 rwm | sudo tee -a /sys/fs/cgroup/devices/libvirt/lxc/instance-00000001/devices.allow

Then I see the device show up in devices.list, do a mknod in the container, mount, etc.

In terms of environment, this was observed using devstack on ubuntu 11.10 and 12.04.

Revision history for this message
Thierry Carrez (ttx) wrote :

Thanks for your input!
Would be great if you could confirm that the patch at: https://review.openstack.org/5389 fixes the issue for you.

Revision history for this message
Ripal Nathuji (ripal-nathuji) wrote : RE: [Bug 948193] Re: LXC volume attach problem

Sure, I will give this a try later today and let you know my mileage.

Thanks!
Ripal
________________________________________
From: <email address hidden> [<email address hidden>] On Behalf Of Thierry Carrez [<email address hidden>]
Sent: Thursday, March 15, 2012 5:06 AM
To: Ripal Nathuji
Subject: [Bug 948193] Re: LXC volume attach problem

*** This bug is a duplicate of bug 943304 ***
    https://bugs.launchpad.net/bugs/943304

Thanks for your input!
Would be great if you could confirm that the patch at: https://review.openstack.org/5389 fixes the issue for you.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/948193

Title:
  LXC volume attach problem

Status in OpenStack Compute (Nova):
  New

Bug description:
  I ran into an issue using volumes with LXC. The problem was in trying
  to mount/access the volume inside of the instance after attaching. As
  an example, when I attach the volume the following command line gets
  run:

  sudo echo > c 8:16 rwm
  /sys/fs/cgroup/devices/sysdefault/libvirt/lxc/instance-00000001/devices.allow

  With that, the device does not show in devices.list, and I cannot use
  mknod inside the container to get to and mount the volume. As a work
  around I can run the following manually after the attach:

  echo b 8:16 rwm | sudo tee -a
  /sys/fs/cgroup/devices/libvirt/lxc/instance-00000001/devices.allow

  Then I see the device show up in devices.list, do a mknod in the
  container, mount, etc.

  In terms of environment, this was observed using devstack on ubuntu
  11.10 and 12.04.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/948193/+subscriptions

Revision history for this message
Ripal Nathuji (ripal-nathuji) wrote :

Yep, it works now. Thanks!

________________________________________
From: Ripal Nathuji
Sent: Thursday, March 15, 2012 7:35 AM
To: Bug 948193
Subject: RE: [Bug 948193] Re: LXC volume attach problem

Sure, I will give this a try later today and let you know my mileage.

Thanks!
Ripal
________________________________________
From: <email address hidden> [<email address hidden>] On Behalf Of Thierry Carrez [<email address hidden>]
Sent: Thursday, March 15, 2012 5:06 AM
To: Ripal Nathuji
Subject: [Bug 948193] Re: LXC volume attach problem

*** This bug is a duplicate of bug 943304 ***
    https://bugs.launchpad.net/bugs/943304

Thanks for your input!
Would be great if you could confirm that the patch at: https://review.openstack.org/5389 fixes the issue for you.

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/948193

Title:
  LXC volume attach problem

Status in OpenStack Compute (Nova):
  New

Bug description:
  I ran into an issue using volumes with LXC. The problem was in trying
  to mount/access the volume inside of the instance after attaching. As
  an example, when I attach the volume the following command line gets
  run:

  sudo echo > c 8:16 rwm
  /sys/fs/cgroup/devices/sysdefault/libvirt/lxc/instance-00000001/devices.allow

  With that, the device does not show in devices.list, and I cannot use
  mknod inside the container to get to and mount the volume. As a work
  around I can run the following manually after the attach:

  echo b 8:16 rwm | sudo tee -a
  /sys/fs/cgroup/devices/libvirt/lxc/instance-00000001/devices.allow

  Then I see the device show up in devices.list, do a mknod in the
  container, mount, etc.

  In terms of environment, this was observed using devstack on ubuntu
  11.10 and 12.04.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/948193/+subscriptions

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.