Bug#769613: LXC guest shutdown hangs the host SSH sessions

2014-11-26 Thread Nicolas Pillot
As i ran into the same problem, i'll give some additional feedback

The problem can be reproduced with :
- unspecified lxc.network.type (= none ?)
- using halt/reboot/poweroff -i in the guest container

Step by step instructions
- create a virtualbox vm
- install with source iso debian-7.7.0-amd64-netinst.iso
- don't check anything in tasksel, minimal install
- apt-get update  apt-get dist-upgrade  rebooot -i
- apt-get install lxc
- echo cgroup /sys/fs/cgroup cgroup defaults 0 0  /etc/fstab
- mount cgroup
- lxc-create -n admin1 -t debian
- ip addr shows host ip config : eth0 10.0.2.15
- lxc-start -n admin1 -d
- lxc-console -n admin1
- login as root/root
- halt/reboot/poweroff -i
- console hangs
- Cltr-A q to get back to host
- ip addr shows host ip config : eth0 has lost its ipv4 addresses

By the way :
- everything is done in the console of the host, no ssh involved
- the very same happens whether the host's eth0 is dhcp or static
- guest /var/lib/lxc/admin1/config file was not modified
- guest /etc/network/interface was not modified

The default container configuration doesn't contain an
lxc.network.type statement. The default value for lxc.network.type
AFAIK seems to be set to none, which as per [1] **shares** the host
eth0 with he guest eth0. So when the guest is going down, the -i
argument to the down command deconfigures it's interface, and as it's
shared with the host, the host interface is deconfigured too

As a consequence, i think the SSH problem mentioned above is more a
problem of the host's eth0 being shared with the container's when
lxc.network.type is not specified (=none?) **AND** using
halt/reboot/poweroff with the -i parameter, which asks the container
to shut down all network interfaces just before halt or reboot, and in
the case above does so on the host's interface as it's shared.

PS: I tested too with
- lxc.network.type = empty
- lxc.network.type = veth and lxc.network.link = br0
In both case, with or without -i, the host interface was untouched.

[1] http://man7.org/linux/man-pages/man5/lxc.container.conf.5.html


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#769613: LXC guest shutdown hangs the host SSH sessions

2014-11-24 Thread Daniel Baumann
close 769613 1.0.6-1
thanks

i can't reproduce it with any version, but specifically also not with
the jessie one, so doing a versioned close of the bug accordingly.

-- 
Address:Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:  daniel.baum...@progress-technologies.net
Internet:   http://people.progress-technologies.net/~daniel.baumann/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#769613: LXC guest shutdown hangs the host SSH sessions

2014-11-18 Thread Daniel Baumann
On 11/16/2014 04:39 PM, Mario Castelán Castro wrote:
 The configuration is the default generated by LXC, everything
 LXC-related is at its defaults

i've just reproduce it again with a clean wheezy vm from scratch. it
doesn't happen.

just to be sure, you're building debian containers on a debian host, right?

-- 
Address:Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:  daniel.baum...@progress-technologies.net
Internet:   http://people.progress-technologies.net/~daniel.baumann/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#769613: LXC guest shutdown hangs the host SSH sessions

2014-11-16 Thread Mario Castelán Castro

Hello.

The configuration is the default generated by LXC, everything 
LXC-related is at its defaults, except for this added line in /etc/fstab 
as recommended in https://wiki.debian.org/LXC:


  none  /sys/fs/cgroup  cgroup

Note that this LXC version is quite old. Maybe you're using a newer 
version which doesn't have this problem.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#769613: LXC guest shutdown hangs the host SSH sessions

2014-11-14 Thread Mario Castelán Castro

Package: lxc
Version: 0.8.0~rc1-8+deb7u2

Hello.

I have noticed that in Debian 7.7, when shutting down a Debian container 
with shutdown the host ongoing SSH sessions terminate and I can't 
connect to the host anymore through SSH. However I can still access the 
host through the its terminal.


This was tested in a fully upgraded Debian Wheezy for x86_64 in a 
machine virtualized with QEMU/KVM.



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#769613: LXC guest shutdown hangs the host SSH sessions

2014-11-14 Thread Daniel Baumann
tag 769613 moreinfo
tag 769613 unreproducible
thanks

On 11/15/2014 02:25 AM, Mario Castelán Castro wrote:
 I have noticed that in Debian 7.7, when shutting down a Debian container
 with shutdown the host ongoing SSH sessions terminate

i'm doing this on a daly basis and have never experienced that. can you
attach a config of such a container that you're shutting down?

-- 
Address:Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email:  daniel.baum...@progress-technologies.net
Internet:   http://people.progress-technologies.net/~daniel.baumann/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org