IBT-FMI / NeuroGentooProject

1 stars 0 forks source link

Cannot generate OpenStack image #7

Closed TheChymera closed 6 years ago

TheChymera commented 6 years ago

Generating an openstack image currently fails:

builder ~/NeuroGentooProject/BuildServer # ./exec.sh stemgentoo openstack_image
Loading global configuration
Loading configuration of machine stemgentoo
Executing openstack_image scripts for machine stemgentoo of type stemgentoo
executing scripts /root/NeuroGentooProject/BuildServer/scripts/openstack_image/stemgentoo/00-setup_env.sh /root/NeuroGentooProject/BuildServer/scripts/openstack_image/stemgentoo/10-prepare_image.sh /root/NeuroGentooProject/BuildServer/scripts/openstack_image/stemgentoo/15-mount_image.sh /root/NeuroGentooProject/BuildServer/scripts/openstack_image/stemgentoo/20-copy_image.sh /root/NeuroGentooProject/BuildServer/scripts/openstack_image/stemgentoo/30-alter_root.sh /root/NeuroGentooProject/BuildServer/scripts/openstack_image/stemgentoo/31-mount_image.sh /root/NeuroGentooProject/BuildServer/scripts/openstack_image/stemgentoo/34-copy_kernel_image.sh /root/NeuroGentooProject/BuildServer/scripts/openstack_image/stemgentoo/35-setup_openstack.sh.chroot /root/NeuroGentooProject/BuildServer/scripts/openstack_image/stemgentoo/36-change_password.sh /root/NeuroGentooProject/BuildServer/scripts/openstack_image/stemgentoo/40-generate_bootchain.sh /root/NeuroGentooProject/BuildServer/scripts/openstack_image/stemgentoo/50-restore_root.sh
Executing openstack_image/stemgentoo/00-setup_env.sh
Ensuring /root/NeuroGentooProject/BuildServer/roots/stemgentoo/root/../logs/openstack_image/ is a directory
Ensuring /root/NeuroGentooProject/BuildServer/roots/stemgentoo/root/../openstack_images/ is a directory
Calculating disk usage...
Got 1200172290 bytes, rounding off to 5 Gigabytes
Executing openstack_image/stemgentoo/10-prepare_image.sh
Ensuring /root/NeuroGentooProject/BuildServer/roots/stemgentoo/root/../logs/openstack_image/ is a directory
Allocating 5G for /root/NeuroGentooProject/BuildServer/roots/stemgentoo/root/../openstack_images//image_20180109
Setting up loopback
losetup: cannot find an unused loop device
Exiting
Cleaning up
Cleaning up after error
executing rm /root/NeuroGentooProject/BuildServer/roots/stemgentoo/root/../openstack_images//image_20180109
Exiting
Cleaning up
Cleaning up after error
executing rm /root/NeuroGentooProject/BuildServer/roots/stemgentoo/root/../openstack_images//image_20180109
rm: cannot remove '/root/NeuroGentooProject/BuildServer/roots/stemgentoo/root/../openstack_images//image_20180109': No such file or directory

Turns out the offending line of code is:

builder ~/NeuroGentooProject/BuildServer # losetup --show -f roots/stemgentoo/openstack_images/image_20180109
losetup: cannot find an unused loop device

This might be failing due to a problem with the kernel module:

builder ~/NeuroGentooProject/BuildServer # modprobe loop
modprobe: FATAL: Module loop not found in directory /lib/modules/4.14.8-gentoo-r1

@Doeme any input on this? IF you agree that this is the issue - how exactly did you integrate the kernel config into the generation of new images? We would want to make sure that all buildserver-type images will be created with a kernel which can build images.

Doeme commented 6 years ago

I extended the kernel config used by the Gentoo openstack team, but it is very minimal, so it probably doesn't have lodevs enabled.