Quoting Robie Basak (1197...@bugs.launchpad.net):
Public bug reported:
A script cannot call lxc-start-ephemeral and get a named container in a
reliable, race-free way.
Having the caller specify a name directly is racy, since the name could
have been taken in between checking that it
On Fri, Jul 05, 2013 at 12:01:08PM -, Serge Hallyn wrote:
Practically speaking, have you actually created the container name with
mktemp (i.e. mktemp -u -t lxc-XX | sed 's@/tmp/@@') and gotten name
clashes?
No, but eyebrows were raised on my approach of generating a random name
on code
summary: lxc-start-ephemeral - provide terse -d output option
status: Triaged
importance: medium
--
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/1197754
Title:
lxc-start-ephemeral -d
Public bug reported:
A script cannot call lxc-start-ephemeral and get a named container in a
reliable, race-free way.
Having the caller specify a name directly is racy, since the name could
have been taken in between checking that it doesn't exist already and
calling lxc-start-ephemeral.