Discussion:
[lxc-users] re lxcbr0 doesn't exist after upgrade to 15.10
brian mullan
2015-10-26 23:54:20 UTC
Permalink
Norberto

Great coincidence as I read your msg to the lxc-users list about the lxcbr0
bridge
disappearing after upgrade to Ubuntu 15.10.

I just finished upgrading one of my machines to 15.10 this weekend and
today I noticed
I couldn't start any containers.

Then I noticed there is no lxcbr0 any longer.

I followed same steps as you w/ service lxc-net stop/start etc also.

I looked on launchpad for any bugs files on lxc for this but didn't spot
anything yet however
there were several mentions of one or more systemd problems

$ lsb_release -d
Description: Ubuntu 15.10

$ sudo lxc --version
0.20

$ uname -a
Linux server3 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015
x86_64 x86_64 x86_64 GNU/Linux

$ sudo lxc-start -n test
lxc-start: lxc_start.c: main: 344 The container failed to start.
lxc-start: lxc_start.c: main: 346 To get more details, run the container in
foreground mode.
lxc-start: lxc_start.c: main: 348 Additional information can be obtained by
setting the --logfile and --logpriority options.

# the logfile I created contained this...

$ more *.log
lxc-start 1445897600.815 ERROR lxc_conf -
conf.c:instantiate_veth:2621 - failed to attach 'vethTB8U9R' to the bridge
'lx
cbr0': Operation not permitted
lxc-start 1445897600.846 ERROR lxc_conf -
conf.c:lxc_create_network:2904 - failed to create netdev
lxc-start 1445897600.846 ERROR lxc_start - start.c:lxc_spawn:920 -
failed to create the network
lxc-start 1445897600.846 ERROR lxc_start -
start.c:__lxc_start:1172 - failed to spawn 'test'
lxc-start 1445897600.846 ERROR lxc_start_ui - lxc_start.c:main:344
- The container failed to start.
lxc-start 1445897600.846 ERROR lxc_start_ui - lxc_start.c:main:348
- Additional information can be obtained by setting t
he --logfile and --logpriority options.
lxc-start 1445899155.144 ERROR lxc_conf -
conf.c:instantiate_veth:2621 - failed to attach 'vethGQAYMM' to the bridge
'lx
cbr0': Operation not permitted
lxc-start 1445899155.170 ERROR lxc_conf -
conf.c:lxc_create_network:2904 - failed to create netdev
lxc-start 1445899155.170 ERROR lxc_start - start.c:lxc_spawn:920 -
failed to create the network
lxc-start 1445899155.170 ERROR lxc_start -
start.c:__lxc_start:1172 - failed to spawn 'test'
lxc-start 1445899160.176 ERROR lxc_start_ui - lxc_start.c:main:344
- The container failed to start.
lxc-start 1445899160.176 ERROR lxc_start_ui - lxc_start.c:main:346
- To get more details, run the container in foregroun
d mode.
lxc-start 1445899160.176 ERROR lxc_start_ui - lxc_start.c:main:348
- Additional information can be obtained by setting t
he --logfile and --logpriority options.

Brian
Serge Hallyn
2015-10-27 14:59:44 UTC
Permalink
Post by brian mullan
Norberto
Great coincidence as I read your msg to the lxc-users list about the lxcbr0
bridge
disappearing after upgrade to Ubuntu 15.10.
Can you open a launchpad bug and describe there the system you upgraded
from? (i.e. was it stock 14.04 with systemd? desktop, with network-manager?
/etc/network/interfaces contents; and what do you get when you run

journalctl -u lxc-net
/usr/lib/x86_64-linux-gnu/lxc/lxc-net stop
/usr/lib/x86_64-linux-gnu/lxc/lxc-net start
Norberto Bensa
2015-10-30 01:59:00 UTC
Permalink
Hello.

This problem fixed by itself. Today I re-enabled systemd and after a
reboot lxcbr0 is up and running again.

Maybe this update has something to do with it:

Start-Date: 2015-10-26 20:37:19
Commandline: apt-get dist-upgrade
Upgrade: lxc:amd64 (1.1.4-0ubuntu1, 1.1.4-0ubuntu1.1),
python3-lxc:amd64 (1.1.4-0ubuntu1, 1.1.4-0ubuntu1.1), liblxc1:amd64
(1.1.4-0ubuntu1, 1.1.4-0ubuntu1.1), lxc-templates:amd64
(1.1.4-0ubuntu1, 1.1.4-0ubuntu1.1)
End-Date: 2015-10-26 20:37:21
Post by Serge Hallyn
Post by brian mullan
Norberto
Great coincidence as I read your msg to the lxc-users list about the lxcbr0
bridge
disappearing after upgrade to Ubuntu 15.10.
Can you open a launchpad bug and describe there the system you upgraded
from? (i.e. was it stock 14.04 with systemd? desktop, with network-manager?
/etc/network/interfaces contents; and what do you get when you run
journalctl -u lxc-net
/usr/lib/x86_64-linux-gnu/lxc/lxc-net stop
/usr/lib/x86_64-linux-gnu/lxc/lxc-net start
B G
2015-10-30 14:33:07 UTC
Permalink
After upgrading to 15.10 using LXD, I can't start any of my containers...

lxc start container -- fails with:

lxc start container-name
error: Error calling 'lxd forkstart neo /var/lib/lxd/containers
/var/log/lxd/container-name/lxc.conf': err='exit status 1'
Try `lxc info --show-log container-name` for more info
***@server2-us:/usr/local# lxc info --show-log neo



When I look at the log - the first line with error goes:

lxc 1446215170.376 ERROR lxc_conf -
conf.c:instantiate_veth:2621 - failed to attach 'vethGXCIAF' to the bridge
'lxcbr0': Operation not permitted
lxc 1446215170.403 INFO lxc_monitor -
monitor.c:lxc_monitor_sock_name:178 - using monitor sock name
lxc/d78a9d7e97b4b375//var/lib/lxd/containers
lxc 1446215170.406 ERROR lxc_conf -
conf.c:lxc_create_network:2904 - failed to create netdev
lxc 1446215170.406 ERROR lxc_start - start.c:lxc_spawn:920 -
failed to create the network
lxc 1446215170.406 ERROR lxc_start -
start.c:__lxc_start:1172 - failed to spawn 'container-name'

Appreciate any help here...

I have tried purging lxd and re-installing but doesn't seem to work...
Also the lxc.conf file doesn't seem to exist in the directory from the
error message...
Post by Norberto Bensa
Hello.
This problem fixed by itself. Today I re-enabled systemd and after a
reboot lxcbr0 is up and running again.
Start-Date: 2015-10-26 20:37:19
Commandline: apt-get dist-upgrade
Upgrade: lxc:amd64 (1.1.4-0ubuntu1, 1.1.4-0ubuntu1.1),
python3-lxc:amd64 (1.1.4-0ubuntu1, 1.1.4-0ubuntu1.1), liblxc1:amd64
(1.1.4-0ubuntu1, 1.1.4-0ubuntu1.1), lxc-templates:amd64
(1.1.4-0ubuntu1, 1.1.4-0ubuntu1.1)
End-Date: 2015-10-26 20:37:21
Post by Serge Hallyn
Post by brian mullan
Norberto
Great coincidence as I read your msg to the lxc-users list about the
lxcbr0
Post by Serge Hallyn
Post by brian mullan
bridge
disappearing after upgrade to Ubuntu 15.10.
Can you open a launchpad bug and describe there the system you upgraded
from? (i.e. was it stock 14.04 with systemd? desktop, with
network-manager?
Post by Serge Hallyn
/etc/network/interfaces contents; and what do you get when you run
journalctl -u lxc-net
/usr/lib/x86_64-linux-gnu/lxc/lxc-net stop
/usr/lib/x86_64-linux-gnu/lxc/lxc-net start
_______________________________________________
lxc-users mailing list
http://lists.linuxcontainers.org/listinfo/lxc-users
B G
2015-10-30 20:46:21 UTC
Permalink
I installed the latest daily build today and LXD working again... not sure
what the problem was...
Post by B G
After upgrading to 15.10 using LXD, I can't start any of my containers...
lxc start container-name
error: Error calling 'lxd forkstart neo /var/lib/lxd/containers
/var/log/lxd/container-name/lxc.conf': err='exit status 1'
Try `lxc info --show-log container-name` for more info
lxc 1446215170.376 ERROR lxc_conf -
conf.c:instantiate_veth:2621 - failed to attach 'vethGXCIAF' to the bridge
'lxcbr0': Operation not permitted
lxc 1446215170.403 INFO lxc_monitor -
monitor.c:lxc_monitor_sock_name:178 - using monitor sock name
lxc/d78a9d7e97b4b375//var/lib/lxd/containers
lxc 1446215170.406 ERROR lxc_conf -
conf.c:lxc_create_network:2904 - failed to create netdev
lxc 1446215170.406 ERROR lxc_start - start.c:lxc_spawn:920
- failed to create the network
lxc 1446215170.406 ERROR lxc_start -
start.c:__lxc_start:1172 - failed to spawn 'container-name'
Appreciate any help here...
I have tried purging lxd and re-installing but doesn't seem to work...
Also the lxc.conf file doesn't seem to exist in the directory from the
error message...
Post by Norberto Bensa
Hello.
This problem fixed by itself. Today I re-enabled systemd and after a
reboot lxcbr0 is up and running again.
Start-Date: 2015-10-26 20:37:19
Commandline: apt-get dist-upgrade
Upgrade: lxc:amd64 (1.1.4-0ubuntu1, 1.1.4-0ubuntu1.1),
python3-lxc:amd64 (1.1.4-0ubuntu1, 1.1.4-0ubuntu1.1), liblxc1:amd64
(1.1.4-0ubuntu1, 1.1.4-0ubuntu1.1), lxc-templates:amd64
(1.1.4-0ubuntu1, 1.1.4-0ubuntu1.1)
End-Date: 2015-10-26 20:37:21
Post by Serge Hallyn
Post by brian mullan
Norberto
Great coincidence as I read your msg to the lxc-users list about the
lxcbr0
Post by Serge Hallyn
Post by brian mullan
bridge
disappearing after upgrade to Ubuntu 15.10.
Can you open a launchpad bug and describe there the system you upgraded
from? (i.e. was it stock 14.04 with systemd? desktop, with
network-manager?
Post by Serge Hallyn
/etc/network/interfaces contents; and what do you get when you run
journalctl -u lxc-net
/usr/lib/x86_64-linux-gnu/lxc/lxc-net stop
/usr/lib/x86_64-linux-gnu/lxc/lxc-net start
_______________________________________________
lxc-users mailing list
http://lists.linuxcontainers.org/listinfo/lxc-users
brian mullan
2015-10-30 17:26:52 UTC
Permalink
Serge

Just saw your email but the missing lxcbr0 interface reappeared the next
day.

Not sure if it had something to do with a hard power down vs sw reboot as
I'd tried rebooting several times when lxcbr0 was missing and it stayed
missing.

Or it may have been an auto apt-get update that fixed something?

Brian
Post by brian mullan
Post by brian mullan
Norberto
Great coincidence as I read your msg to the lxc-users list about the
lxcbr0
Post by brian mullan
bridge
disappearing after upgrade to Ubuntu 15.10.
Can you open a launchpad bug and describe there the system you upgraded
from? (i.e. was it stock 14.04 with systemd? desktop, with
network-manager?
/etc/network/interfaces contents; and what do you get when you run
journalctl -u lxc-net
/usr/lib/x86_64-linux-gnu/lxc/lxc-net stop
/usr/lib/x86_64-linux-gnu/lxc/lxc-net start
brian mullan
2015-11-03 15:26:03 UTC
Permalink
Serge

This problem w/lxcbr0 disappearing has occurred again on my 15.10 server
today.
After boot up lxcbr0 is missing.

I will file a launchpad bug and post the info you requested the last time
this occurred.

I'll also leave the system alone after I file the bug until I hear what
other data you might want me to gather.

But fyi here is the info also:

$* ifconfig lxcbr0*
lxcbr0: error fetching interface information: Device not found


$* journalctl -u lxc-net*
-- Logs begin at Tue 2015-11-03 07:25:22 EST, end at Tue 2015-11-03
10:02:08 EST
Nov 03 07:25:48 server3 systemd[1]: Starting LXC network bridge setup...
Nov 03 07:25:50 server3 lxc-net[913]: dnsmasq: failed to create listening
socket
Nov 03 07:25:50 server3 lxc-net[913]: Failed to setup lxc-net.
Nov 03 07:25:50 server3 systemd[1]: Started LXC network bridge setup.

***@server3:/home/bmullan# */usr/lib/x86_64-linux-gnu/lxc/lxc-net
stop # note - execution just returns to command line*
Post by brian mullan
and lxcbr0 is still missing
# *ifconfig lxcbr0*
lxcbr0: error fetching interface information: Device not found

***@server3:/home/bmullan# */usr/lib/x86_64-linux-gnu/lxc/lxc-net start*

dnsmasq: failed to create listening socket for 10.0.3.1: Cannot assign
requested address
Failed to setup lxc-net.
***@server3:/home/bmullan#

$ *uname -a*
Linux server3 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015
x86_64 x86_64 x86_64 GNU/Linux

$ *lsb_release -a*
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: *15.10*
Codename: wily




*Launchpad Bug I filed:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1512749
<https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1512749>*
Brian
Post by brian mullan
Serge
Just saw your email but the missing lxcbr0 interface reappeared the next
day.
Not sure if it had something to do with a hard power down vs sw reboot as
I'd tried rebooting several times when lxcbr0 was missing and it stayed
missing.
Or it may have been an auto apt-get update that fixed something?
Brian
Post by brian mullan
Norberto
Great coincidence as I read your msg to the lxc-users list about the
lxcbr0
Post by brian mullan
bridge
disappearing after upgrade to Ubuntu 15.10.
Can you open a launchpad bug and describe there the system you upgraded
from? (i.e. was it stock 14.04 with systemd? desktop, with
network-manager?
/etc/network/interfaces contents; and what do you get when you run
journalctl -u lxc-net
/usr/lib/x86_64-linux-gnu/lxc/lxc-net stop
/usr/lib/x86_64-linux-gnu/lxc/lxc-net start
Loading...