<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000">Update: <br>
<br>
As of
<a class="moz-txt-link-freetext" href="https://github.com/CentOS/sig-atomic-buildscripts/commit/44a145ebf65fd610103c8cec1aa50e7e6d1e079f">https://github.com/CentOS/sig-atomic-buildscripts/commit/44a145ebf65fd610103c8cec1aa50e7e6d1e079f</a>
Im now able to build and commit ostree (by executing
build_ostree_components.sh) - and installer images build step seems to
complete successfully.<br>
<br>
But imagefactory build fails when executing:<br>
<br>
rpm-ostree-toolbox imagefactory --overwrite --tdl
${GitDir}/atomic-7.1.tdl -c ${GitDir}/config.ini -i kvm -i
vagrant-libvirt -i vagrant-virtualbox -k ${GitDir}/atomic-7.1-cloud.ks
--vkickstart ${GitDir}/atomic-7.1-vagrant.ks -o ${BuildDir}/virt |&
tee ${LogFile}<br>
<span>
</span><br>
Debug info<br>
-------------------------------<br>
# Build host is CentOS 7.1 as Parallels Desktop 10 VM - with nested
virtualization for running imagefactory KVM VMs.<br>
<br>
# Error screenshot from imagefactory VM: <a class="moz-txt-link-freetext" href="http://prntscr.com/7ptic2">http://prntscr.com/7ptic2</a><br>
<br>
# HTTPServer log from build host:<br>
[root@nf-builder builddir]# Serving HTTP on 0.0.0.0 port 8000 ...<br>
192.168.122.1 - - [06/Jul/2015 23:41:19] "HEAD /installer/images/
HTTP/1.1" 200 -<br>
192.168.122.1 - - [06/Jul/2015 23:41:19] "HEAD
/installer/images//.treeinfo HTTP/1.1" 200 -<br>
192.168.122.1 - - [06/Jul/2015 23:41:19] "GET
/installer/images//.treeinfo HTTP/1.1" 200 -<br>
192.168.122.1 - - [06/Jul/2015 23:41:19] "HEAD
/installer/images/images/pxeboot/vmlinuz HTTP/1.1" 200 -<br>
192.168.122.1 - - [06/Jul/2015 23:41:19] "HEAD
/installer/images/images/pxeboot/initrd.img HTTP/1.1" 200 -<br>
192.168.122.236 - - [06/Jul/2015 23:41:44] "GET
/installer/images//.treeinfo HTTP/1.1" 200 -<br>
192.168.122.236 - - [06/Jul/2015 23:41:44] "GET
/installer/images//LiveOS/squashfs.img HTTP/1.1" 200 -<br>
192.168.122.236 - - [06/Jul/2015 23:41:52] code 404, message File not
found<br>
192.168.122.236 - - [06/Jul/2015 23:41:52] "GET
/installer/images//images/updates.img HTTP/1.1" 404 -<br>
192.168.122.236 - - [06/Jul/2015 23:41:52] code 404, message File not
found<br>
192.168.122.236 - - [06/Jul/2015 23:41:52] "GET
/installer/images//images/product.img HTTP/1.1" 404 -<br>
<br>
# Program log screenshot from Anaconda installer:
<a class="moz-txt-link-freetext" href="http://prntscr.com/7ptiz7">http://prntscr.com/7ptiz7</a><br>
<br>
# Anaconda log screenshot: <a class="moz-txt-link-freetext" href="http://prntscr.com/7ptjl0">http://prntscr.com/7ptjl0</a><br>
<br>
# Network ping test from imagefactory build VM to host 192.168.122.1:
<a class="moz-txt-link-freetext" href="http://prntscr.com/7ptk3w">http://prntscr.com/7ptk3w</a><br>
<br>
# Successful curl <a class="moz-txt-link-freetext" href="http://192.168.122.1:8000/repo/">http://192.168.122.1:8000/repo/</a> test from imagefactory
build VM : <a class="moz-txt-link-freetext" href="http://prntscr.com/7ptku6">http://prntscr.com/7ptku6</a><br>
<br>
# Ostreesetup line from kickstart:<br>
<br>
[root@nf-builder sig-atomic-buildscripts]# cat atomic-7.1-cloud.ks |
grep ostreesetup<br>
ostreesetup --osname="centos-atomic-host" --remote="centos-atomic-host"
--ref="centos-atomic-host/7/x86_64/standard"
--url=<a class="moz-txt-link-rfc2396E" href="http://192.168.122.1:8000/repo/">"http://192.168.122.1:8000/repo/"</a> --nogpg<br>
<br>
# Installer images:<br>
[root@nf-builder sig-atomic-buildscripts]# ls -lh
/srv/builddir/installer/images/images/<br>
total 686M<br>
-rw-r--r-- 1 root root 6.3M Jul 7 01:00 efiboot.img<br>
-rw-r--r-- 1 root root 680M Jul 7 01:00 installer.iso<br>
drwxr-xr-x 2 root root 55 Jul 7 01:00 pxeboot<br>
<br>
[root@nf-builder sig-atomic-buildscripts]# ls -lh
/srv/builddir/installer/images/LiveOS/<br>
total 594M<br>
-rw-r--r-- 1 root root 594M Jul 7 00:56 squashfs.img<br>
<br>
<br>
Any ideas why anaconda gets "connection refused" in ostreesetup step?<br>
Any ideas how to debug it further?<br>
<br>
Kind regards,<br>
<br>
-- <br>
<div><a href="http://www.getpostbox.com"><span><span style="color:
rgb(34, 34, 34); font-family: arial; font-size: small; font-style:
normal; font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; orphans: auto; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal; widows:
auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255); display: inline !important; float:
none;"></span></span></a>----------------------------------------------<span><br
style="color: rgb(34, 34, 34); font-family: arial; font-size: small;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: auto; text-align:
start; text-indent: 0px; text-transform: none; white-space: normal;
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><p
style="color: rgb(34, 34, 34); font-family: arial; font-size: small;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
word-spacing: 0px;">Andres Toomsalu,<span class="Apple-converted-space"> </span><a
href="mailto:andres@opennodecloud.com" target="_blank" style="color:
rgb(17, 85, 204);">andres@opennodecloud.com</a><br>
</p>
</span></div>
<br>
<br>
<blockquote style="border: 0px none;"
cite="mid:558ED6F5.8090107@opennodecloud.com" type="cite">
<div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true" href="mailto:andres@opennodecloud.com"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">Andres Toomsalu</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">27. juuni 2015
20:01</span></font></div> </div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody">
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
Hi,<br>
<br>
Im trying to do custom centos-atomic-host build - from unmodified
<a moz-do-not-send="true"
href="https://github.com/CentOS/sig-atomic-buildscripts"
class="moz-txt-link-freetext">https://github.com/CentOS/sig-atomic-buildscripts</a>
configuration source
and following instruction in
<a moz-do-not-send="true"
href="https://developerblog.redhat.com/2015/01/08/creating-custom-atomic-trees-images-and-installers-part-1/"
class="moz-txt-link-freetext">https://developerblog.redhat.com/2015/01/08/creating-custom-atomic-trees-images-and-installers-part-1/</a>
blog post series.<br>
<br>
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. <br>
More details about this problem here:
<a moz-do-not-send="true"
href="https://github.com/projectatomic/rpm-ostree-toolbox/issues/77"
class="moz-txt-link-freetext">https://github.com/projectatomic/rpm-ostree-toolbox/issues/77</a><br>
<br>
Commands used for ostree and installer creation were:<br>
---<br>
rpm-ostree-toolbox treecompose -c
~/repos/sig-atomic-buildscripts/config.ini --ostreerepo
/srv/rpm-ostree/centos-atomic-host/7/<br>
<br>
rpm-ostree-toolbox installer -c
/root/repos/sig-atomic-buildscripts/config.ini \<br>
--ostreerepo /srv/rpm-ostree/centos-atomic-host/7/ \<br>
--outputdir /var/www/html/latest/ --overwrite<br>
<br>
cp ~/repos/sig-atomic-buildscripts/centos-atomic-host-7.ks
/var/www/html/ <br>
virt-install --name=atomic-iso --memory=1024 --vcpus=1 \<br>
--disk=/var/lib/libvirt/images/test.qcow2,size=5 \<br>
--location /var/www/html/latest/images/installer.iso \<br>
--noautoconsole --accelerate --os-type=linux --os-variant=rhel7 \<br>
--extra-args "ks=<a moz-do-not-send="true"
href="http://192.168.122.1/centos-atomic-host-7.ks"
class="moz-txt-link-freetext">http://192.168.122.1/centos-atomic-host-7.ks</a>"<br>
---<br>
<br>
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...<br>
<br>
Command used for kvm image creation:<br>
---<br>
rpm-ostree-toolbox imagefactory \<br>
-c /root/repos/sig-atomic-buildscripts/config.ini -i kvm \<br>
--ostreerepo /srv/rpm-ostree/centos-atomic-host/7/ \<br>
--outputdir /srv/rpm-ostree/centos-atomic-host/7/images<br>
---<br>
<br>
Error screenshot from imagefactory launched build VM console: <br>
<a moz-do-not-send="true" href="http://prntscr.com/7lq38e"
class="moz-txt-link-freetext">http://prntscr.com/7lq38e</a><br>
<br>
>From the build VM /tmp/anaconda.log:<br>
---<br>
21:40:35,454 INFO anaconda: Creating xfs on /dev/vda1<br>
21:40:36,242 INFO anaconda: executing
ostreesetup=<pykickstart.commands.ostreesetup.RHEL7_OSTreeSetup
object at 0x7fdd038d3110><br>
21:40:36,570 ERR anaconda: Failed to pull from repository: Server
returned status 404: Not Found<br>
---<br>
<br>
Last lines from the build VM /tmp/program.log:<br>
---<br>
21:40:36,339 INFO program: Running... ostree
--repo=/mnt/sysimage/ostree/repo remote add --set=gpg-verify=false
installmedia <a moz-do-not-send="true"
href="http://192.168.122.1:47990/" class="moz-txt-link-freetext">http://192.168.122.1:47990/</a><br>
21:40:36,377 DEBUG program: Return code: 0<br>
---<br>
<br>
Any suggestions how to debug it further? Where should I file a bug
report?<br>
<br>
Kind regards,<br>
</div>
</blockquote>
<br>
<div class="moz-signature"><br>
</div>
</body></html>