Public bug reported:

"lxc config device add ..." succeeds from the host to a container. Doing
the same from that container into a nested container fails.

swarren@cam:~$ ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Apr 23 20:46 /dev/ttyUSB0

swarren@cam:~$ sudo picocom -b 115200 /dev/ttyUSB0
<< succeeds >>

swarren@cam:~$ lxc config device add uboot-jenkins ttyUSB0 unix-char 
path=/dev/ttyUSB0
Device ttyUSB0 added to uboot-jenkins

swarren@cam:~$ lxc exec uboot-jenkins /bin/bash

root@uboot-jenkins:~# picocom -b 115200 /dev/ttyUSB0
<< succeeds >>

root@uboot-jenkins:~# lxc config device add nested ttyUSB0 unix-char 
path=/dev/ttyUSB0
error: Failed to setup device: Failed to create device 
/var/lib/lxd/devices/nested/unix.dev-ttyUSB0 for /dev/ttyUSB0: operation not 
permitted

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lxd 2.0.0-0ubuntu4
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
Date: Sat Apr 23 22:28:21 2016
InstallationDate: Installed on 2016-04-23 (0 days ago)
InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: lxd
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: lxd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1574158

Title:
  lxd config device add fails with nested containers

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1574158/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to