images.linuxcontainers.org Debian sid image is broken

Bug #1590747 reported by Robie Basak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxd (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Using lxd 2.0.2-0ubuntu1~16.04.1 on Xenial.

"lxc launch ubuntu:xenial foo" works.
"lxc launch ubuntu:yakkety foo" does not work: it says "error: The requested image couldn't be found."
"lxc launch images:ubuntu/yakkety/amd64 foo" works.

"lxc launch images:debian/sid/amd64 foo" fails with":
error: Error calling 'lxd forkstart foo /var/lib/lxd/containers /var/log/lxd/foo/lxc.conf': err='exit status 1'
Try `lxc info --show-log foo` for more info

In that output I see:

            lxc 20160609115553.749 NOTICE lxc_start - start.c:start:1411 - exec'ing '/sbin/init'
            lxc 20160609115553.749 ERROR lxc_start - start.c:start:1414 - No such file or directory - failed to exec /sbin/init

If I look in /var/lib/lxd/images/<hash>.zfs, I see that rootfs/sbin/init does not exist, whereas it does for my working containers. So it seems to me that the Debian sid image as supplied by images.containers.org is broken.

Revision history for this message
Robie Basak (racb) wrote :

I should mention that the hash of the broken image is 9e974be4294f

Revision history for this message
Stéphane Graber (stgraber) wrote :

It's broken because a clean deboostrap of sid (unstable) doesn't seem to include a working init system at the moment.

root@dakara:/var/lib/lxd/containers/foo/rootfs# ls /sbin/init -l
lrwxrwxrwx 1 root root 20 May 12 05:39 /sbin/init -> /lib/systemd/systemd
root@dakara:/var/lib/lxd/containers/foo/rootfs# ls -lh lib/systemd/systemd
ls: cannot access 'lib/systemd/systemd': No such file or directory

As mentioned on https://images.linuxcontainers.org, those are unofficial images (not that Debian is publishing any official ones), are auto-generated and come with no guarantee whatsoever.

We do publish the past 3 images on the server though, you can get the hash of earlier builds by looking at "lxc image list images:". If the problem persists, you may want to file a bug report with Debian to fix unstable.

Changed in lxd (Ubuntu):
status: New → Invalid
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.