Advertisement
Guest User

rpm-ostree-toolbox imagefactory

a guest
Oct 27th, 2015
193
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [root@localhost atomic]# rpm-ostree-toolbox imagefactory -c fedora-atomic/config.ini -o output -i kvm -k fedora-cloud-atomic.ks --tdl fedora-atomic/fedora-atomic-22.tdl --ostreerepo repo
  2. workdir=/tmp/atomic-treecomposeQwov9S.tmp
  3. rpmostree_cache_dir=None
  4. pkgdatadir=/usr/share/rpm-ostree-toolbox
  5. os_name=fedora-atomic
  6. os_pretty_name=Fedora Atomic
  7. tree_name=docker-host
  8. tree_file=/home/atomic/fedora-atomic/fedora-atomic-docker-host.json
  9. arch=ppc64le
  10. release=f22
  11. ref=fedora-atomic/f22/ppc64le/docker-host
  12. yum_baseurl=https://dl.fedoraproject.org/pub/fedora/linux/releases/22/Everything/ppc64le/os/
  13. lorax_additional_repos=None
  14. is_final=None
  15. lorax_exclude_packages=None
  16. lorax_include_packages=fedora-productimg-atomic
  17. local_overrides=None
  18. http_proxy=None
  19. selinux=True
  20. configdir=/home/atomic/fedora-atomic
  21. docker_os_name=fedora
  22. trivial httpd port=57893, pid=27486
  23. Oz overrides: {'libvirt': {'image_type': 'qcow2', 'cpus': '2', 'memory': 2048}}
  24. Running: ksflatten --version F21 -c fedora-cloud-atomic.ks -o /tmp/atomic-treecomposeQwov9S.tmp/fedora-cloud-atomic.ks
  25. Starting build
  26. No SecondaryDispatcher present - Use of secondary factories is not enabled
  27. Created file /var/lib/imagefactory/storage/23a4ab90-978d-4b7f-b618-01f771aad5c7.meta
  28. Created file /var/lib/imagefactory/storage/23a4ab90-978d-4b7f-b618-01f771aad5c7.body
  29. Getting metadata in class (<class 'imgfac.BaseImage.BaseImage'>) my metadata is (())
  30. Executing metadata in class (<class 'imgfac.BaseImage.BaseImage'>) my metadata is (('identifier', 'data', 'template', 'icicle', 'status_detail', 'status', 'percent_complete', 'parameters', 'properties'))
  31. Saved metadata for image (23a4ab90-978d-4b7f-b618-01f771aad5c7): {'status': 'NEW', 'identifier': '23a4ab90-978d-4b7f-b618-01f771aad5c7', 'parameters': {'oz_overrides': '{"libvirt": {"image_type": "qcow2", "cpus": "2", "memory": 2048}}', 'install_script': '#version=F21\n# Keyboard layouts\nkeyboard \'us\'\n# Reboot after installation\nreboot\n# Root password\nrootpw --iscrypted --lock locked\n# System timezone\ntimezone Etc/UTC --isUtc\n# System language\nlang en_US.UTF-8\nuser --name=none\n# Firewall configuration\nfirewall --disabled\n# Network information\nnetwork --bootproto=dhcp --device=link --activate\n# OSTree setup\nostreesetup --osname="fedora-atomic" --remote="fedora-atomic" --url="http://192.168.122.195:40015" --ref="fedora-atomic/f22/x86_64/docker-host" --nogpg\n# System authorization information\nauth --useshadow --enablemd5\n# Use text mode install\ntext\n# SELinux configuration\nselinux --enforcing\n\n# System services\nservices --disabled="network" --enabled="sshd,rsyslog,cloud-init,cloud-init-local,cloud-config,cloud-final"\n# System bootloader configuration\nbootloader --append="no_timer_check console=tty1 console=ttyS0,115200n8" --location=mbr --timeout=1\n# Clear the Master Boot Record\nzerombr\n# Partition clearing information\nclearpart --all\n# Disk partitioning information\npart /boot --fstype="ext4" --size=300\npart pv.01 --grow\nvolgroup atomicos pv.01\nlogvol / --fstype="xfs" --size=3000 --name=root --vgname=atomicos\n\n%post --erroronfail\n# See https://github.com/projectatomic/rpm-ostree/issues/42\nostree remote delete fedora-atomic\nostree remote add --set=gpg-verify=false fedora-atomic \'http://192.168.122.195:40015\'\n\n# older versions of livecd-tools do not follow "rootpw --lock" line above\n# https://bugzilla.redhat.com/show_bug.cgi?id=964299\npasswd -l root\n# remove the user anaconda forces us to make\nuserdel -r none\n\n# We can lead the way with the internal DHCP, see\n# https://lists.fedoraproject.org/pipermail/cloud/2015-March/005119.html\necho "dhcp=internal" >> /etc/NetworkManager/NetworkManager.conf\n\necho -n "Getty fixes"\n# although we want console output going to the serial console, we don\'t\n# actually have the opportunity to login there. FIX.\n# we don\'t really need to auto-spawn _any_ gettys.\nsed -i \'/^#NAutoVTs=.*/ a\\\nNAutoVTs=0\' /etc/systemd/logind.conf\n\n# For cloud images, \'eth0\' _is_ the predictable device name, since\n# we don\'t want to be tied to specific virtual (!) hardware\nrm -f /etc/udev/rules.d/70*\nln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules\n\n# simple eth0 config, again not hard-coded to the build hardware\ncat > /etc/sysconfig/network-scripts/ifcfg-eth0 << EOF\nDEVICE="eth0"\nBOOTPROTO="dhcp"\nONBOOT="yes"\nTYPE="Ethernet"\nPERSISTENT_DHCLIENT="yes"\nEOF\n\n# generic localhost names\ncat > /etc/hosts << EOF\n127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4\n::1 localhost localhost.localdomain localhost6 localhost6.localdomain6\n\nEOF\necho .\n\n\n# Because memory is scarce resource in most cloud/virt environments,\n# and because this impedes forensics, we are differing from the Fedora\n# default of having /tmp on tmpfs.\necho "Disabling tmpfs for /tmp."\nsystemctl mask tmp.mount\n\n# make sure firstboot doesn\'t start\necho "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot\n\n# Uncomment this if you want to use cloud init but suppress the creation\n# of an "ec2-user" account. This will, in the absence of further config,\n# cause the ssh key from a metadata source to be put in the root account.\n#cat <<EOF > /etc/cloud/cloud.cfg.d/50_suppress_ec2-user_use_root.cfg\n#users: []\n#disable_root: 0\n#EOF\n\necho "Removing random-seed so it\'s not the same in every image."\nrm -f /var/lib/random-seed\n\necho "Packages within this cloud image:"\necho "-----------------------------------------------------------------------"\nrpm -qa\necho "-----------------------------------------------------------------------"\n# Note that running rpm recreates the rpm db files which aren\'t needed/wanted\nrm -f /var/lib/rpm/__db*\n\necho "Zeroing out empty space."\n# This forces the filesystem to reclaim space from deleted files\ndd bs=1M if=/dev/zero of=/var/tmp/zeros || :\nrm -f /var/tmp/zeros\necho "(Don\'t worry -- that out-of-space error was expected.)"\n\n%end\n', 'generate_icicle': False}, 'icicle': None, 'data': u'/var/lib/imagefactory/storage/23a4ab90-978d-4b7f-b618-01f771aad5c7.body', 'status_detail': {'error': None, 'activity': 'Initializing image prior to Cloud/OS customization'}, 'template': "<template>\n <name>22</name>\n <os>\n <name>Fedora</name>\n <version>22</version>\n <arch>ppc64le</arch>\n <install type='url'>\n <url>https://archive.fedoraproject.org/pub/fedora-secondary/releases/22/Server/ppc64le/os/</url>\n </install>\n <rootpw>ewwwwwww</rootpw>\n </os>\n</template>\n\n", 'percent_complete': 0, 'type': 'BaseImage', 'properties': {}}
  32. Attempting to match list target (['Fedora', '22', 'ppc64le'])
  33. create_base_image() called for TinMan plugin - creating a BaseImage
  34. =============== Final Oz Config ================
  35. [ paths ]
  36. output_dir = /var/lib/imagefactory/images
  37. data_dir = /var/lib/oz
  38. screenshot_dir = /var/lib/oz/screenshots
  39. [ libvirt ]
  40. uri = qemu:///system
  41. image_type = qcow2
  42. cpus = 2
  43. memory = 2048
  44. [ cache ]
  45. original_media = yes
  46. modified_media = no
  47. jeos = no
  48. [ icicle ]
  49. safe_generation = no
  50. libvirt bridge name is virbr0
  51. Libvirt type is kvm
  52. Name: factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7, UUID: 4c308da0-16c5-4238-8c91-944d57e4b3de
  53. MAC: 52:54:00:6d:ad:81, distro: Fedora
  54. update: 22, arch: ppc64le, diskimage: /var/lib/imagefactory/images/factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7.qcow2
  55. nicmodel: virtio, clockoffset: utc
  56. mousetype: ps2, disk_bus: virtio, disk_dev: vda
  57. icicletmp: /var/lib/oz/icicletmp/factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7, listen_port: 10785
  58. Original ISO path: /var/lib/oz/isos/Fedora22ppc64le-url.iso
  59. Modified ISO cache: /var/lib/oz/isos/Fedora22ppc64le-url-oz.iso
  60. Output ISO path: /var/lib/imagefactory/images/factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7-url-oz.iso
  61. ISO content path: /var/lib/oz/isocontent/factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7-url
  62. ==== WARN: TDL contains Fedora update 22, which is newer than Oz knows about; pretending this is Fedora 21, but this may fail ====
  63. Cleaning up any old Oz guest
  64. Cleaning up guest named factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7
  65. Generating JEOS install media
  66. Grabbing named lock (Fedora-22-ppc64le-url)
  67. Got named lock (Fedora-22-ppc64le-url)
  68. Installtype is URL, trying to do direct kernel boot
  69. Going to write treeinfo to /var/lib/oz/icicletmp/factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7/treeinfo
  70. Trying to get treeinfo from https://archive.fedoraproject.org/pub/fedora-secondary/releases/22/Server/ppc64le/os//.treeinfo
  71. Got treeinfo, parsing
  72. Returning kernel ppc/ppc64/vmlinuz and initrd ppc/ppc64/initrd.img
  73. Attempting to get the lock for /var/lib/oz/kernels/Fedora22ppc64le-kernel
  74. Got the lock for /var/lib/oz/kernels/Fedora22ppc64le-kernel
  75. Fetching the original media
  76. Original install media available, using cached version
  77. Attempting to get the lock for /var/lib/oz/kernels/Fedora22ppc64le-ramdisk
  78. Got the lock for /var/lib/oz/kernels/Fedora22ppc64le-ramdisk
  79. Fetching the original media
  80. Original install media available, using cached version
  81. Putting the kickstart in place
  82. Writing cpio to /var/lib/oz/icicletmp/factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7/extra.cpio
  83. Releasing named lock (Fedora-22-ppc64le-url)
  84. Generating JEOS disk image
  85. Generating 10GB diskimage for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7
  86. Execute JEOS install
  87. Running install for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7
  88. Generate XML for guest factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 with bootdev None
  89. Generated XML:
  90. <domain type="kvm">
  91. <name>factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7</name>
  92. <memory>2097152</memory>
  93. <currentMemory>2097152</currentMemory>
  94. <uuid>4c308da0-16c5-4238-8c91-944d57e4b3de</uuid>
  95. <clock offset="utc"/>
  96. <vcpu>2</vcpu>
  97. <features>
  98. <acpi/>
  99. <apic/>
  100. <pae/>
  101. </features>
  102. <os>
  103. <type>hvm</type>
  104. <kernel>/var/lib/imagefactory/images/factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7-kernel</kernel>
  105. <initrd>/var/lib/imagefactory/images/factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7-ramdisk</initrd>
  106. <cmdline>method=https://archive.fedoraproject.org/pub/fedora-secondary/releases/22/Server/ppc64le/os/ ks=file:/ks.cfg</cmdline>
  107. </os>
  108. <on_poweroff>destroy</on_poweroff>
  109. <on_reboot>destroy</on_reboot>
  110. <on_crash>destroy</on_crash>
  111. <devices>
  112. <graphics type="vnc" port="-1"/>
  113. <interface type="bridge">
  114. <source bridge="virbr0"/>
  115. <mac address="52:54:00:6d:ad:81"/>
  116. <model type="virtio"/>
  117. </interface>
  118. <input bus="ps2" type="mouse"/>
  119. <serial type="pty">
  120. <target port="0"/>
  121. </serial>
  122. <serial type="tcp">
  123. <source host="127.0.0.1" mode="bind" service="28509"/>
  124. <protocol type="raw"/>
  125. <target port="1"/>
  126. </serial>
  127. <disk device="disk" type="file">
  128. <target bus="virtio" dev="vda"/>
  129. <source file="/var/lib/imagefactory/storage/23a4ab90-978d-4b7f-b618-01f771aad5c7.body"/>
  130. <driver type="qcow2" name="qemu"/>
  131. </disk>
  132. </devices>
  133. </domain>
  134.  
  135. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3600/3600
  136. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3590/3600
  137. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3580/3600
  138. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3570/3600
  139. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3560/3600
  140. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3550/3600
  141. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3540/3600
  142. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3530/3600
  143. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3520/3600
  144. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3510/3600
  145. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3500/3600
  146. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3490/3600
  147. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3480/3600
  148. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3470/3600
  149. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3460/3600
  150. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3450/3600
  151. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3440/3600
  152. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3430/3600
  153. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3420/3600
  154. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3410/3600
  155. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3400/3600
  156. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3390/3600
  157. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3380/3600
  158. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3370/3600
  159. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3360/3600
  160. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3350/3600
  161. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3340/3600
  162. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3330/3600
  163. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3320/3600
  164. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3310/3600
  165. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3300/3600
  166. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3290/3600
  167. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3280/3600
  168. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3270/3600
  169. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3260/3600
  170. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3250/3600
  171. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3240/3600
  172. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3230/3600
  173. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3220/3600
  174. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3210/3600
  175. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3200/3600
  176. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3190/3600
  177. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3180/3600
  178. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3170/3600
  179. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3160/3600
  180. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3150/3600
  181. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3140/3600
  182. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3130/3600
  183. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3120/3600
  184. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3110/3600
  185. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3100/3600
  186. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3090/3600
  187. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3080/3600
  188. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3070/3600
  189. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3060/3600
  190. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3050/3600
  191. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3040/3600
  192. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3030/3600
  193. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3020/3600
  194. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3010/3600
  195. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 3000/3600
  196. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2990/3600
  197. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2980/3600
  198. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2970/3600
  199. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2960/3600
  200. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2950/3600
  201. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2940/3600
  202. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2930/3600
  203. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2920/3600
  204. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2910/3600
  205. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2900/3600
  206. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2890/3600
  207. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2880/3600
  208. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2870/3600
  209. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2860/3600
  210. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2850/3600
  211. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2840/3600
  212. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2830/3600
  213. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2820/3600
  214. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2810/3600
  215. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2800/3600
  216. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2790/3600
  217. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2780/3600
  218. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2770/3600
  219. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2760/3600
  220. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2750/3600
  221. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2740/3600
  222. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2730/3600
  223. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2720/3600
  224. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2710/3600
  225. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2700/3600
  226. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2690/3600
  227. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2680/3600
  228. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2670/3600
  229. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2660/3600
  230. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2650/3600
  231. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2640/3600
  232. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2630/3600
  233. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2620/3600
  234. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2610/3600
  235. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2600/3600
  236. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2590/3600
  237. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2580/3600
  238. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2570/3600
  239. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2560/3600
  240. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2550/3600
  241. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2540/3600
  242. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2530/3600
  243. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2520/3600
  244. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2510/3600
  245. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2500/3600
  246. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2490/3600
  247. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2480/3600
  248. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2470/3600
  249. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2460/3600
  250. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2450/3600
  251. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2440/3600
  252. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2430/3600
  253. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2420/3600
  254. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2410/3600
  255. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2400/3600
  256. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2390/3600
  257. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2380/3600
  258. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2370/3600
  259. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2360/3600
  260. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2350/3600
  261. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2340/3600
  262. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2330/3600
  263. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2320/3600
  264. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2310/3600
  265. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2300/3600
  266. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2290/3600
  267. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2280/3600
  268. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2270/3600
  269. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2260/3600
  270. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2250/3600
  271. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2240/3600
  272. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2230/3600
  273. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2220/3600
  274. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2210/3600
  275. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2200/3600
  276. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2190/3600
  277. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2180/3600
  278. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2170/3600
  279. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2160/3600
  280. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2150/3600
  281. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2140/3600
  282. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2130/3600
  283. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2120/3600
  284. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2110/3600
  285. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2100/3600
  286. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2090/3600
  287. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2080/3600
  288. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2070/3600
  289. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2060/3600
  290. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2050/3600
  291. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2040/3600
  292. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2030/3600
  293. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2020/3600
  294. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2010/3600
  295. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 2000/3600
  296. Waiting for factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7 to finish installing, 1990/3600
  297. Cleaning up install artifacts
  298. Cleaning up after install
  299. Removed builder from BuildDispatcher on notification from image 23a4ab90-978d-4b7f-b618-01f771aad5c7: FAILED
  300. Getting metadata in class (<class 'imgfac.BaseImage.BaseImage'>) my metadata is (())
  301. Executing metadata in class (<class 'imgfac.BaseImage.BaseImage'>) my metadata is (('identifier', 'data', 'template', 'icicle', 'status_detail', 'status', 'percent_complete', 'parameters', 'properties'))
  302. Saved metadata for image (23a4ab90-978d-4b7f-b618-01f771aad5c7): {'status': 'FAILED', 'identifier': '23a4ab90-978d-4b7f-b618-01f771aad5c7', 'parameters': {'oz_overrides': '{"libvirt": {"image_type": "qcow2", "cpus": "2", "memory": 2048}}', 'install_script': '#version=F21\n# Keyboard layouts\nkeyboard \'us\'\n# Reboot after installation\nreboot\n# Root password\nrootpw --iscrypted --lock locked\n# System timezone\ntimezone Etc/UTC --isUtc\n# System language\nlang en_US.UTF-8\nuser --name=none\n# Firewall configuration\nfirewall --disabled\n# Network information\nnetwork --bootproto=dhcp --device=link --activate\n# OSTree setup\nostreesetup --osname="fedora-atomic" --remote="fedora-atomic" --url="http://192.168.122.195:40015" --ref="fedora-atomic/f22/x86_64/docker-host" --nogpg\n# System authorization information\nauth --useshadow --enablemd5\n# Use text mode install\ntext\n# SELinux configuration\nselinux --enforcing\n\n# System services\nservices --disabled="network" --enabled="sshd,rsyslog,cloud-init,cloud-init-local,cloud-config,cloud-final"\n# System bootloader configuration\nbootloader --append="no_timer_check console=tty1 console=ttyS0,115200n8" --location=mbr --timeout=1\n# Clear the Master Boot Record\nzerombr\n# Partition clearing information\nclearpart --all\n# Disk partitioning information\npart /boot --fstype="ext4" --size=300\npart pv.01 --grow\nvolgroup atomicos pv.01\nlogvol / --fstype="xfs" --size=3000 --name=root --vgname=atomicos\n\n%post --erroronfail\n# See https://github.com/projectatomic/rpm-ostree/issues/42\nostree remote delete fedora-atomic\nostree remote add --set=gpg-verify=false fedora-atomic \'http://192.168.122.195:40015\'\n\n# older versions of livecd-tools do not follow "rootpw --lock" line above\n# https://bugzilla.redhat.com/show_bug.cgi?id=964299\npasswd -l root\n# remove the user anaconda forces us to make\nuserdel -r none\n\n# We can lead the way with the internal DHCP, see\n# https://lists.fedoraproject.org/pipermail/cloud/2015-March/005119.html\necho "dhcp=internal" >> /etc/NetworkManager/NetworkManager.conf\n\necho -n "Getty fixes"\n# although we want console output going to the serial console, we don\'t\n# actually have the opportunity to login there. FIX.\n# we don\'t really need to auto-spawn _any_ gettys.\nsed -i \'/^#NAutoVTs=.*/ a\\\nNAutoVTs=0\' /etc/systemd/logind.conf\n\n# For cloud images, \'eth0\' _is_ the predictable device name, since\n# we don\'t want to be tied to specific virtual (!) hardware\nrm -f /etc/udev/rules.d/70*\nln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules\n\n# simple eth0 config, again not hard-coded to the build hardware\ncat > /etc/sysconfig/network-scripts/ifcfg-eth0 << EOF\nDEVICE="eth0"\nBOOTPROTO="dhcp"\nONBOOT="yes"\nTYPE="Ethernet"\nPERSISTENT_DHCLIENT="yes"\nEOF\n\n# generic localhost names\ncat > /etc/hosts << EOF\n127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4\n::1 localhost localhost.localdomain localhost6 localhost6.localdomain6\n\nEOF\necho .\n\n\n# Because memory is scarce resource in most cloud/virt environments,\n# and because this impedes forensics, we are differing from the Fedora\n# default of having /tmp on tmpfs.\necho "Disabling tmpfs for /tmp."\nsystemctl mask tmp.mount\n\n# make sure firstboot doesn\'t start\necho "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot\n\n# Uncomment this if you want to use cloud init but suppress the creation\n# of an "ec2-user" account. This will, in the absence of further config,\n# cause the ssh key from a metadata source to be put in the root account.\n#cat <<EOF > /etc/cloud/cloud.cfg.d/50_suppress_ec2-user_use_root.cfg\n#users: []\n#disable_root: 0\n#EOF\n\necho "Removing random-seed so it\'s not the same in every image."\nrm -f /var/lib/random-seed\n\necho "Packages within this cloud image:"\necho "-----------------------------------------------------------------------"\nrpm -qa\necho "-----------------------------------------------------------------------"\n# Note that running rpm recreates the rpm db files which aren\'t needed/wanted\nrm -f /var/lib/rpm/__db*\n\necho "Zeroing out empty space."\n# This forces the filesystem to reclaim space from deleted files\ndd bs=1M if=/dev/zero of=/var/tmp/zeros || :\nrm -f /var/tmp/zeros\necho "(Don\'t worry -- that out-of-space error was expected.)"\n\n%end\n', 'generate_icicle': False}, 'icicle': None, 'data': u'/var/lib/imagefactory/storage/23a4ab90-978d-4b7f-b618-01f771aad5c7.body', 'status_detail': {'error': 'No disk activity in 300 seconds, failing. Check screenshot at /var/lib/oz/screenshots/factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7-1445929461.29.ppm for more detail', 'activity': 'Base Image build failed with exception.'}, 'template': "<template>\n <name>22</name>\n <os>\n <name>Fedora</name>\n <version>22</version>\n <arch>ppc64le</arch>\n <install type='url'>\n <url>https://archive.fedoraproject.org/pub/fedora-secondary/releases/22/Server/ppc64le/os/</url>\n </install>\n <rootpw>ewwwwwww</rootpw>\n </os>\n</template>\n\n", 'percent_complete': 0, 'type': 'BaseImage', 'properties': {}}
  303. Exception encountered in _build_image_from_template thread
  304. No disk activity in 300 seconds, failing. Check screenshot at /var/lib/oz/screenshots/factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7-1445929461.29.ppm for more detail
  305. Traceback (most recent call last):
  306. File "/usr/lib/python2.7/site-packages/imgfac/Builder.py", line 132, in _build_image_from_template
  307. self.os_plugin.create_base_image(self, template, parameters)
  308. File "/usr/lib/python2.7/site-packages/imagefactory_plugins/TinMan/TinMan.py", line 346, in create_base_image
  309. libvirt_xml = self.guest.install(self.app_config["timeout"])
  310. File "/usr/lib/python2.7/site-packages/oz/RedHat.py", line 705, in install
  311. self.initrdfname, self.cmdline)
  312. File "/usr/lib/python2.7/site-packages/oz/Guest.py", line 1667, in _do_install
  313. self._wait_for_install_finish(dom, timeout)
  314. File "/usr/lib/python2.7/site-packages/oz/Guest.py", line 785, in _wait_for_install_finish
  315. raise oz.OzException.OzException("No disk activity in %d seconds, failing. %s" % (inactivity_timeout, screenshot_text))
  316. OzException: No disk activity in 300 seconds, failing. Check screenshot at /var/lib/oz/screenshots/factory-build-23a4ab90-978d-4b7f-b618-01f771aad5c7-1445929461.29.ppm for more detail
  317. Failed image status: FAILED
Advertisement
RAW Paste Data Copied
Advertisement