charliemaiors / freebsd-openstack-image

Files for build FreeBSD Openstack Image using cloudware and FreeBSD build system
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Problem uploading image #1

Closed rainerduffner closed 5 years ago

rainerduffner commented 5 years ago

Hi,

I'm trying to run this on a FreeBSD 12.0-RELEASE-p3 host.

After make cloudware-release WITH_CLOUDWARE=yes CLOUDWARE=OPENSTACK

I get (at the end):

===> etc/sendmail (installconfig)
*** Saving mtree database for future upgrades
chroot: /usr/bin/newaliases: No such file or directory
chroot: /etc/rc.d/ldconfig: No such file or directory
chroot: env: No such file or directory
chroot: env: No such file or directory
grep: /usr/obj/usr/src/amd64.amd64/release/cw-openstack/usr/local/etc/cloud/cloud.cfg: No such file or directory
Configuring Cloud Init
sed: /usr/obj/usr/src/amd64.amd64/release/cw-openstack/usr/local/etc/cloud/cloud.cfg: No such file or directory
Configuring rsyslog
cp: /usr/obj/usr/src/amd64.amd64/release/cw-openstack/etc/syslog.conf: No such file or directory
umount: /usr/obj/usr/src/amd64.amd64/release/cw-openstack: not a file system root directory
umount: /usr/obj/usr/src/amd64.amd64/release/cw-openstack: not a file system root directory
umount: /usr/obj/usr/src/amd64.amd64/release/cw-openstack: not a file system root directory
umount: /usr/obj/usr/src/amd64.amd64/release/cw-openstack: not a file system root directory
umount: /usr/obj/usr/src/amd64.amd64/release/cw-openstack: not a file system root directory
umount: /usr/obj/usr/src/amd64.amd64/release/cw-openstack: not a file system root directory
umount: /usr/obj/usr/src/amd64.amd64/release/cw-openstack: not a file system root directory
umount: /usr/obj/usr/src/amd64.amd64/release/cw-openstack: not a file system root directory
umount: /usr/obj/usr/src/amd64.amd64/release/cw-openstack: not a file system root directory
umount: /usr/obj/usr/src/amd64.amd64/release/cw-openstack: not a file system root directory
Cannot umount(8) /usr/obj/usr/src/amd64.amd64/release/cw-openstack
Something has gone horribly wrong.
mdconfig: ioctl(/dev/mdctl): No such file or directory
/dev/md1: 2048.0MB (4194304 sectors) block size 32768, fragment size 4096
        using 4 cylinder groups of 512.03MB, 16385 blks, 65664 inodes.
super-block backups (for fsck_ffs -b #) at:
 192, 1048832, 2097472, 3146112
tunefs: soft updates set
Creating image...  Please wait.

touch cw-openstack

Then, after trying to upload it:

bsd1-build-prod# make openstack-upload
--------------------------------------------------------------
>>> PS1 must be specified for Openstack Image Upload
--------------------------------------------------------------
*** Error code 1

Stop.
make: stopped in /usr/src/release

I uploaded the image and created an instance. When I boot this instance, it panics because the boot device can't be found.

Any ideas?

rainerduffner commented 5 years ago

image

charliemaiors commented 5 years ago

Hey, thanks for the feedback,

Regarding the PS1 is useless, do you have built kernel and userland before the image creation process? Do you run any command as root? I'm trying to reproduce the error with the latest release (I've the 12.0-RELEASE-p2)

rainerduffner commented 5 years ago

Yes, I have build both buildworld and buildkernel. I run everything as root.

I could give you the image, if you want to have a look?

rainerduffner commented 5 years ago
   10  pwd
   11  make buildworld buildkernel
   12  pwd
   13  cd release
   14  make cloudware-release WITH_CLOUDWARE=yes CLOUDWARE=OPENSTACK
   15  make cloudware-release WITH_CLOUDWARE=yes CLOUDWARE=OPENSTACK
   16  make cloudware-release WITH_CLOUDWARE=yes CLOUDWARE=OPENSTACK
   17  make cloudware-release WITH_CLOUDWARE=yes CLOUDWARE=OPENSTACK
   18  make openstack-upload

I had to run the command multiple times because something didn't work (don't remember exactly). Than I had to empty out the /usr/obj/usr/src/amd64.amd64/release/ folder or it wouldn't rebuild the image...

I could start from scratch, but it takes several hours to build world and kernel....

I use csh for my root-shell.

charliemaiors commented 5 years ago

Do you have a custom kernel? Currently, I'm rebuilding kernel and userland on two different machines, when the compilation finish I will make the image and upload it. Then test it.

rainerduffner commented 5 years ago

No, I try to avoid custom kernels etc - because I want to be able to use official FreeBSD binary updates. The only thing I do is build custom packages, though 98% of them with the default options.

charliemaiors commented 5 years ago

Custom packages are not a problem for sure. I've updated both of my FreeBSD boxes and I'm rebuilding kernel and userland. The errors that you have on make cloudware-release WITH_CLOUDWARE=yes CLOUDWARE=OPENSTACK are strange. Seems that userland is broken, but this is my personal think. I will try first to reproduce the problem.

rainerduffner commented 5 years ago

I'll do a make clean and wipe /usr/obj and then start from scratch. It'll be ready by tomorrow.

I'll report back.

charliemaiors commented 5 years ago

Perfect thanks, also mine will be ready by tomorrow (hopefully)

charliemaiors commented 5 years ago

Ok one box fails, but the other one made it! I will start digging into differences...

rainerduffner commented 5 years ago

I got the same errors again, from a clean build.

I've got a script-file of the make cloudware-release WITH_CLOUDWARE=yes CLOUDWARE=OPENSTACK && make openstack-upload

output - if you want it.

charliemaiors commented 5 years ago

Ok try to run ldconfig, then re-run make cloudware-release WITH_CLOUDWARE=yes CLOUDWARE=OPENSTACK && make openstack-upload.

charliemaiors commented 5 years ago

any news?

charliemaiors commented 5 years ago

No news after one week closing the issue