lxc-clone fails with no useful information

Bug #1595619 reported by David Favor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

root@net8-rmt:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily

root@net8-rmt:~# uname -a
Linux net8-rmt.bizcooker.com 4.2.0-34-generic #39-Ubuntu SMP Thu Mar 10 22:13:01 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

root@net8-rmt:~# lxc-create --version
1.1.5

root@net8-rmt:~# lxc-ll
NAME STATE IPV4 IPV6 GROUPS AUTOSTART
-------------------------------------------------------------------
rmt-coachrev-dev RUNNING 10.0.3.250 - - YES
rmt-lightweight-vivid RUNNING 10.0.3.189 - - YES
rmt-mark-dev RUNNING 10.0.3.218 - - YES
rmt-si-main STOPPED - - - NO
rmt-si-main-precise RUNNING 10.0.3.187 - - YES
rmt-si-main-trusty STOPPED - - - NO
rmtcenter-dev RUNNING 10.0.3.65 - - YES
rmtcenter-prod RUNNING 10.0.3.229 - - YES

root@net8-rmt:~# lxc-clone -o rmt-si-main-precise -n rmt-si-main-precise-dev
clone failed

Clone seems to work when container is stopped, so my guess is container requires to be stopped before clone will work.

Be great if lxc-clone kicked out a message to "clone failed because original container is currently running", rather than "clone failed".

Revision history for this message
Christian Brauner (cbrauner) wrote :

LXC 1.1.* is deprecated and so is lxc-clone. Please switch to a newer LXC version and use lxc-copy. Thanks!

Changed in lxc (Ubuntu):
status: New → Won't Fix
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.