Bug 789163

Summary: traceback during audrey agent launch in vsphere
Product: [Retired] CloudForms Cloud Engine Reporter: dgao
Component: aeolus-audrey-agentAssignee: Dan Radez <dradez>
Status: CLOSED ERRATA QA Contact: dgao
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: dajohnso, dmacpher, gblomqui, morazi, whayutin
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Missing files in audrey-agent-0.5.0 caused instances with Audrey Agent to fail when launched. This bug fix expands the coverage of audrey-agent's makefile to include the missing files. Instances with Audrey Agent now launch successfully.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 14:56:31 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-02-10 00:06:46 UTC
This was tested in a el6.2 vsphere instance w/ updated IF rpm.

[root@intel-d3c4702-01 ~]# rpm -qa | grep "imagefactory"
imagefactory-jeosconf-ec2-rhel-1.0.0rc4_2_gf16dfc5-1.el6.noarch
imagefactory-1.0.0rc4_2_gf16dfc5-1.el6.noarch
rubygem-imagefactory-console-0.4.0-1.el6.noarch
imagefactory-jeosconf-ec2-fedora-1.0.0rc4_2_gf16dfc5-1.el6.noarch


[root@dhcp77-109 ~]# rpm -qa | grep "audrey"
aeolus-audrey-agent-0.5.0-0.el6.20120207160930git15b46b6.noarch
[root@dhcp77-109 ~]# 

[root@dhcp77-109 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.2 (Santiago)
[root@dhcp77-109 ~]# ls /etc/init.d/audrey 
/etc/init.d/audrey


[root@dhcp77-109 ~]# cat /var/log/audrey.log 
2012-02-09 13:19:23,803 - INFO    : agent.py:145 Invoked audrey main
2012-02-09 13:19:23,945 - INFO    : agent.py:171 
<Instance of: CSClient
	Version: 1
	Config Server Endpoint: https://deaddonkey.usersys.redhat.com
	Config Server oAuth Key: 3c6b2f22-5371-11e1-bf59-001320f3f0c5
	Config Server oAuth Secret: sAp5kDMJRiuFC7tb7F5jXTrEu7qiVz1O2xPrfO33qZzWI
	Config Server Params: 
	Config Server Configs: 
	Temporary Directory: 
	Tarball Name: 
eot>
2012-02-09 13:19:23,955 - INFO    : client.py:190 Invoked CSClient.get_cs_tooling()
2012-02-09 13:19:24,006 - INFO    : tooling.py:167 Invoked unpack_tooling()
2012-02-09 13:19:24,026 - INFO    : client.py:147 Invoked CSClient.get_cs_configs()
2012-02-09 13:19:24,165 - ERROR   : __init__.py:37 Traceback (most recent call last):
2012-02-09 13:19:24,167 - ERROR   : __init__.py:37   File "/usr/bin/audrey", line 24, in <module>
2012-02-09 13:19:24,167 - ERROR   : __init__.py:37 audrey.agent.main()
2012-02-09 13:19:24,168 - ERROR   : __init__.py:37   File "/usr/lib/python2.6/site-packages/audrey/agent.py", line 200, in main
2012-02-09 13:19:24,169 - ERROR   : __init__.py:37 tooling.invoke_tooling(services)
2012-02-09 13:19:24,169 - ERROR   : __init__.py:37   File "/usr/lib/python2.6/site-packages/audrey/csclient/tooling.py", line 133, in invoke_tooling
2012-02-09 13:19:24,170 - ERROR   : __init__.py:37 ret = run_cmd(cmd, cmd_dir)
2012-02-09 13:19:24,170 - ERROR   : __init__.py:37 NameError
2012-02-09 13:19:24,170 - ERROR   : __init__.py:37 :
2012-02-09 13:19:24,171 - ERROR   : __init__.py:37 global name 'run_cmd' is not defined

Comment 1 James Laska 2012-02-10 14:10:05 UTC
Reassigning to proper 'aeolus-audrey-agent' component.

Comment 2 Greg Blomquist 2012-02-10 16:21:06 UTC
This is using the audrey-agent-0.5.0 (which is from the audrey master branch -- slated to post-1.0 release).

Adding the cloudforms-1.1.0? flag.

Comment 3 Dan Radez 2012-02-10 21:18:59 UTC
fixed in 7682d0137e2d10f704676dc7a7440adc8ec925ff

Comment 4 dgao 2012-02-21 20:12:28 UTC
[root@10-16-120-227 ~]# rpm -qa | grep "audrey"
aeolus-audrey-agent-0.4.4-2.el6.noarch


[root@10-16-120-227 ~]# ls /etc/init.d/audrey 
/etc/init.d/audrey


[root@10-16-120-227 ~]# cat /var/log/audrey.log 
2012-02-21 15:05:04,150 - INFO    : audrey:1293 Invoked audrey_script_main
2012-02-21 15:05:04,463 - INFO    : audrey:1321 
<Instance of: CSClient
	Version: 1
	Config Server Endpoint: https://deaddonkey.usersys.redhat.com
	Config Server oAuth Key: 26712df2-5cc7-11e1-8332-0024e878a312
	Config Server oAuth Secret: BPFbhtROR0rbb6EomEEcyq6XmGDir8zezoyaZgSnucWMLYV
	Config Server Params: 
	Config Server Configs: 
	Temporary Directory: 
	Tarball Name: 
eot>
2012-02-21 15:05:04,473 - INFO    : audrey:944 Invoked CSClient.get_cs_tooling()
2012-02-21 15:05:04,680 - INFO    : audrey:682 Invoked unpack_tooling()
2012-02-21 15:05:04,686 - INFO    : audrey:901 Invoked CSClient.get_cs_configs()
2012-02-21 15:05:04,895 - INFO    : audrey:1356 No configuration parameters provided. status: 202
2012-02-21 15:05:04,896 - INFO    : audrey:916 Invoked CSClient.get_cs_params()
2012-02-21 15:05:05,092 - INFO    : audrey:520 Invoked generate_provides()
2012-02-21 15:05:05,747 - INFO    : audrey:931 Invoked CSClient.put_cs_params_values()
2012-02-21 15:05:16,047 - INFO    : audrey:901 Invoked CSClient.get_cs_configs()
2012-02-21 15:05:16,300 - INFO    : audrey:612 Execute Tooling command: /var/audrey/tooling/user/proxy1/start
2012-02-21 15:05:16,300 - INFO    : audrey:612 return code: 0
2012-02-21 15:05:16,301 - 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=10-16-120-115
AUDREY_VAR_proxy2_proxy_server_1_param_1=c
AUDREY_VAR_proxy2_proxy_server_1_param_2=d

	<<< End Output
2012-02-21 15:05:16,311 - INFO    : audrey:612 Execute Tooling command: /var/audrey/tooling/user/proxy2/start
2012-02-21 15:05:16,311 - INFO    : audrey:612 return code: 0
2012-02-21 15:05:16,312 - 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=10-16-120-115
AUDREY_VAR_proxy2_proxy_server_1_param_1=c
AUDREY_VAR_proxy2_proxy_server_1_param_2=d

	<<< End Output

Comment 6 errata-xmlrpc 2012-12-04 14:56:31 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-1516.html