[Bug 1367495] [NEW] Bridge still not created if bind9 is on

2014-09-09 Thread Dan Kegel
Public bug reported:

This is probably a dup of bug 1240757, created just so I could upload
the data requested in that bug report.

On a fresh, probably vanilla, ubuntu 14.04 server, I tried using ubuntu 14.04's 
default lxc.
It created containers fine, but they failed to start, complaining
  lxc-start: failed to attach 'veth9HNUS9' to the bridge 'lxcbr0' : No such 
device
/var/log/upstart/lxc-net.log says
  dnsmasq: failed to create listening socket for 10.0.3.1: Address already in 
use

This didn't happen on a desktop 14.04 instance, where bind9 is not
installed by default.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: lxc 1.0.5-0ubuntu0.1
ProcVersionSignature: Ubuntu 3.13.0-35.62-generic 3.13.11.6
Uname: Linux 3.13.0-35-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.3
Architecture: amd64
Date: Tue Sep  9 16:39:34 2014
ProcEnviron:
 LANGUAGE=en_US:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)
defaults.conf:
 lxc.network.type = veth
 lxc.network.link = lxcbr0
 lxc.network.flags = up
 lxc.network.hwaddr = 00:16:3e:xx:xx:xx

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


** Tags: amd64 apparmor apport-bug trusty

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1367495

Title:
  Bridge still not created if bind9 is on

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1065589] Re: initctl list shows 11974 instances of network-interface-security after two days of uptime

2013-01-25 Thread Dan Kegel
Where does this stand?  A fully updated 12.04.1 system is still seeing lots of 
interfaces;
   2015 network-interface
   4028 network-interface-security
and toggling an lxc container up and down four times seemed to result in
one extra network-interface and four extra network-interface-security's.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1065589

Title:
  initctl list shows 11974 instances of network-interface-security
  after two days of uptime

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1065589] Re: initctl list shows 11974 instances of network-interface-security after two days of uptime

2013-01-25 Thread Dan Kegel
Thanks.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1065589

Title:
  initctl list shows 11974 instances of network-interface-security
  after two days of uptime

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1075736] [NEW] lxc-create -u ubuntu fails if /var/cache/lxc too old?

2012-11-06 Thread Dan Kegel
Public bug reported:

In ubuntu 12.04:

sudo lxc-create -t ubuntu -n foobar -- -r lucid
fails after a while.  Workaround is sudo rm -rf /var/cache/lxc.
It'd be nice if it didn't go stale like that.

Log of the failure:

No config file specified, using the default config
debootstrap is /usr/sbin/debootstrap
Checking cache download in /var/cache/lxc/lucid/rootfs-amd64 ... 
Copy /var/cache/lxc/lucid/rootfs-amd64 to /var/lib/lxc/foobar/rootfs ... 
Copying rootfs to /var/lib/lxc/foobar/rootfs ...
Reading package lists... Done
Building dependency tree   
Reading state information... Done
The following extra packages will be installed:
  iso-codes python-apt python-gnupginterface python-pycurl python-support 
unattended-upgrades
Suggested packages:
  isoquery python-apt-dbg python-gtk2 python-vte python-apt-doc 
libcurl4-gnutls-dev python-pycurl-dbg bsd-mailx
The following NEW packages will be installed:
  iso-codes python-apt python-gnupginterface python-pycurl 
python-software-properties python-support unattended-upgrades
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 2992kB of archives.
After this operation, 15.2MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ lucid/main iso-codes 3.12.1-1 [2642kB]
Get:2 http://archive.ubuntu.com/ubuntu/ lucid-updates/main python-apt 
0.7.94.2ubuntu6.4 [187kB]
Get:3 http://archive.ubuntu.com/ubuntu/ lucid/main python-support 1.0.4ubuntu1 
[32.0kB]
Get:4 http://archive.ubuntu.com/ubuntu/ lucid/main python-gnupginterface 
0.3.2-9.1 [19.1kB]
Get:5 http://archive.ubuntu.com/ubuntu/ lucid-updates/main unattended-upgrades 
0.55ubuntu7 [21.2kB]
Get:6 http://archive.ubuntu.com/ubuntu/ lucid/main python-pycurl 7.19.0-3 
[60.1kB]
Err http://archive.ubuntu.com/ubuntu/ lucid-updates/main 
python-software-properties 0.75.10.2
  404  Not Found [IP: 91.189.92.200 80]
Err http://security.ubuntu.com/ubuntu/ lucid-security/main 
python-software-properties 0.75.10.2
  404  Not Found [IP: 91.189.92.190 80]
Fetched 2962kB in 4s (650kB/s)
Failed to fetch 
http://security.ubuntu.com/ubuntu/pool/main/s/software-properties/python-software-properties_0.75.10.2_all.deb
  404  Not Found [IP: 91.189.92.190 80]
E: Unable to fetch some archives, maybe run apt-get update or try with 
--fix-missing?
failed to execute template 'ubuntu'
aborted

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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1075736

Title:
  lxc-create -u ubuntu fails if /var/cache/lxc too old?

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1065589] Re: initctl list shows 11974 instances of network-interface-security after two days of uptime

2012-10-12 Thread Dan Kegel
Running this script periodically seems to work around the problem.  Only
lightly tested.

** Attachment added: gc.sh
   
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1065589/+attachment/3396509/+files/gc.sh

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1065589

Title:
  initctl list shows 11974 instances of network-interface-security
  after two days of uptime

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1065589] Re: initctl list shows 11974 instances of network-interface-security after two days of uptime

2012-10-12 Thread Dan Kegel
Oops, that only deleted one of the jobs.  This draft deletes both.


** Attachment added: gc.sh
   
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1065589/+attachment/3396518/+files/gc.sh

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1065589

Title:
  initctl list shows 11974 instances of network-interface-security
  after two days of uptime

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1065589] Re: initctl list shows 11974 instances of network-interface-security after two days of uptime

2012-10-12 Thread Dan Kegel
Once more with feeling.

** Attachment added: bug1065589-gc.sh
   
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1065589/+attachment/3396522/+files/bug1065589-gc.sh

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1065589

Title:
  initctl list shows 11974 instances of network-interface-security
  after two days of uptime

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1065589] Re: initctl list shows 11974 instances of network-interface-security after two days of uptime

2012-10-12 Thread Dan Kegel
Alas, that archive doesn't show attachments.   For the record, is there
a better archive somewhere?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1065589

Title:
  initctl list shows 11974 instances of network-interface-security
  after two days of uptime

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1065589] [NEW] initctl list shows 11974 instances of network-interface-security after two days of uptime

2012-10-11 Thread Dan Kegel
Public bug reported:

On an Ubuntu 12.04.1 system, each time you start and stop a container,
initctl status shows two more instances of network-interface and 
network-interface-security running.
The numbers do not go down after the container shuts down.
Evidently there's an interface leak in lxc-start?

Here's how I ran into this.
Hosting a small number of buildbots in 
one-shot ephemeral LXC containers,
in which the LXC container is stop and started after each build,
after two days of uptime, running the commands

while true
do
   time initctl list | awk '{print $1}' | sort | uniq -c | sort -n | tail -n 3
done

outputs

  1 wait-for-state
   6003 network-interface
  11990 network-interface-security

real0m19.428s

  1 wait-for-state
   6004 network-interface
  11994 network-interface-security

real0m19.271s

If I stop the buildbots, the numbers stop rising.

This broke my build.

I can work around this by rebooting every night, but I'd sure rather
not.

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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1065589

Title:
  initctl list shows 11974 instances of network-interface-security
  after two days of uptime

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1051080] Re: lxc-start-ephemeral hangs if bind mounting nfs homedir

2012-09-17 Thread Dan Kegel
apport information

** Tags added: apport-collected precise

** Description changed:

  On Ubuntu 12.04.1, ephemeral containers seem to conflict with NFS home
  directories.
  
  The user's home directory is on a remote NFS server.
  The original container is created with 
sudo lxc-create -t ubuntu -n foobar -- -r lucid  --bindhome $LOGNAME
  The ephemeral container is started with
lxc-start-ephemeral -o foobar
  The user logs in to the ephemeral container.  This hangs.
  
  After that, any reference to the home directory -- inside or outside of
  the container -- seems to hang.
  
  mount in the container shows:
  
  none on / type overlayfs 
(rw,relatime,lowerdir=/var/lib/lxc/buildhost2-ubu10,upperdir=/tmp/lxc-lp-v92y7NU)
  none on /mnt/home/builder type overlayfs 
(rw,relatime,lowerdir=/mnt/home/builder,upperdir=/var/lib/lxc/buildhost2-ubu10-temp-loNNGB5/ephemeralbind/mnt/home/builder)
  
  mount outside the container shows:
  obnas1a:/vol/homes/builder 419430400 362328576  57101824  87% 
/mnt/home/builder
  But sometimes, mount outside the container shows nothing for 
/mnt/home/builder after the problem happens.
  
  This seems 100% repeatable.
+ --- 
+ AlsaDevices:
+  total 0
+  crw-rw---T 1 root audio 116,  1 Sep 14 15:17 seq
+  crw-rw---T 1 root audio 116, 33 Sep 14 15:17 timer
+ AplayDevices: aplay: device_list:252: no soundcards found...
+ ApportVersion: 2.0.1-0ubuntu13
+ Architecture: amd64
+ ArecordDevices: arecord: device_list:252: no soundcards found...
+ AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
+ CRDA: Error: [Errno 2] No such file or directory
+ CurrentDmesg:
+  Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg 
-'] failed with exit code 1: comm: /var/log/dmesg: Permission denied
+  dmesg: write failed: Broken pipe
+ DistroRelease: Ubuntu 12.04
+ InstallationMedia: Ubuntu 12.04 LTS Precise Pangolin - Beta amd64 (20120402)
+ Lsusb: Error: command ['lsusb'] failed with exit code 1: unable to initialize 
libusb: -99
+ MachineType: VMware, Inc. VMware Virtual Platform
+ NonfreeKernelModules: vmci
+ Package: linux (not installed)
+ PciMultimedia:
+  
+ ProcEnviron:
+  TERM=xterm
+  PATH=(custom, user)
+  LANG=en_US.UTF-8
+  SHELL=/bin/bash
+ ProcFB: 0 svgadrmfb
+ ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-30-generic 
root=UUID=51e9e90f-c222-4072-892d-871faa221c9b ro quiet splash
+ ProcVersionSignature: Ubuntu 3.2.0-30.48-generic 3.2.27
+ PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
+ RfKill:
+  
+ Tags:  precise
+ Uname: Linux 3.2.0-30-generic x86_64
+ UpgradeStatus: No upgrade log present (probably fresh install)
+ UserGroups:
+  
+ WifiSyslog:
+  
+ dmi.bios.date: 01/07/2011
+ dmi.bios.vendor: Phoenix Technologies LTD
+ dmi.bios.version: 6.00
+ dmi.board.name: 440BX Desktop Reference Platform
+ dmi.board.vendor: Intel Corporation
+ dmi.board.version: None
+ dmi.chassis.asset.tag: No Asset Tag
+ dmi.chassis.type: 1
+ dmi.chassis.vendor: No Enclosure
+ dmi.chassis.version: N/A
+ dmi.modalias: 
dmi:bvnPhoenixTechnologiesLTD:bvr6.00:bd01/07/2011:svnVMware,Inc.:pnVMwareVirtualPlatform:pvrNone:rvnIntelCorporation:rn440BXDesktopReferencePlatform:rvrNone:cvnNoEnclosure:ct1:cvrN/A:
+ dmi.product.name: VMware Virtual Platform
+ dmi.product.version: None
+ dmi.sys.vendor: VMware, Inc.

** Attachment added: AcpiTables.txt
   
https://bugs.launchpad.net/bugs/1051080/+attachment/3320835/+files/AcpiTables.txt

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1051080

Title:
  lxc-start-ephemeral hangs if bind mounting nfs homedir

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1051080] IwConfig.txt

2012-09-17 Thread Dan Kegel
apport information

** Attachment added: IwConfig.txt
   
https://bugs.launchpad.net/bugs/1051080/+attachment/3320836/+files/IwConfig.txt

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1051080

Title:
  lxc-start-ephemeral hangs if bind mounting nfs homedir

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1051080] Lspci.txt

2012-09-17 Thread Dan Kegel
apport information

** Attachment added: Lspci.txt
   https://bugs.launchpad.net/bugs/1051080/+attachment/3320837/+files/Lspci.txt

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1051080

Title:
  lxc-start-ephemeral hangs if bind mounting nfs homedir

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1051080] ProcCpuinfo.txt

2012-09-17 Thread Dan Kegel
apport information

** Attachment added: ProcCpuinfo.txt
   
https://bugs.launchpad.net/bugs/1051080/+attachment/3320838/+files/ProcCpuinfo.txt

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1051080

Title:
  lxc-start-ephemeral hangs if bind mounting nfs homedir

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1051080] ProcInterrupts.txt

2012-09-17 Thread Dan Kegel
apport information

** Attachment added: ProcInterrupts.txt
   
https://bugs.launchpad.net/bugs/1051080/+attachment/3320839/+files/ProcInterrupts.txt

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1051080

Title:
  lxc-start-ephemeral hangs if bind mounting nfs homedir

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1051080] ProcModules.txt

2012-09-17 Thread Dan Kegel
apport information

** Attachment added: ProcModules.txt
   
https://bugs.launchpad.net/bugs/1051080/+attachment/3320840/+files/ProcModules.txt

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1051080

Title:
  lxc-start-ephemeral hangs if bind mounting nfs homedir

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1051080] UdevDb.txt

2012-09-17 Thread Dan Kegel
apport information

** Attachment added: UdevDb.txt
   https://bugs.launchpad.net/bugs/1051080/+attachment/3320841/+files/UdevDb.txt

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1051080

Title:
  lxc-start-ephemeral hangs if bind mounting nfs homedir

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1051080] UdevLog.txt

2012-09-17 Thread Dan Kegel
apport information

** Attachment added: UdevLog.txt
   
https://bugs.launchpad.net/bugs/1051080/+attachment/3320842/+files/UdevLog.txt

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1051080

Title:
  lxc-start-ephemeral hangs if bind mounting nfs homedir

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1043018] Re: lxc-ls lists running containers multiple times

2012-09-14 Thread Dan Kegel
I find the old behavior confusing, and 
http://www.greenhills.co.uk/2011/06/10/lxc.html seems to agree, it says
I’m going to skip lxc-ls because it’s needlessly confusing.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1043018

Title:
  lxc-ls lists running containers multiple times

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1051080] Re: lxc-start-ephemeral hangs if bind mounting nfs homedir

2012-09-14 Thread Dan Kegel
** Package changed: ubuntu = lxc (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1051080

Title:
  lxc-start-ephemeral hangs if bind mounting nfs homedir

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1042431] Re: lxc-start-ephemeral needs tweak to handle centos and fedora hostname setting

2012-08-30 Thread Dan Kegel
I would be happy with (3), since the chasm between ubuntu and upstream
is so wide; I'd rather reduce the gap rather than widen it.  Still want
a bug?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1042431

Title:
  lxc-start-ephemeral needs tweak to handle centos and fedora hostname
  setting

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1043018] Re: lxc-ls lists running containers multiple times

2012-08-29 Thread Dan Kegel
This was on ubuntu 12.04 after doing apt-get dist-upgrade but before rebooting,
but I can still get it to happen after reboot, so it's still valid, I think.

I can reliably reproduce it by doing
  
sudo lxc-create -n demo_ubuntu_1204 -t ubuntu -- -r precise --bindhome $LOGNAME
lxc-start-ephemeral -o demo_ubuntu_1204 echo hi

lxc-start-ephemeral will hang.  (At this point, netstat -xa | grep /var/lib/lxc 
shows a LISTENING entry
for the container.)  
Pressing ^C now will fail to terminate lxc-start-ephemeral, but  netstat -xa | 
grep /var/lib/lxc 
will show both a LISTENING and a CONNECTING entry, and lxc-ls shows duplicate 
entries.

At the same time, my home directory goes bonkers and can't be read, it seems the
script's mount magic breaks my nfs home directory?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1043018

Title:
  lxc-ls lists running containers multiple times

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1043018] Re: lxc-ls lists running containers multiple times

2012-08-29 Thread Dan Kegel
I see a problem with just lxc-start, too, not lxc-start-ephemeral.
After doing
  sudo lxc-start -n demo_ubuntu_1204
and then in another window
  sudo lxc-console -n demo_centos6-temp-j4G0FcH
once I log in, the guest hangs, and lxc-ls shows

demo_ubuntu_1204  demo_ubuntu_1204-temp-JjkTzkK  demo_ubuntu_1204-temp-oMUDGfY
demo_ubuntu_1204-temp-oMUDGfY  demo_ubuntu_1204-temp-oMUDGfY

mount on the host shows

/dev/mapper/ubu12test-root on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
cgroup on /sys/fs/cgroup type tmpfs (rw,relatime,mode=755)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu type cgroup (rw,relatime,cpu)
cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,relatime,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,relatime,perf_event)
/dev/sda1 on /boot type ext2 (rw)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw)
obnas1a:/vol/homes/dank on /mnt/home/dank type nfs 
(rw,soft,tcp,rsize=32768,wsize=32768,nfsvers=3,sloppy,addr=10.10.1.201)
none on /tmp/lxc-lp-KsohZOA type tmpfs (rw)
none on /var/lib/lxc/demo_ubuntu_1204-temp-oMUDGfY type overlayfs 
(rw,upperdir=/tmp/lxc-lp-KsohZOA,lowerdir=/var/lib/lxc/demo_ubuntu_1204)
none on /var/lib/lxc/demo_ubuntu_1204-temp-oMUDGfY/ephemeralbind type tmpfs (rw)

I suppose next I should try this on an account with a local home
directory.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1043018

Title:
  lxc-ls lists running containers multiple times

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1043018] Re: lxc-ls lists running containers multiple times

2012-08-29 Thread Dan Kegel
Yeah, the hang only happens on users with nfs home directories.
I should file a separate bug for that.

Even on users with a local home directory, though, lxc-ls lists containers 
multiple times
after starting and logging into a container.  For instance, 

$ lxc-ls
demo_ubuntu_1204
demo_ubuntu_1204
$ bash -x /usr/bin/lxc-ls
+ lxcpath=/var/lib/lxc
+ '[' '!' -r /var/lib/lxc ']'
+ ls -- /var/lib/lxc
demo_ubuntu_1204
++ netstat -xa
++ grep /var/lib/lxc
++ sed -e 's#.*/var/lib/lxc/\(.*\)/command#\1#'
+ active=demo_ubuntu_1204
+ test -n demo_ubuntu_1204
+ get_cgroup
+ local mount_string
++ mount -t cgroup
++ grep -E -e '^lxc '
+ mount_string=
+ test -n ''
++ grep -m1 -E '^[^ \t]+[ \t]+[^ \t]+[ \t]+cgroup' /proc/self/mounts
+ mount_string='cgroup /sys/fs/cgroup/cpuset cgroup 
rw,relatime,cpuset,clone_children 0 0'
+ test -z 'cgroup /sys/fs/cgroup/cpuset cgroup 
rw,relatime,cpuset,clone_children 0 0'
++ echo 'cgroup /sys/fs/cgroup/cpuset cgroup rw,relatime,cpuset,clone_children 
0 0'
++ cut '-d ' -f2
+ mount_point=/sys/fs/cgroup/cpuset
+ test -n /sys/fs/cgroup/cpuset
++ cat /proc/1/cgroup
++ awk -F: '{ print $3 }'
++ head -1
+ init_cgroup=/
+ cd /sys/fs/cgroup/cpuset///lxc
+ ls -d -- demo_ubuntu_1204
demo_ubuntu_1204

So one copy is coming from the ls of /var/lib/lxc, the other is coming
from netstat -xa.

Why the two paths?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1043018

Title:
  lxc-ls lists running containers multiple times

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1043018] Re: lxc-ls lists running containers multiple times

2012-08-29 Thread Dan Kegel
That's necessary, but not sufficient.   There is still duplicate output even 
with that change.
lxc-ls first lists all containers with ls -- /var/lib/lxc, and then, 
inexplicably, also lists all active
containers with netstat.  Why the duplication?  Should it use sort -u?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1043018

Title:
  lxc-ls lists running containers multiple times

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1043018] Re: lxc-ls lists running containers multiple times

2012-08-29 Thread Dan Kegel
Then perhaps the bug is in the manpage, 
http://manpages.ubuntu.com/manpages/precise/en/man1/lxc-ls.1.html
which doesn't say anything about listing existing containers on one line, and 
active containers on a second line.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1043018

Title:
  lxc-ls lists running containers multiple times

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1042431] Re: lxc-start-ephemeral needs tweak to handle centos and fedora hostname setting

2012-08-28 Thread Dan Kegel
For completeness, here's a cleaner copy of the patch, along with the
centos script I'm using, from that same thread.

I haven't actually deployed yet, but it passes my little unit test.

** Patch added: 0001-Add-Centos-support-to-lxc-create.patch
   
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1042431/+attachment/3280828/+files/0001-Add-Centos-support-to-lxc-create.patch

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1042431

Title:
  lxc-start-ephemeral needs tweak to handle centos and fedora hostname
  setting

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1043004] [NEW] --bindhome option should be on lxc-create, not on lxc-ubuntu

2012-08-28 Thread Dan Kegel
Public bug reported:

The ubuntu template has a handy --bindhome option, but that's not very useful 
if you need to support
multiple guest OS's. 
That option should be hoisted out of the template and into lxc-create itself.

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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1043004

Title:
  --bindhome option should be on lxc-create, not on lxc-ubuntu

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1043018] [NEW] lxc-ls lists running containers multiple times

2012-08-28 Thread Dan Kegel
Public bug reported:

This seems wrong:

$ lxc-ls
demo_centos5  demo_centos6  demofedora16  demo_ubuntu_1004  demo_ubuntu_1204  
demo_ubuntu_1204-temp-NjwI1BQ  ubu12-bb-01-ubu12
ubu12-bb-01-ubu12  ubu12-bb-01-ubu12  ubu12-bb-01-ubu12  ubu12-bb-01-ubu12  
ubu12-bb-01-ubu12  ubu12-bb-01-ubu12  ubu12-bb-01-ubu12  ubu12-bb-01-ubu12
ubu12-bb-01-ubu12  ubu12-bb-01-ubu12  ubu12-bb-01-ubu12  ubu12-bb-01-ubu12  
ubu12-bb-01-ubu12  ubu12-bb-01-ubu12  ubu12-bb-01-ubu12  ubu12-bb-01-ubu12

Lessee: lxc-ls does
active=$(netstat -xa 2/dev/null | grep $lxcpath | \
sed -e 's#.*'$lxcpath/'\(.*\)/command#\1#');

which expands to

++ netstat -xa
++ grep /var/lib/lxc
++ sed -e 's#.*/var/lib/lxc/\(.*\)/command#\1#'
+ active='ubu12-bb-01-ubu12
ubu12-bb-01-ubu12
ubu12-bb-01-ubu12
ubu12-bb-01-ubu12
ubu12-bb-01-ubu12
ubu12-bb-01-ubu12
ubu12-bb-01-ubu12
...

netstat -xa | grep /var/lib/lxc shows
$ netstat -xa | grep /var/lib/lxc
unix  2  [ ACC ] STREAM LISTENING 1509155  
@/var/lib/lxc/ubu12-bb-01-ubu12/command
unix  2  [ ] STREAM CONNECTING0
@/var/lib/lxc/ubu12-bb-01-ubu12/command
unix  2  [ ] STREAM CONNECTING0
@/var/lib/lxc/ubu12-bb-01-ubu12/command
unix  3  [ ] STREAM CONNECTING0
@/var/lib/lxc/ubu12-bb-01-ubu12/command

So,  perhaps that should be grep LISTENING.*$lxcpath ?

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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1043018

Title:
  lxc-ls lists running containers multiple times

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1005951] Re: lxc-fedora template is broken with fedora 17

2012-08-27 Thread Dan Kegel
Yeah, this fixes download, but there are worse problems with fedora 
15:

--- lxc-fedora.orig 2012-08-27 14:08:55.870661264 -0700
+++ lxc-fedora  2012-08-27 14:09:01.93229 -0700
@@ -138,7 +138,12 @@
 echo Failed to get a mirror
 continue
 fi
-RELEASE_URL=$MIRROR_URL/Packages/fedora-release-$release-1.noarch.rpm
+if test $release -lt 17
+then
+
RELEASE_URL=$MIRROR_URL/Packages/fedora-release-$release-1.noarch.rpm
+else
+
RELEASE_URL=$MIRROR_URL/Packages/f/fedora-release-$release-1.noarch.rpm
+fi
 echo Fetching from $RELEASE_URL
 curl -f $RELEASE_URL  
$INSTALL_ROOT/fedora-release-$release.noarch.rpm
 if [ $? -ne 0 ]; then

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1005951

Title:
  lxc-fedora template is broken with fedora 17

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1042431] [NEW] lxc-start-ephemeral needs tweak to handle centos and fedora hostname setting

2012-08-27 Thread Dan Kegel
Public bug reported:

As discussed in the thread lxc template for RHEL?
http://sourceforge.net/mailarchive/message.php?msg_id=29730103
lxc-start-ephemeral only knows how to tweak the hostname for ubuntu and debian,
and needs to be taught about where rhel and centos put hostname, something like 
this:

--- lxc-start-ephemeral.orig2012-08-27 12:19:03.935513119 -0700
+++ lxc-start-ephemeral 2012-08-27 12:19:54.471514479 -0700
@@ -154,7 +154,19 @@
 LXC_MOUNTED=1

 # Update the ephemeral lxc's configuration to reflect the new
container name.
-sudo sed -i -e s/$LXC_BASE/$LXC_NAME/ $LXC_DIR/fstab $LXC_DIR/config 
$LXC_DIR/rootfs/etc/hostname $LXC_DIR/rootfs/etc/hosts
+# Check all the places known distros keep hostnames.
+# FIXME: should we sanity check the hostname to make sure it contains no 
bad chars?
+for file in $LXC_DIR/fstab $LXC_DIR/config \
+$LXC_DIR/rootfs/etc/hostname \
+$LXC_DIR/rootfs/etc/hosts \
+$LXC_DIR/rootfs/etc/sysconfig/network \
+$LXC_DIR/rootfs/etc/sysconfig/network-scripts/ifcfg-eth0
+do
+if test -f $file
+then
+sudo sed -i -e s/$LXC_BASE/$LXC_NAME/ $file
+fi
+done

 # Update the fstab to have all bind mounts be ephemeral.
 sudo cp $LXC_DIR/fstab $LXC_DIR/fstab.old

This affects 12.04 and the ppa for lxc, so probably also 12.10 alpha 3.

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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1042431

Title:
  lxc-start-ephemeral needs tweak to handle centos and fedora hostname
  setting

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1030534] [NEW] sftp -r remotedir . creates directories with wrong permissions

2012-07-29 Thread Dan Kegel
Public bug reported:

The local directories created by 
   sftp -r remotedir .
are unreadable by anybody, so when it tries to create anything in them, it 
fails.  Example:

$ sftp -r u...@host.com:foo foo
u...@host.com's password: 
Connected to host.com.
Fetching /foo/ to foo
Retrieving /foo
Retrieving /foo/www
mkdir foo/www: Permission denied

This is with Ubuntu 12.04, openssh-client   1:5.9p1-5ubuntu1

This is the second time I've ever used sftp.

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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1030534

Title:
  sftp -r remotedir . creates directories with wrong permissions

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 893735] [NEW] native support for X.509 v3 certificates in openssh

2011-11-22 Thread Dan Kegel
Public bug reported:

Some shops use x.509 certificates to restrict access to openssh.
(In fact, one shop I know of says that's how they kept a penetration tester 
from getting too far.)
Upstream openssh refuses to support that feature because they feel it would 
increase their attack surface (see 
http://lists.mindrot.org/pipermail/openssh-bugs/2008-June/006945.html ) and 
they encourage users who need this feature to apply the patch from Roumen ( 
http://roumenpetrov.info/openssh/ ).

Perhaps Ubuntu can package openssh-x509 as a separate package, so users
who ask for normal openssh aren't subjecting themselves to the increased
attack surface, and users who need it can get it.

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

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/893735

Title:
  native support for X.509 v3 certificates in openssh

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs