Bug 783471

Summary: audrey agent in ec2 can't read /etc/sysconfig/cloud-info
Product: [Retired] CloudForms Cloud Engine Reporter: dgao
Component: imagefactoryAssignee: Ian McLeod <imcleod>
Status: CLOSED ERRATA QA Contact: dgao
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: akarol, brad, dajohnso, deltacloud-maint, dgao, imcleod, ssachdev, whayutin
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: 2012-05-15 20:21:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description dgao 2012-01-20 14:50:46 UTC
[root@qeblade21 ~]# rpm -q "imagefactory"
imagefactory-1.0.0rc2.1_6_gbaae779-1.el6.noarch


[root@domU-12-31-39-0B-88-D1 log]# rpm -q aeolus-audrey-agent
aeolus-audrey-agent-0.4.3-1.el6.noarch

[root@domU-12-31-39-0B-88-D1 log]# cat /var/log/audrey.log 
2012-01-20 09:25:36,443 - ERROR   : audrey:93 Failed accessing file /etc/sysconfig/cloud-info

Comment 1 wes hayutin 2012-01-20 15:03:14 UTC
<weshay> segfault, how critical is the /etc/sysconfig/cloud-info
<segfault> weshay, audrey client don't work on ec2

Comment 2 Greg Blomquist 2012-01-20 15:17:11 UTC
Looks like image factory is not putting the cloud-info file in place in ec2 for RHEL6.2 (see RPM version in dgao's original comment).

Comment 3 Ian McLeod 2012-01-20 21:40:45 UTC
Sigh.  Yes.  This is another side effect of using the hourly AMIs.

They do not contain the cloud-info file or the audrey conditional.

We fixed the audrey conditional in another bug.  The cloud-info issue
is fixed here:

https://github.com/aeolusproject/imagefactory/commit/47b1e0e86586b0d5163dcfbc954cab63eaea7e35

I'll brew this shortly.

Comment 4 wes hayutin 2012-01-23 20:08:55 UTC
201201231506:05.888 - FINE: ssh root.amazonaws.com cat /var/log/audrey.log (com.redhat.qe.tools.SSHCommandRunner.run)
201201231506:06.166 - INFO: ============ AUDREY LOG ============= (com.redhat.qe.ce10.tasks.AssortedTasks.sshAndTestAudrey)
201201231506:12.382 - INFO: 2012-01-23 15:05:53,460 - ERROR   : audrey:93 Failed accessing file /etc/sysconfig/cloud-info
 (com.redhat.qe.ce10.tasks.AssortedTasks.sshAndTestAudrey)
201201231506:16.087 - INFO: ============ AUDREY LOG ============= (com.redhat.qe.ce10.tasks.AssortedTasks.sshAndTestAudrey)

not in the build.. fails_qa


[root@qeblade30 ~]# rpm -qa | grep factory
imagefactory-1.0.0rc2.1_6_gbaae779-1.el6.noarch
rubygem-imagefactory-console-0.4.0-1.el6.noarch
imagefactory-jeosconf-ec2-rhel-1.0.0rc2.1_6_gbaae779-1.el6.noarch
imagefactory-jeosconf-ec2-fedora-1.0.0rc2.1_6_gbaae779-1.el6.noarch

Comment 5 Ian McLeod 2012-01-24 17:04:03 UTC
In brew as:

"1.0.0rc2_17_g6a682b6"

Comment 6 dgao 2012-01-24 19:50:44 UTC
[root@qeblade21 ~]# rpm -q imagefactory
imagefactory-1.0.0rc2_17_g6a682b6-1.el6.noarch


[root@ip-10-79-45-246 ~]# cat /var/log/audrey.log 
2012-01-24 14:48:51,616 - INFO    : audrey:1293 Invoked audrey_script_main
2012-01-24 14:48:54,643 - INFO    : audrey:1321 
<Instance of: CSClient
	Version: 1
	Config Server Endpoint: https://ec2-107-22-112-68.compute-1.amazonaws.com
	Config Server oAuth Key: 38deb4a0-46c4-11e1-8661-5cf3fc1c8188
	Config Server oAuth Secret: 0GpH9A3MFhUjuoBJAmk9hw5rBovQs9h6sRvUgDMeWrWO
	Config Server Params: 
	Config Server Configs: 
	Temporary Directory: 
	Tarball Name: 
eot>
2012-01-24 14:48:54,644 - INFO    : audrey:944 Invoked CSClient.get_cs_tooling()
2012-01-24 14:48:54,673 - INFO    : audrey:682 Invoked unpack_tooling()
2012-01-24 14:48:54,679 - INFO    : audrey:901 Invoked CSClient.get_cs_configs()
2012-01-24 14:48:54,766 - INFO    : audrey:612 Execute Tooling command: /var/audrey/tooling/user/proxy1/start
2012-01-24 14:48:54,767 - INFO    : audrey:612 return code: 0
2012-01-24 14:48:54,767 - INFO    : audrey:612 
	Start Output of: /var/audrey/tooling/user/proxy1/start >>>

PROGNAME ***   ***   ***   ***   ***   ***
PROGNAME: /var/audrey/tooling/user/proxy1/start

pwd ***   ***   ***   ***   ***   ***
/var/audrey/tooling/user/proxy1

args ***   ***   ***   ***   ***   ***

printenv ***   ***   ***   ***   ***   ***
AUDREY_VAR_proxy1_proxy_server_1_param_1=a
AUDREY_VAR_proxy1_proxy_server_1_param_2=b
AUDREY_VAR_proxy1_proxy_server_1_param_3=ip-10-78-138-58
AUDREY_VAR_proxy2_proxy_server_1_param_1=c
AUDREY_VAR_proxy2_proxy_server_1_param_2=d

	<<< End Output
2012-01-24 14:48:54,785 - INFO    : audrey:612 Execute Tooling command: /var/audrey/tooling/user/proxy2/start
2012-01-24 14:48:54,786 - INFO    : audrey:612 return code: 0
2012-01-24 14:48:54,786 - INFO    : audrey:612 
	Start Output of: /var/audrey/tooling/user/proxy2/start >>>

PROGNAME ***   ***   ***   ***   ***   ***
PROGNAME: /var/audrey/tooling/user/proxy2/start

pwd ***   ***   ***   ***   ***   ***
/var/audrey/tooling/user/proxy2

args ***   ***   ***   ***   ***   ***

printenv ***   ***   ***   ***   ***   ***
AUDREY_VAR_proxy1_proxy_server_1_param_1=a
AUDREY_VAR_proxy1_proxy_server_1_param_2=b
AUDREY_VAR_proxy1_proxy_server_1_param_3=ip-10-78-138-58
AUDREY_VAR_proxy2_proxy_server_1_param_1=c
AUDREY_VAR_proxy2_proxy_server_1_param_2=d

	<<< End Output
2012-01-24 14:48:54,786 - INFO    : audrey:916 Invoked CSClient.get_cs_params()
2012-01-24 14:48:54,811 - INFO    : audrey:520 Invoked generate_provides()
2012-01-24 14:48:56,000 - INFO    : audrey:931 Invoked CSClient.put_cs_params_values()

Comment 8 errata-xmlrpc 2012-05-15 20:21:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2012-0588.html