Bug 758496

Summary: Error: Package: python-phacter-0.2.0-1.el6.noarch (aeolus) Requires: python-netifaces
Product: [Retired] CloudForms Cloud Engine Reporter: wes hayutin <whayutin>
Component: DistributionAssignee: Dan Radez <dradez>
Status: CLOSED NOTABUG QA Contact: wes hayutin <whayutin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, dajohnso, deltacloud-maint, dgao, morazi, ssachdev
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-01 20:27:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 744194    

Description wes hayutin 2011-11-29 22:24:17 UTC
Description of problem:

011-11-29 17:10:17,212 DEBUG oz.Guest.RHEL6RemoteGuest pid(23914) Message: Name: RHEL_westest01-2a0c291c-6b3d-4b5b-81ae-2cbb67aeeaaa, UUID: 0623e5e3-43f1-441e-8777-72ea5040b510
2011-11-29 17:10:17,212 DEBUG oz.Guest.RHEL6RemoteGuest pid(23914) Message: MAC: 52:54:00:67:b4:ec, distro: RHEL-6
2011-11-29 17:10:17,212 DEBUG oz.Guest.RHEL6RemoteGuest pid(23914) Message: update: 1, arch: x86_64, diskimage: /home/var/lib/imagefactory/images/RHEL_westest01-2a0c291c-6b3d-4b5b-81ae-2cbb67aeeaaa.dsk
2011-11-29 17:10:17,212 DEBUG oz.Guest.RHEL6RemoteGuest pid(23914) Message: nicmodel: virtio, clockoffset: utc
2011-11-29 17:10:17,213 DEBUG oz.Guest.RHEL6RemoteGuest pid(23914) Message: mousetype: ps2, disk_bus: virtio, disk_dev: vda
2011-11-29 17:10:17,213 DEBUG oz.Guest.RHEL6RemoteGuest pid(23914) Message: icicletmp: /home/var/lib/oz/icicletmp/RHEL_westest01-2a0c291c-6b3d-4b5b-81ae-2cbb67aeeaaa, listen_port: 10106
2011-11-29 17:10:17,213 DEBUG oz.Guest.RHEL6RemoteGuest pid(23914) Message: Original ISO path: /home/var/lib/oz/isos/RHEL-61x86_64-url.iso
2011-11-29 17:10:17,213 DEBUG oz.Guest.RHEL6RemoteGuest pid(23914) Message: Modified ISO cache: /home/var/lib/oz/isos/RHEL-61x86_64-url-oz.iso
2011-11-29 17:10:17,213 DEBUG oz.Guest.RHEL6RemoteGuest pid(23914) Message: Output ISO path: /home/var/lib/imagefactory/images/RHEL_westest01-2a0c291c-6b3d-4b5b-81ae-2cbb67aeeaaa-url-oz.iso
2011-11-29 17:10:17,213 DEBUG oz.Guest.RHEL6RemoteGuest pid(23914) Message: ISO content path: /home/var/lib/oz/isocontent/RHEL_westest01-2a0c291c-6b3d-4b5b-81ae-2cbb67aeeaaa-url
2011-11-29 17:10:17,214 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Being asked to push for provider ec2-us-east-1
2011-11-29 17:10:17,214 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: distro: RHEL-6 - update: 1 - arch: x86_64
2011-11-29 17:10:17,215 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: acting as EC2 user: 6735-0069-5950
2011-11-29 17:10:17,215 DEBUG imgfac.BuildJob.BuildJob pid(23914) Message: Builder (2a0c291c-6b3d-4b5b-81ae-2cbb67aeeaaa) changed status from NEW to PUSHING
2011-11-29 17:10:17,216 DEBUG imgfac.BuildJob.BuildJob pid(23914) Message: Builder (2a0c291c-6b3d-4b5b-81ae-2cbb67aeeaaa) changed percent complete from 0 to 0
2011-11-29 17:10:17,216 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Starting ami ami-31d41658 with instance_type m1.large
2011-11-29 17:10:17,342 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Creating temporary security group (imagefactory-2a0c291c-6b3d-4b5b-81ae-2cbb67aeeaaa)
2011-11-29 17:10:17,768 DEBUG paste.httpserver.ThreadPool pid(23914) Message: Added task (0 tasks queued)
2011-11-29 17:10:19,677 WARNING boto pid(23914) Message: Error converting code (pending) to int
2011-11-29 17:10:29,679 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Waiting for EC2 instance to start: 0/300
2011-11-29 17:10:39,384 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Waiting for EC2 ssh access: 0/300
2011-11-29 17:11:18,209 DEBUG paste.httpserver.ThreadPool pid(23914) Message: Added task (0 tasks queued)
2011-11-29 17:11:18,769 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Waiting for EC2 ssh access: 10/300
2011-11-29 17:11:30,306 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Waiting 20 seconds for remaining boot tasks
2011-11-29 17:11:50,326 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Stopping cron and killing any updatedb process that may be running
2011-11-29 17:11:51,641 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Done
2011-11-29 17:12:18,660 DEBUG paste.httpserver.ThreadPool pid(23914) Message: Added task (0 tasks queued)
2011-11-29 17:12:19,392 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Customizing guest: ec2-75-101-246-185.compute-1.amazonaws.com
2011-11-29 17:12:19,393 DEBUG oz.Guest.RHEL6RemoteGuest pid(23914) Message: Installing additional repository files
2011-11-29 17:12:21,534 DEBUG oz.Guest.RHEL6RemoteGuest pid(23914) Message: Installing custom packages
2011-11-29 17:12:26,916 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Terminating EC2 instance and deleting temp security group
2011-11-29 17:12:27,183 WARNING boto pid(23914) Message: Error converting code (Client.UserInitiatedShutdown) to int
2011-11-29 17:12:27,184 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Instance status (shutting-down) - waiting for 'terminated'. [0 of 300 seconds elapsed]
2011-11-29 17:12:32,260 WARNING boto pid(23914) Message: Error converting code (Client.UserInitiatedShutdown) to int
2011-11-29 17:12:32,260 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Instance status (shutting-down) - waiting for 'terminated'. [5 of 300 seconds elapsed]
2011-11-29 17:12:37,334 WARNING boto pid(23914) Message: Error converting code (Client.UserInitiatedShutdown) to int
2011-11-29 17:12:37,334 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Instance status (shutting-down) - waiting for 'terminated'. [10 of 300 seconds elapsed]
2011-11-29 17:12:42,399 WARNING boto pid(23914) Message: Error converting code (Client.UserInitiatedShutdown) to int
2011-11-29 17:12:42,400 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Instance status (shutting-down) - waiting for 'terminated'. [15 of 300 seconds elapsed]
2011-11-29 17:12:47,486 WARNING boto pid(23914) Message: Error converting code (Client.UserInitiatedShutdown) to int
2011-11-29 17:12:47,487 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Instance status (shutting-down) - waiting for 'terminated'. [20 of 300 seconds elapsed]
2011-11-29 17:12:52,564 WARNING boto pid(23914) Message: Error converting code (Client.UserInitiatedShutdown) to int
2011-11-29 17:12:52,565 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Instance status (shutting-down) - waiting for 'terminated'. [25 of 300 seconds elapsed]
2011-11-29 17:12:57,652 WARNING boto pid(23914) Message: Error converting code (Client.UserInitiatedShutdown) to int
2011-11-29 17:12:57,853 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Removed temporary security group (imagefactory-2a0c291c-6b3d-4b5b-81ae-2cbb67aeeaaa)
2011-11-29 17:12:57,853 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Exception caught in ImageFactory
2011-11-29 17:12:57,853 DEBUG imgfac.builders.BaseBuilder.RHEL6_ec2_Builder pid(23914) Message: Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/imgfac/builders/Fedora_ec2_Builder.py", line 443, in push_image
    credentials)
  File "/usr/lib/python2.6/site-packages/imgfac/builders/Fedora_ec2_Builder.py", line 616, in push_image_snapshot_ec2
    self.guest.do_customize(guestaddr)
  File "/usr/lib/python2.6/site-packages/oz/RedHat.py", line 1082, in do_customize
    tunnels=self.tunnels)
  File "/usr/lib/python2.6/site-packages/imgfac/builders/RHEL6_ec2_Builder.py", line 30, in guest_execute_command
    return super(RHEL6RemoteGuest, self).guest_execute_command(guestaddr, command, timeout, tunnels)
  File "/usr/lib/python2.6/site-packages/oz/RedHat.py", line 476, in guest_execute_command
    command, timeout, tunnels)
  File "/usr/lib/python2.6/site-packages/oz/ozutil.py", line 355, in ssh_execute_command
    return subprocess_check_output(cmd)
  File "/usr/lib/python2.6/site-packages/oz/ozutil.py", line 323, in subprocess_check_output
    raise SubprocessException("'%s' failed(%d): %s" % (cmd, retcode, stderr), retcode)
SubprocessException: 'ssh -i /tmp/tmpFGB7es -F /dev/null -o ServerAliveInterval=30 -o StrictHostKeyChecking=no -o ConnectTimeout=30 -o UserKnownHostsFile=/dev/null -o PasswordAuthentication=no root.amazonaws.com yum -y install aeolus-audrey-agent ' failed(1): Warning: Permanently added 'ec2-75-101-246-185.compute-1.amazonaws.com,75.101.246.185' (RSA) to the list of known hosts.
Error: Package: python-phacter-0.2.0-1.el6.noarch (aeolus)
           Requires: python-netifaces


2011-11-29 17:12:57,853 DEBUG imgfac.BuildJob.BuildJob pid(23914) Message: Builder (2a0c291c-6b3d-4b5b-81ae-2cbb67aeeaaa) changed status from PUSHING to FAILED
2011-11-29 17:13:19,097 DEBUG paste.httpserver.ThreadPool pid(23914) Message: Added task (0 tasks queued)
[root@dhcp231-79 ~]# 


Amazon ami's have access to base and optional.. this should work no?
<template>
  <name>RHEL_westest01</name>
  <os>    
    <name>RHEL-6</name>    
    <version>1</version>
    <arch>x86_64</arch>
    <install type="url">
      <url>http://download.devel.redhat.com/released/RHEL-6-Server/6.1/x86_64/os/</url>
    </install>
    <rootpw>dog8code</rootpw>
  </os>
  <repositories>
    <repository name="aeolus">
      <url>http://repos.fedorapeople.org/repos/aeolus/conductor/testing/6Server/x86_64/</url>
    </repository>
  </repositories>
  <packages>
    <package name="aeolus-audrey-agent"/>
  </packages>
  <description>RHEL61 x86_64 </description>
</template>
[whayutin@minidoe scripts]$

Comment 1 wes hayutin 2011-11-29 22:53:02 UTC
This was pushed to ec2 where rhel optional is available by default

Comment 2 wes hayutin 2011-11-29 23:01:40 UTC
[root@ip-10-188-167-102 yum.repos.d]# yum repolist
Loaded plugins: amazon-id, rhui-lb, security
rhui-us-east-client-config-server-6                                                                                                                                                        | 2.6 kB     00:00     
rhui-us-east-client-config-server-6/primary_db                                                                                                                                             | 3.1 kB     00:00     
rhui-us-east-rhel-server-releases                                                                                                                                                          | 3.7 kB     00:00     
rhui-us-east-rhel-server-releases/primary_db                                                                                                                                               | 8.7 MB     00:00     
rhui-us-east-rhel-server-releases-optional                                                                                                                                                 | 2.2 kB     00:00     
rhui-us-east-rhel-server-releases-optional/primary                                                                                                                                         | 734 kB     00:00     
rhui-us-east-rhel-server-releases-optional                                                                                                                                                              3660/3660
repo id                                                                                    repo name                                                                                                        status
rhui-us-east-client-config-server-6                                                        Red Hat Update Infrastructure 2.0 Client Configuration Server 6                                                      1
rhui-us-east-rhel-server-releases                                                          Red Hat Enterprise Linux Server 6 (RPMs)                                                                         5,597
rhui-us-east-rhel-server-releases-optional                                                 Red Hat Enterprise Linux Server 6 Optional (RPMs)                                                                3,660
repolist: 9,258
[root@ip-10-188-167-102 yum.repos.d]# yum search netiface
Loaded plugins: amazon-id, rhui-lb, security
Warning: No matches found for: netiface
No Matches found
[root@ip-10-188-167-102 yum.repos.d]# 

[root@ip-10-188-167-102 yum.repos.d]# yum repolist
Loaded plugins: amazon-id, rhui-lb, security
rhui-us-east-client-config-server-6                                                                                                                                                        | 2.6 kB     00:00     
rhui-us-east-client-config-server-6/primary_db                                                                                                                                             | 3.1 kB     00:00     
rhui-us-east-rhel-server-releases                                                                                                                                                          | 3.7 kB     00:00     
rhui-us-east-rhel-server-releases/primary_db                                                                                                                                               | 8.7 MB     00:00     
rhui-us-east-rhel-server-releases-optional                                                                                                                                                 | 2.2 kB     00:00     
rhui-us-east-rhel-server-releases-optional/primary                                                                                                                                         | 734 kB     00:00     
rhui-us-east-rhel-server-releases-optional                                                                                                                                                              3660/3660
repo id                                                                                    repo name                                                                                                        status
rhui-us-east-client-config-server-6                                                        Red Hat Update Infrastructure 2.0 Client Configuration Server 6                                                      1
rhui-us-east-rhel-server-releases                                                          Red Hat Enterprise Linux Server 6 (RPMs)                                                                         5,597
rhui-us-east-rhel-server-releases-optional                                                 Red Hat Enterprise Linux Server 6 Optional (RPMs)                                                                3,660
repolist: 9,258
[root@ip-10-188-167-102 yum.repos.d]# yum search netiface
Loaded plugins: amazon-id, rhui-lb, security
Warning: No matches found for: netiface
No Matches found
[root@ip-10-188-167-102 yum.repos.d]# 

[root@ip-10-188-167-102 yum.repos.d]# yum repolist
Loaded plugins: amazon-id, rhui-lb, security
rhui-us-east-client-config-server-6                                                                                                                                                        | 2.6 kB     00:00     
rhui-us-east-client-config-server-6/primary_db                                                                                                                                             | 3.1 kB     00:00     
rhui-us-east-rhel-server-releases                                                                                                                                                          | 3.7 kB     00:00     
rhui-us-east-rhel-server-releases/primary_db                                                                                                                                               | 8.7 MB     00:00     
rhui-us-east-rhel-server-releases-optional                                                                                                                                                 | 2.2 kB     00:00     
rhui-us-east-rhel-server-releases-optional/primary                                                                                                                                         | 734 kB     00:00     
rhui-us-east-rhel-server-releases-optional                                                                                                                                                              3660/3660
repo id                                                                                    repo name                                                                                                        status
rhui-us-east-client-config-server-6                                                        Red Hat Update Infrastructure 2.0 Client Configuration Server 6                                                      1
rhui-us-east-rhel-server-releases                                                          Red Hat Enterprise Linux Server 6 (RPMs)                                                                         5,597
rhui-us-east-rhel-server-releases-optional                                                 Red Hat Enterprise Linux Server 6 Optional (RPMs)                                                                3,660
repolist: 9,258
[root@ip-10-188-167-102 yum.repos.d]# yum search netiface
Loaded plugins: amazon-id, rhui-lb, security
Warning: No matches found for: netiface
No Matches found
[root@ip-10-188-167-102 yum.repos.d]# 



[root@ip-10-188-167-102 yum.repos.d]# yum repolist
Loaded plugins: amazon-id, rhui-lb, security
rhui-us-east-client-config-server-6                                                                                                                                                        | 2.6 kB     00:00     
rhui-us-east-client-config-server-6/primary_db                                                                                                                                             | 3.1 kB     00:00     
rhui-us-east-rhel-server-releases                                                                                                                                                          | 3.7 kB     00:00     
rhui-us-east-rhel-server-releases/primary_db                                                                                                                                               | 8.7 MB     00:00     
rhui-us-east-rhel-server-releases-optional                                                                                                                                                 | 2.2 kB     00:00     
rhui-us-east-rhel-server-releases-optional/primary                                                                                                                                         | 734 kB     00:00     
rhui-us-east-rhel-server-releases-optional                                                                                                                                                              3660/3660
repo id                                                                                    repo name                                                                                                        status
rhui-us-east-client-config-server-6                                                        Red Hat Update Infrastructure 2.0 Client Configuration Server 6                                                      1
rhui-us-east-rhel-server-releases                                                          Red Hat Enterprise Linux Server 6 (RPMs)                                                                         5,597
rhui-us-east-rhel-server-releases-optional                                                 Red Hat Enterprise Linux Server 6 Optional (RPMs)                                                                3,660
repolist: 9,258
[root@ip-10-188-167-102 yum.repos.d]# yum search netiface
Loaded plugins: amazon-id, rhui-lb, security
Warning: No matches found for: netiface
No Matches found
[root@ip-10-188-167-102 yum.repos.d]#

Comment 3 wes hayutin 2011-11-29 23:01:51 UTC
[root@ip-10-188-167-102 yum.repos.d]# wget -q -O - http://169.254.169.254/latest/dynamic/instance-identity/document
{
  "version" : "2010-08-31",
  "kernelId" : "aki-08ed0761",
  "ramdiskId" : null,
  "instanceId" : "i-81f8d8e2",
  "instanceType" : "m1.xlarge",
  "architecture" : "x86_64",
  "billingProducts" : [ "bp-6fa54006" ],
  "availabilityZone" : "us-east-1a",
  "accountId" : "673500695950",
  "pendingTime" : "2011-11-29T22:56:15Z",
  "devpayProductCodes" : null,
  "imageId" : "ami-31d41658",
  "privateIp" : "10.188.167.102",
  "region" : "us-east-1"
}[root@ip-10-188-167-102 yum.repos.d]#

Comment 4 wes hayutin 2011-11-29 23:07:03 UTC
started the jeos ami by hand and tried to install the missing package.. it fails..

Either the RHUI needs update.. or that rpm spec is wrong.

Comment 5 Mike Orazi 2011-11-30 16:11:25 UTC
This should probably get dropped/closed when we revert back to Facter, but assigning to dradez to make sure that closure gets coordinated with reverting.

Comment 6 Dan Radez 2011-12-01 20:27:42 UTC
reverted to facter, closing this

Radez