Permission denied when creating semaphore in ubuntu-cloud container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Deployed a precise host on canonistack, then a precise container inside that host:
andreas@nsn7:~$ juju status
environment: andreas-
machines:
"0":
agent-state: started
agent-version: 1.20.3
dns-name: 10.55.32.177
instance-id: b898eee8-
instance-state: ACTIVE
series: precise
containers:
0/lxc/0:
dns-name: 10.0.3.118
series: precise
hardware: arch=amd64
hardware: arch=amd64 cpu-cores=1 mem=1024M root-disk=10240M
state-
services:
ubuntu-precise:
charm: cs:precise/ubuntu-4
exposed: false
units:
ubuntu-
machine: 0/lxc/0
Test script:
andreas@nsn7:~$ juju ssh ubuntu-precise/0 'python -c "from multiprocessing import synchronize; synchronize.
Warning: Permanently added '10.55.32.177' (ECDSA) to the list of known hosts.
Warning: Permanently added '10.0.3.118' (ECDSA) to the list of known hosts.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/
SemLock.
File "/usr/lib/
sl = self._semlock = _multiprocessin
OSError: [Errno 13] Permission denied
Connection to 10.0.3.118 closed.
ERROR subprocess encountered error code 1
On the precise host:
root@juju-
lrwxrwxrwx 1 root root 8 Aug 6 21:51 /dev/shm -> /run/shm
root@juju-
none /run/shm tmpfs rw,nosuid,
root@juju-
lxc 1.0.0~alpha1-
sysvinit-utils 2.88dsf-
On the precise container:
root@juju-
total 8
drwxr-xr-x 2 root root 4096 Jul 17 07:05 .
drwxr-xr-x 6 root root 4096 Aug 6 22:19 ..
root@juju-
none /run/shm tmpfs rw,nosuid,
root@juju-
Both are precise 12.04.5. The host was image b898eee8-
I did the same deployment with the local provider, on my trusty host, and the precise container allowed that python snipped to be executed as a regular user without problems.