Bug 782076

Summary: Build failed - stuck on the installation of the system (timeout)
Product: [Retired] CloudForms Cloud Engine Reporter: Martin Kočí <mkoci>
Component: imagefactoryAssignee: Ian McLeod <imcleod>
Status: CLOSED DUPLICATE QA Contact: Martin Kočí <mkoci>
Severity: low Docs Contact:
Priority: high    
Version: 1.0.0CC: akarol, brad, dajohnso, deltacloud-maint, dgao, ssachdev, whayutin
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-07 10:06:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
screenshot from the imagefactory build none

Description Martin Kočí 2012-01-16 13:21:10 UTC
Created attachment 555503 [details]
screenshot from the imagefactory build

Description of problem:
From this morning I can't create image for vsphere,rhevm..on RHEL even Fedora with the error (screenshot) in attach. Error is : Unable to retrieve http://lab-02.rhts.eng.bos.redhat.com/vol/engarchive2/redhat/released/RHEL-6/6.2/Server/x86_64/os//images/install.img

--truncated
2012-01-16 07:30:28,967 DEBUG imgfac.builders.BaseBuilder.RHEL6_vsphere_Builder pid(15612) Message: Exception caught in ImageFactory
2012-01-16 07:30:28,967 DEBUG imgfac.builders.BaseBuilder.RHEL6_vsphere_Builder pid(15612) Message: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/imgfac/builders/Fedora_vsphere_Builder.py", line 49, in build_image
    self.build_upload(build_id)
  File "/usr/lib/python2.6/site-packages/imgfac/builders/Fedora_vsphere_Builder.py", line 111, in build_upload
    libvirt_xml = self.guest.install(self.app_config["timeout"])
  File "/usr/lib/python2.6/site-packages/oz/Guest.py", line 1433, in install
    return self._do_install(timeout, force, 0)
  File "/usr/lib/python2.6/site-packages/oz/Guest.py", line 1415, in _do_install
    self._wait_for_install_finish(dom, timeout)
  File "/usr/lib/python2.6/site-packages/oz/Guest.py", line 538, in _wait_for_install_finish
    raise oz.OzException.OzException(exc_str)
OzException: No disk activity in 300 seconds, failing.  Check screenshot at /first_brew-0a1f11b8-f592-4f06-b5a5-7c00d773d667-1326717028.26.png for more detail

2012-01-16 07:30:28,967 DEBUG imgfac.BuildJob.BuildJob pid(15612) Message: Builder (0a1f11b8-f592-4f06-b5a5-7c00d773d667) changed status from FAILED to FAILED
--truncated

I hope it's an issue with repository, but I can successfully download the file from-to the server, see: 

# cat templates/template.tdl && wget http://lab-02.rhts.eng.bos.redhat.com/net/bigpapi.bos.redhat.com/vol/engarchive2/redhat/released/RHEL-6/6.2/Server/x86_64/os/images/install.img
<template>
  <name>first_brew</name>
  <description>brew_test1</description>
  <os>
    <name>RHEL-6</name>
    <version>2</version>
    <arch>x86_64</arch>
    <install type="url">
      <url>http://lab-02.rhts.eng.bos.redhat.com/net/bigpapi.bos.redhat.com/vol/engarchive2/redhat/released/RHEL-6/6.2/Server/x86_64/os</url>
    </install>
    <rootpw>redhat</rootpw>
  </os>
</template>--2012-01-16 08:07:07--  http://lab-02.rhts.eng.bos.redhat.com/net/bigpapi.bos.redhat.com/vol/engarchive2/redhat/released/RHEL-6/6.2/Server/x86_64/os/images/install.img
Resolving lab-02.rhts.eng.bos.redhat.com... 10.16.64.13
Connecting to lab-02.rhts.eng.bos.redhat.com|10.16.64.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 137248768 (131M) [application/octet-stream]
Saving to: “install.img”

100%[========================================================================================================================================================================>] 137,248,768 96.4M/s   in 1.4s    

2012-01-16 08:07:08 (96.4 MB/s) - “install.img” saved [137248768/137248768]



Version-Release number of selected component (if applicable):
grep 'aeolus\|imagefactory-\|oz-\|iwhd'
rubygem-ZenTest-4.3.3-2.aeolus.el6.noarch
rubygem-aeolus-cli-0.4.0-0.20120111093540git5ec8dc7.el6.noarch
iwhd-1.2-3.el6.x86_64
aeolus-conductor-0.9.0-0.20120111153517gite55da85.el6.noarch
rubygem-arel-2.0.10-0.aeolus.el6.noarch
aeolus-conductor-daemons-0.9.0-0.20120111153517gite55da85.el6.noarch
oz-0.8.0-0.20111219203204git5775e9d.el6.noarch
aeolus-all-0.9.0-0.20120111153517gite55da85.el6.noarch
imagefactory-jeosconf-ec2-rhel-1.0.0rc2.1-1.el6.noarch
rubygem-imagefactory-console-0.5.0-4.20110824113238gitd9debef.el6.noarch
aeolus-conductor-doc-0.9.0-0.20120111153517gite55da85.el6.noarch
imagefactory-jeosconf-ec2-fedora-1.0.0rc2.1-1.el6.noarch
rubygem-aeolus-image-0.4.0-0.20120111093551git67fdf6f.el6.noarch
aeolus-configure-2.6.0-0.20120112133633git8701011.el6.noarch
imagefactory-1.0.0rc2.1-1.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. try to build image via #aeolus-image build --target vsphere --template templates/bug761035.tdl
or #imagefactory --debug --target vsphere --template templates/bug761035.tdl
  
Actual results:
build FAILED

Expected results:
build COMPLETED

Additional info:
I'll keep eye on it

Comment 1 Martin Kočí 2012-01-16 13:39:19 UTC
Argh...sorry "The additional info" note shouldn't have been there. It's mistyped.

Comment 2 wes hayutin 2012-01-16 15:50:23 UTC
that looks like a potential networking issue on the setup.. can you confirm?

Comment 3 Martin Kočí 2012-01-16 15:54:50 UTC
yeah, it seems to be...I'm still working on it. So far I have seen this issue on my laptop and on englab22 server. And I have tried different (say two) repositories. I will keep this bug updated.

Comment 4 Martin Kočí 2012-01-17 12:21:35 UTC
So far I have tried different test boxes and different repositories, but I'm still getting "OzException: No disk activity in 300 seconds, failing." error. I don't know if it is me. Has anybody experienced with this issue too or is it just me ?

Comment 5 Martin Kočí 2012-01-17 18:36:31 UTC
OK, after I did fresh install of the RHEL62 then and updated from brew it works without issue. I'm closing this as a NOTABUG.

Comment 6 wes hayutin 2012-01-25 13:32:10 UTC
please paste in the git repo that has  build_image.py or even better doc it in the qe wiki and send a link.

Comment 7 Martin Kočí 2012-01-25 13:49:01 UTC
I'll provide a link. I need to investigate it a little bit more before.

Comment 8 Martin Kočí 2012-02-03 07:52:52 UTC
Changed title to more correspond of the issue.  Another possible duplicate of this bug is Bug 787023.

Comment 9 wes hayutin 2012-02-03 13:40:12 UTC
(In reply to comment #8)
> Changed title to more correspond of the issue.  Another possible duplicate of
> this bug is Bug 787023.

I don't think its a duplicate, and I am unable to recreate on several builds

Comment 10 Martin Kočí 2012-02-03 15:51:58 UTC
I can't reproduce the issue with the latest packages neither. But I think this is a duplicate of the bug 787023 though. It's just a little difficult to reproduce.

Comment 11 Martin Kočí 2012-02-07 10:06:03 UTC

*** This bug has been marked as a duplicate of bug 787023 ***