lxc-clone fails with no useful information
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.
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
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-
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".
LXC 1.1.* is deprecated and so is lxc-clone. Please switch to a newer LXC version and use lxc-copy. Thanks!