[CentOS-devel] Problems with custom centos-atomic-host build

Andres Toomsalu

andres at opennodecloud.com
Sat Jun 27 17:01:41 UTC 2015


Hi,

Im trying to do custom centos-atomic-host build - from unmodified 
https://github.com/CentOS/sig-atomic-buildscripts configuration source 
and following instruction in 
https://developerblog.redhat.com/2015/01/08/creating-custom-atomic-trees-images-and-installers-part-1/ 
blog post series.

Im able to produce ostree and installer.iso image - BUT 
rpm-ostree-toolbox creates ostree tree with missing grub file, resulting 
in a failing installer.
More details about this problem here: 
https://github.com/projectatomic/rpm-ostree-toolbox/issues/77

Commands used for ostree and installer creation were:
---
rpm-ostree-toolbox treecompose -c 
~/repos/sig-atomic-buildscripts/config.ini --ostreerepo 
/srv/rpm-ostree/centos-atomic-host/7/

rpm-ostree-toolbox installer -c 
/root/repos/sig-atomic-buildscripts/config.ini \
     --ostreerepo /srv/rpm-ostree/centos-atomic-host/7/ \
     --outputdir /var/www/html/latest/ --overwrite

cp ~/repos/sig-atomic-buildscripts/centos-atomic-host-7.ks /var/www/html/
virt-install --name=atomic-iso --memory=1024 --vcpus=1 \
     --disk=/var/lib/libvirt/images/test.qcow2,size=5 \
     --location /var/www/html/latest/images/installer.iso \
     --noautoconsole --accelerate --os-type=linux --os-variant=rhel7 \
     --extra-args "ks=http://192.168.122.1/centos-atomic-host-7.ks"
---

Another issue is that also imagefactory KVM centos-atomic-host image 
build fails in anaconda install stage - complaining about unknown 
missing file - might be the same problem - not sure...

Command used for kvm image creation:
---
rpm-ostree-toolbox imagefactory \
     -c /root/repos/sig-atomic-buildscripts/config.ini -i kvm \
     --ostreerepo /srv/rpm-ostree/centos-atomic-host/7/ \
     --outputdir /srv/rpm-ostree/centos-atomic-host/7/images
---

Error screenshot from imagefactory launched build VM console:
http://prntscr.com/7lq38e

 From the build VM /tmp/anaconda.log:
---
21:40:35,454 INFO anaconda: Creating xfs on /dev/vda1
21:40:36,242 INFO anaconda: executing 
ostreesetup=<pykickstart.commands.ostreesetup.RHEL7_OSTreeSetup object 
at 0x7fdd038d3110>
21:40:36,570 ERR anaconda: Failed to pull from repository: Server 
returned status 404: Not Found
---

Last lines from the build VM /tmp/program.log:
---
21:40:36,339 INFO program: Running... ostree 
--repo=/mnt/sysimage/ostree/repo remote add --set=gpg-verify=false 
installmedia http://192.168.122.1:47990/
21:40:36,377 DEBUG program: Return code: 0
---

Any suggestions how to debug it further? Where should I file a bug report?

Kind regards,
-- 
<http://www.getpostbox.com>----------------------------------------------

Andres Toomsalu,andres at opennodecloud.com <mailto:andres at opennodecloud.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20150627/e2447ad5/attachment-0003.html>


More information about the CentOS-devel mailing list