fanatic does not use the correct LXD command to import image for fanatic-test container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-fan (Ubuntu) |
Fix Released
|
Critical
|
Andy Whitcroft | ||
Xenial |
Fix Released
|
Critical
|
Andy Whitcroft |
Bug Description
Something I noticed while trying to use fanatic (see related bug 1584692):
/usr/sbin/fanatic: 808: /usr/sbin/fanatic: lxd-images: not found
Because of this the lxd test cannot spin up the test container, as it can't import the image.
I managed to get it to work by patching fanatic like this:
---
# Check if we have images already...
lxc image show fanatic-test >/dev/null 2>&1
if [ "$?" -ne 0 ]; then
lxc image copy ubuntu:xenial local: --alias fanatic-test
if [ "$rc" -ne 0 ]; then
fi
fi
---
There's no lxd-images on my machine and I suspect it used to be one in an earlier version of the LXD package. I'm using lxd 2.0.1-0ubuntu1~16 amd64
ubuntu-fan is 0.9.0
===
[Impact]
LXC has changed how images are fetched. Preventing testing of a new install.
[Test Case]
Setup the default fan overlay/underlay and request LXC testing.
[Regression Potential]
Low, this is only used during initial setup.
Changed in ubuntu-fan (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Critical |
assignee: | nobody → Andy Whitcroft (apw) |
Changed in ubuntu-fan (Ubuntu Xenial): | |
status: | New → In Progress |
importance: | Undecided → Critical |
assignee: | nobody → Andy Whitcroft (apw) |
description: | updated |
This bug was fixed in the package ubuntu-fan - 0.10.0
---------------
ubuntu-fan (0.10.0) yakkety; urgency=medium
[ Andy Whitcroft ]
* fanatic: fix legacy command line form syntax error (LP: #1584150)
* fanctl/fanatic: add help commands/options with initial pointers
(LP: #1535054)
[ Jay Vosburgh ]
* fanatic: fix underlay with calculation (LP: #1584092)
[ Andy Whitcroft ]
* fanctl/fanatic: remove invalid web reference from manual pages.
(LP: #1582956)
* debian/control: fix use of obsolete > operator
* fanatic: detect user specified underlay address without overlay
(LP: #1584692)
* fanatic: switch from lxd-images to using cached lxc images. (LP: #1584775)
* fanctl.8: fix interfane type (LP: #1584845)
* fanatic: test-host -- use the selected underlay width to calculate the remote addresses
(LP: #1584878)
-- Andy Whitcroft <email address hidden> Mon, 23 May 2016 22:05:19 +0100