[Bug 1253573] [NEW] [trusty regression] lxc-clone: failed to write /etc/hostname

Martin Pitt martin.pitt at ubuntu.com
Thu Nov 21 09:41:31 UTC 2013


Public bug reported:

The recent trusty lxc upload broke cloning:

$ sudo LANGUAGE= LANG= lxc-clone -n adttmp1 -o adt
/usr/share/lxc/hooks/ubuntu-cloud-prep: line 101: /usr/lib/x86_64-linux-gnu/lxc/etc/hostname: No such file or directory
failed to write /etc/hostname
lxc_container: Script exited with status 1
lxc_container: Error executing clone hook for adttmp1
clone failed

When I downgrade to saucy's 1.0.0~alpha1-0ubuntu14 things work again.

My "adt" container was created with saucy's lxc, but certainly newer
versions should work with already existing containers?

lxc-start-ephemeral continues to work fine.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: lxc 1.0.0~alpha3-0ubuntu1
ProcVersionSignature: Ubuntu 3.12.0-2.7-generic 3.12.0
Uname: Linux 3.12.0-2-generic x86_64
ApportVersion: 2.12.7-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Nov 21 10:38:44 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-10-14 (38 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Beta amd64 (20131013)
SourcePackage: lxc
UpgradeStatus: No upgrade log present (probably fresh install)
defaults.conf:
 lxc.network.type = veth
 lxc.network.link = lxcbr0
 lxc.network.flags = up

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


** Tags: amd64 apparmor apport-bug trusty

** Description changed:

  The recent trusty lxc upload broke cloning:
  
  $ sudo LANGUAGE= LANG= lxc-clone -n adttmp1 -o adt
  /usr/share/lxc/hooks/ubuntu-cloud-prep: line 101: /usr/lib/x86_64-linux-gnu/lxc/etc/hostname: No such file or directory
  failed to write /etc/hostname
  lxc_container: Script exited with status 1
  lxc_container: Error executing clone hook for adttmp1
  clone failed
  
  When I downgrade to saucy's 1.0.0~alpha1-0ubuntu14 things work again.
  
  My "adt" container was created with saucy's lxc, but certainly newer
  versions should work with already existing containers?
+ 
+ lxc-start-ephemeral continues to work fine.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: lxc 1.0.0~alpha3-0ubuntu1
  ProcVersionSignature: Ubuntu 3.12.0-2.7-generic 3.12.0
  Uname: Linux 3.12.0-2-generic x86_64
  ApportVersion: 2.12.7-0ubuntu1
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu Nov 21 10:38:44 2013
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2013-10-14 (38 days ago)
  InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Beta amd64 (20131013)
  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.type = veth
+  lxc.network.link = lxcbr0
+  lxc.network.flags = up

-- 
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/1253573

Title:
  [trusty regression] lxc-clone: failed to write /etc/hostname

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



More information about the Ubuntu-server-bugs mailing list