[Bug 1020179] [NEW] Add a timeout option to lxc-wait
Jean-Baptiste Lallement
jean-baptiste at ubuntu.com
Mon Jul 2 16:15:20 UTC 2012
Public bug reported:
Current implementation of lxc-wait wait forever until the container reach a states passed in argument.
If for some reason the container hangs (in my case it was blocking while trying to bind mount a device) lxc-wait never exit the wait loop.
It'd be nice to have a timeout option and exit with a non-zero exit status if it reaches the timeout, something like:
lx-wait -d DURATION -n NAME -s STATE
It's a wishlist item, timeout from coreutils can be used for this
purpose.
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: lxc 0.8.0~rc1-4ubuntu17
ProcVersionSignature: Ubuntu 3.5.0-2.2-generic 3.5.0-rc4
Uname: Linux 3.5.0-2-generic x86_64
ApportVersion: 2.2.5-0ubuntu1
Architecture: amd64
Date: Mon Jul 2 18:05:24 2012
ProcEnviron:
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: lxc
UpgradeStatus: Upgraded to quantal on 2012-01-31 (152 days ago)
** Affects: lxc (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apparmor apport-bug quantal running-unity uec-images
--
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/1020179
Title:
Add a timeout option to lxc-wait
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1020179/+subscriptions
More information about the Ubuntu-server-bugs
mailing list