kernel-packages team mailing list archive
-
kernel-packages team
-
Mailing list archive
-
Message #187781
[Bug 1584775] Re: fanatic does not use the correct LXD command to import image for fanatic-test container
** Description changed:
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
- echo "local lxd test: pulling container images ..."
- lxc image copy ubuntu:xenial local: --alias fanatic-test
- local rc="$?"
- if [ "$rc" -ne 0 ]; then
- echo "local lxd test: lxc image import failure, skipping test."
- return "$rc"
- fi
- fi
+ # Check if we have images already...
+ lxc image show fanatic-test >/dev/null 2>&1
+ if [ "$?" -ne 0 ]; then
+ echo "local lxd test: pulling container images ..."
+ lxc image copy ubuntu:xenial local: --alias fanatic-test
+ local rc="$?"
+ if [ "$rc" -ne 0 ]; then
+ echo "local lxd test: lxc image import failure, skipping test."
+ return "$rc"
+ 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.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to ubuntu-fan in Ubuntu.
https://bugs.launchpad.net/bugs/1584775
Title:
fanatic does not use the correct LXD command to import image for
fanatic-test container
Status in ubuntu-fan package in Ubuntu:
Fix Released
Status in ubuntu-fan source package in Xenial:
In Progress
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
echo "local lxd test: pulling container images ..."
lxc image copy ubuntu:xenial local: --alias fanatic-test
local rc="$?"
if [ "$rc" -ne 0 ]; then
echo "local lxd test: lxc image import failure, skipping test."
return "$rc"
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-fan/+bug/1584775/+subscriptions
References