How do I share a namespace between snap commands?

David Garrod dgarrod at extremenetworks.com
Wed Jul 27 18:58:12 UTC 2016


Thank you for your initial answers.

Re:

> John Lenton mentioned to me on IRC that this might be that you are trying to call applications from /snap/bin from within your snap, but it isn't clear to me that this is what you are doing.

No. From within the SNAP I don't reference /snap/bin. That is only referenced when I start up one of the snap applications listed in snapcraft.yaml file.

I am familiar with the $SNAP* environment variables and directory structure of the SNAPs.

I can simplify the problem statement I've found the following:

From the base system start up the SNAP. I use the command that just gives me a bash prompt:

netop at Snappy-Appliance:~$ sudo /snap/bin/openswitch-appliance.shell
[sudo] password for netop:

So now I'm in the SNAP and I'm going to create a network namespace and use it:

root at Snappy-Appliance:/home/netop#
root at Snappy-Appliance:/home/netop# which ip
/snap/openswitch-appliance/x1/bin/ip
root at Snappy-Appliance:/home/netop# ip netns add xxx
root at Snappy-Appliance:/home/netop#
root at Snappy-Appliance:/home/netop#
root at Snappy-Appliance:/home/netop# ip netns exec xxx bash
root at Snappy-Appliance:/home/netop# ip netns list
xxx
root at Snappy-Appliance:/home/netop# ip netns pids xxx
2650
2655
root at Snappy-Appliance:/home/netop# exit
exit
root at Snappy-Appliance:/home/netop# ip netns pids xxx
root at Snappy-Appliance:/home/netop# ip netns list
xxx
root at Snappy-Appliance:/home/netop#

As you can see from the above it works fine.

Now in another window I'm going to fire up the bash command in another instanced of this snap and try and use the xxx network namespace. As you can see
the:

ip netns list command errors out with:

root at Snappy-Appliance:/home/netop# ip netns list
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument

The 'ip netns exec xxx bash' fails in a similar way. I've also included an strace of the command in case that throws any light on the matter.

One thing I do want to note is the following.

From the first window where I created the xxx namespace:

root at Snappy-Appliance:/home/netop# df -a
Filesystem                1K-blocks       Used Available Use% Mounted on
/dev/sda1                  15349744    5357264   9189716  37% /
udev                         488872          0    488872   0% /dev
devpts                            0          0         0    - /dev/pts
tmpfs                        508136        172    507964   1% /dev/shm
hugetlbfs                         0          0         0    - /dev/hugepages
mqueue                            0          0         0    - /dev/mqueue
tmpfs                        101628      10132     91496  10% /run
tmpfs                          5120          4      5116   1% /run/lock
sunrpc                            0          0         0    - /run/rpc_pipefs
tmpfs                        101628         72    101556   1% /run/user/1000
gvfsd-fuse                        0          0         0    - /run/user/1000/gvfs
sysfs                             0          0         0    - /sys
securityfs                        0          0         0    - /sys/kernel/security
tmpfs                        508136          0    508136   0% /sys/fs/cgroup
cgroup                            0          0         0    - /sys/fs/cgroup/systemd
cgroup                            0          0         0    - /sys/fs/cgroup/hugetlb
cgroup                            0          0         0    - /sys/fs/cgroup/cpuset
cgroup                            0          0         0    - /sys/fs/cgroup/cpu,cpuacct
cgroup                            0          0         0    - /sys/fs/cgroup/pids
cgroup                            0          0         0    - /sys/fs/cgroup/net_cls,net_prio
cgroup                            0          0         0    - /sys/fs/cgroup/memory
cgroup                            0          0         0    - /sys/fs/cgroup/devices
cgroup                            0          0         0    - /sys/fs/cgroup/perf_event
cgroup                            0          0         0    - /sys/fs/cgroup/blkio
cgroup                            0          0         0    - /sys/fs/cgroup/freezer
pstore                            0          0         0    - /sys/fs/pstore
debugfs                           0          0         0    - /sys/kernel/debug
fusectl                           0          0         0    - /sys/fs/fuse/connections
proc                              0          0         0    - /proc
systemd-1                         0          0         0    - /proc/sys/fs/binfmt_misc
/dev/loop1                    36352      36352         0 100% /snap/openswitch-appliance/x1
/dev/loop2                      128        128         0 100% /snap/hello-world/26
/dev/loop3                      128        128         0 100% /snap/hello-world/27
/dev/loop0                    66432      66432         0 100% /snap/ubuntu-core/122
VirtualBox_Shared_Folder  500106580  203225352 296881228  41% /media/sf_VirtualBox_Shared_Folder
/dev/sr0                      56868      56868         0 100% /media/netop/VBOXADDITIONS_5.0.26_108824
auto.direct              1487997952 1150649344 322231296  79% /roch/blizzard_fw2
auto.direct               907138816  701365856 196556960  79% /roch/blizzard_fw
/dev/loop0                    66432      66432         0 100% /bin
/dev/loop0                    66432      66432         0 100% /sbin
/dev/loop0                    66432      66432         0 100% /lib
/dev/loop0                    66432      66432         0 100% /lib64
/dev/loop0                    66432      66432         0 100% /usr
/dev/sda1                  15349744    5357268   9189712  37% /tmp
devpts                            0          0         0    - /dev/pts
devpts                            0          0         0    - /dev/ptmx
tmpfs                        101628      11416     90212  12% /run/netns
nsfs                              0          0         0    - /run/netns/xxx

Note the "nsfs" mount of /run/netns/xxx.

Here is the identical 'df -a' from the 2nd window, i.e. the one that doesn’t work. Note that this DOES NOT have the same line:

root at Snappy-Appliance:/home/netop# df -a
Filesystem                     1K-blocks       Used Available Use% Mounted on
/dev/sda1                       15349744    5357272   9189708  37% /
udev                              488872          0    488872   0% /dev
devpts                                 0          0         0    - /dev/pts
tmpfs                             508136        172    507964   1% /dev/shm
hugetlbfs                              0          0         0    - /dev/hugepages
mqueue                                 0          0         0    - /dev/mqueue
tmpfs                             101628      11416     90212  12% /run
tmpfs                               5120          4      5116   1% /run/lock
sunrpc                                 0          0         0    - /run/rpc_pipefs
tmpfs                             101628         72    101556   1% /run/user/1000
gvfsd-fuse                             0          0         0    - /run/user/1000/gvfs
sysfs                                  0          0         0    - /sys
securityfs                             0          0         0    - /sys/kernel/security
tmpfs                             508136          0    508136   0% /sys/fs/cgroup
cgroup                                 0          0         0    - /sys/fs/cgroup/systemd
cgroup                                 0          0         0    - /sys/fs/cgroup/hugetlb
cgroup                                 0          0         0    - /sys/fs/cgroup/cpuset
cgroup                                 0          0         0    - /sys/fs/cgroup/cpu,cpuacct
cgroup                                 0          0         0    - /sys/fs/cgroup/pids
cgroup                                 0          0         0    - /sys/fs/cgroup/net_cls,net_prio
cgroup                                 0          0         0    - /sys/fs/cgroup/memory
cgroup                                 0          0         0    - /sys/fs/cgroup/devices
cgroup                                 0          0         0    - /sys/fs/cgroup/perf_event
cgroup                                 0          0         0    - /sys/fs/cgroup/blkio
cgroup                                 0          0         0    - /sys/fs/cgroup/freezer
pstore                                 0          0         0    - /sys/fs/pstore
debugfs                                0          0         0    - /sys/kernel/debug
fusectl                                0          0         0    - /sys/fs/fuse/connections
proc                                   0          0         0    - /proc
systemd-1                              -          -         -    - /proc/sys/fs/binfmt_misc
/dev/loop1                         36352      36352         0 100% /snap/openswitch-appliance/x1
/dev/loop2                           128        128         0 100% /snap/hello-world/26
/dev/loop3                           128        128         0 100% /snap/hello-world/27
/dev/loop0                         66432      66432         0 100% /snap/ubuntu-core/122
VirtualBox_Shared_Folder       500106580  203225352 296881228  41% /media/sf_VirtualBox_Shared_Folder
/dev/sr0                           56868      56868         0 100% /media/netop/VBOXADDITIONS_5.0.26_108824
auto.direct                            -          -         -    - /roch/blizzard_fw2
auto.direct                            -          -         -    - /roch/blizzard_fw
/dev/loop0                         66432      66432         0 100% /bin
/dev/loop0                         66432      66432         0 100% /sbin
/dev/loop0                         66432      66432         0 100% /lib
/dev/loop0                         66432      66432         0 100% /lib64
/dev/loop0                         66432      66432         0 100% /usr
/dev/sda1                       15349744    5357272   9189708  37% /tmp
devpts                                 0          0         0    - /dev/pts
devpts                                 0          0         0    - /dev/ptmx
binfmt_misc                            0          0         0    - /proc/sys/fs/binfmt_misc
engstore3:/fw2/blizzard       1487997952 1150649344 322231296  79% /roch/blizzard_fw2
maand-engstore1:/fw1/blizzard  907138816  701365984 196556832  79% /roch/blizzard_fw

Below is the long output from the second window referenced above before the mentioning of the 'df -a' commands.

So my question is why does the 'ip netns' command not work in the 2nd window?

Thanks,

Dave


netop at Snappy-Appliance:~$ sudo /snap/bin/openswitch-appliance.shell
[sudo] password for netop:
root at Snappy-Appliance:/home/netop#
root at Snappy-Appliance:/home/netop# which ip
/snap/openswitch-appliance/x1/bin/ip
root at Snappy-Appliance:/home/netop# ip netns list
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
xxx
root at Snappy-Appliance:/home/netop# ip netns exec xxx bash
RTNETLINK answers: Invalid argument
setting the network namespace "xxx" failed: Invalid argument
root at Snappy-Appliance:/home/netop# ps
  PID TTY          TIME CMD
 2695 ?        00:00:00 sudo
 2696 ?        00:00:00 bash
 2708 ?        00:00:00 ps
root at Snappy-Appliance:/home/netop#
root at Snappy-Appliance:/home/netop#
root at Snappy-Appliance:/home/netop# strace ip netns list
execve("/snap/openswitch-appliance/x1/bin/ip", ["ip", "netns", "list"], [/* 32 vars */]) = 0
brk(NULL)                               = 0x141c000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ff7520000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/var/lib/snapd/lib/gl/tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/var/lib/snapd/lib/gl/tls/x86_64", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/var/lib/snapd/lib/gl/tls/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/var/lib/snapd/lib/gl/tls", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/var/lib/snapd/lib/gl/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/var/lib/snapd/lib/gl/x86_64", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/var/lib/snapd/lib/gl/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/var/lib/snapd/lib/gl", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libdl.so.2", O_RDONLY|O_CLOEXEC)  = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/lib/x86_64-linux-gnu/tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/lib/x86_64-linux-gnu/tls/x86_64", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/lib/x86_64-linux-gnu/tls/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/lib/x86_64-linux-gnu/tls", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/lib/x86_64-linux-gnu/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/lib/x86_64-linux-gnu/x86_64", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=76, ...}) = 0
open("/snap/openswitch-appliance/x1/usr/lib/tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/usr/lib/tls/x86_64", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/usr/lib/tls/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/usr/lib/tls", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/usr/lib/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/usr/lib/x86_64", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/usr/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/usr/lib", {st_mode=S_IFDIR|0755, st_size=1456, ...}) = 0
open("/snap/openswitch-appliance/x1/usr/lib/x86_64-linux-gnu/tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/usr/lib/x86_64-linux-gnu/tls/x86_64", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/usr/lib/x86_64-linux-gnu/tls/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/usr/lib/x86_64-linux-gnu/tls", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/usr/lib/x86_64-linux-gnu/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/usr/lib/x86_64-linux-gnu/x86_64", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/usr/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/usr/lib/x86_64-linux-gnu", {st_mode=S_IFDIR|0755, st_size=646, ...}) = 0
open("/snap/openswitch-appliance/x1/lib/tls/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/lib/tls/x86_64", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/lib/tls/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/lib/tls", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/lib/x86_64/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/lib/x86_64", 0x7ffc033f74f0) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/lib/libdl.so.2", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/snap/openswitch-appliance/x1/lib", {st_mode=S_IFDIR|0755, st_size=146, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=96833, ...}) = 0
mmap(NULL, 96833, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1ff7508000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\r\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=14608, ...}) = 0
mmap(NULL, 2109680, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1ff70f9000
mprotect(0x7f1ff70fc000, 2093056, PROT_NONE) = 0
mmap(0x7f1ff72fb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f1ff72fb000
close(3)                                = 0
open("/var/lib/snapd/lib/gl/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libc.so.6", O_RDONLY|O_CLOEXEC)   = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/usr/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/usr/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/snap/openswitch-appliance/x1/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1864888, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ff7507000
mmap(NULL, 3967488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1ff6d30000
mprotect(0x7f1ff6ef0000, 2093056, PROT_NONE) = 0
mmap(0x7f1ff70ef000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bf000) = 0x7f1ff70ef000
mmap(0x7f1ff70f5000, 14848, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1ff70f5000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ff7506000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1ff7505000
arch_prctl(ARCH_SET_FS, 0x7f1ff7506700) = 0
mprotect(0x7f1ff70ef000, 16384, PROT_READ) = 0
mprotect(0x7f1ff72fb000, 4096, PROT_READ) = 0
mprotect(0x656000, 4096, PROT_READ)     = 0
mprotect(0x7f1ff7522000, 4096, PROT_READ) = 0
munmap(0x7f1ff7508000, 96833)           = 0
socket(PF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, NETLINK_ROUTE) = 3
setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0
setsockopt(3, SOL_SOCKET, SO_RCVBUF, [1048576], 4) = 0
bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(3, {sa_family=AF_NETLINK, pid=2722, groups=00000000}, [12]) = 0
open("/proc/self/ns/net", O_RDONLY)     = 4
sendto(3, "\34\0\0\0Z\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\10\0\3\0\4\0\0\0", 28, 0, NULL, 0) = 28
recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\34\0\0\0X\0\0\0\0\0\0\0\242\n\0\0\0\0\0\0\10\0\1\0\377\377\377\377", 16384}], msg_controllen=0, msg_flags=0}, 0) = 28
close(4)                                = 0
socket(PF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, NETLINK_ROUTE) = 4
setsockopt(4, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0
setsockopt(4, SOL_SOCKET, SO_RCVBUF, [1048576], 4) = 0
bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(4, {sa_family=AF_NETLINK, pid=-353713190, groups=00000000}, [12]) = 0
open("/var/run/netns", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 5
fstat(5, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
brk(NULL)                               = 0x141c000
brk(0x1445000)                          = 0x1445000
getdents(5, /* 3 entries */, 32768)     = 72
open("/var/run/netns/xxx", O_RDONLY)    = 6
sendmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\34\0\0\0Z\0\1\0\231\2\231W\0\0\0\0\0\0\0\0\10\0\3\0\6\0\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 28
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\2\0\0\0\231\2\231W\332\303\352\352\352\377\377\377\34\0\0\0Z\0\1\0\231\2\231W"..., 32768}], msg_controllen=0, msg_flags=0}, 0) = 48
write(2, "RTNETLINK answers: Invalid argum"..., 36RTNETLINK answers: Invalid argument
) = 36
close(6)                                = 0
getdents(5, /* 0 entries */, 32768)     = 0
brk(0x143d000)                          = 0x143d000
close(5)                                = 0
open("/var/run/netns", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 5
fstat(5, {st_mode=S_IFDIR|0755, st_size=60, ...}) = 0
getdents(5, /* 3 entries */, 32768)     = 72
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 17), ...}) = 0
open("/var/run/netns/xxx", O_RDONLY)    = 6
sendmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\34\0\0\0Z\0\1\0\232\2\231W\0\0\0\0\0\0\0\0\10\0\3\0\6\0\0\0", 28}], msg_controllen=0, msg_flags=0}, 0) = 28
recvmsg(4, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"0\0\0\0\2\0\0\0\232\2\231W\332\303\352\352\352\377\377\377\34\0\0\0Z\0\1\0\232\2\231W"..., 32768}], msg_controllen=0, msg_flags=0}, 0) = 48
write(2, "RTNETLINK answers: Invalid argum"..., 36RTNETLINK answers: Invalid argument
) = 36
close(6)                                = 0
write(1, "xxx\n", 4xxx
)                    = 4
getdents(5, /* 0 entries */, 32768)     = 0
close(5)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++
root at Snappy-Appliance:/home/netop#

________________________________

DISCLAIMER:
This e-mail and any attachments to it may contain confidential and proprietary material and is solely for the use of the intended recipient. Any review, use, disclosure, distribution or copying of this transmittal is prohibited except by or on behalf of the intended recipient. If you have received this transmittal in error, please notify the sender and destroy this e-mail and any attachments and all copies, whether electronic or printed.


More information about the Snapcraft mailing list