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

Bug #1253573 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Undecided
Stéphane Graber

Bug Description

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

Revision history for this message
Martin Pitt (pitti) wrote :
description: updated
Changed in lxc (Ubuntu):
status: New → Fix Committed
assignee: nobody → Stéphane Graber (stgraber)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 1.0.0~alpha3-0ubuntu2

---------------
lxc (1.0.0~alpha3-0ubuntu2) trusty; urgency=low

  * Cherry-pick fix for lxc-clone hook script environment variable.
    0001-lxcapi_clone-set-the-right-environment-variable-for-.patch
    (LP: #1253573)
 -- Stephane Graber <email address hidden> Thu, 21 Nov 2013 10:29:45 -0500

Changed in lxc (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.