Bug 747319

Summary: running audrey cli results in traceback
Product: [Retired] CloudForms Cloud Engine Reporter: dgao
Component: aeolus-audrey-agentAssignee: Dan Radez <dradez>
Status: CLOSED CURRENTRELEASE QA Contact: dgao
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: gblomqui, 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-08-30 17:15:05 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 2011-10-19 13:27:48 UTC
[root@aeolus-client-1-qe ~]# yum info aeolus-audrey_startup-0.3.1-2.fc15.noarch
fedora-aeolus-testing                                                                                                                                                         | 1.3 kB     00:00     
updates/metalink                                                                                                                                                              |  14 kB     00:00     
Installed Packages
Name        : aeolus-audrey_startup
Arch        : noarch
Version     : 0.3.1
Release     : 2.fc15
Size        : 44 k
Repo        : installed
From repo   : fedora-aeolus-testing
Summary     : The Aeolus Audrey Startup Script
URL         : http://aeolusproject.org
License     : GPLv2+ and MIT and BSD
Description : The Aeolus Audrey Startup script runs on a instances in a cloud at boot and
            : contacts an Aeolus Config Server to retrieve post-boot configuration data.


[root@aeolus-client-1-qe ~]# audrey -a configserver-qe.usersys.redhat.com -p 443 -u 762101c0-f042-11e0-80e0-52540020e3d1 -P password 
Traceback (most recent call last):
  File "/usr/bin/audrey", line 1373, in <module>
    audrey_script_main()
  File "/usr/bin/audrey", line 1348, in audrey_script_main
    params_values = generate_provides(params)
  File "/usr/bin/audrey", line 497, in generate_provides
    system_info_dict = _get_system_info()
  File "/usr/bin/audrey", line 414, in _get_system_info
    (' '.join(cmd), str(ret['err'])))
  File "/usr/bin/audrey", line 66, in _raise_ASError
    raise ASError(err_msg)
__main__.ASError: Failed command: 
/usr/bin/facter 
Error: 
[Errno 2] No such file or directory

Comment 1 Greg Blomquist 2011-10-19 13:39:15 UTC
Apparently, the audrey client RPM spec does not include any Requires" clauses.

Reassigning to Dan since he's knee deep in this right now.

Comment 2 Dan Radez 2011-10-19 18:57:06 UTC
looks like we're missing some rpm deps
I'll get those added

Dan

Comment 3 wes hayutin 2011-10-19 19:41:28 UTC
Hey Dan, please do not verify bugs.. just dump them off to on_qa

Comment 4 Dan Radez 2011-10-20 02:29:18 UTC
Pushed a fix for this.
David how were you building this? with make?
Let me know if I need to update the version in the spec file.

Comment 5 dgao 2011-10-20 12:56:19 UTC
Thanks for the fix Dan. I'm currently using the rpm version of audrey client, so this requires an update to the spec file. Thanks

Comment 6 dgao 2011-10-20 14:22:38 UTC
Verified.

[root@aeolus-client-1-qe ~]# yum clean all
Cleaning repos: fedora fedora-aeolus-testing updates
Cleaning up Everything
[root@aeolus-client-1-qe ~]# yum install aeolus-audrey_startup
fedora/metalink                                                                                                                                                               |  23 kB     00:00     
fedora                                                                                                                                                                        | 4.2 kB     00:00     
fedora/primary_db                                                                                                                                                             |  14 MB     00:06     
fedora-aeolus-testing                                                                                                                                                         | 1.3 kB     00:00     
fedora-aeolus-testing/primary                                                                                                                                                 |  35 kB     00:00     
fedora-aeolus-testing                                                                                                                                                                        133/133
updates/metalink                                                                                                                                                              |  12 kB     00:00     
updates                                                                                                                                                                       | 4.7 kB     00:00     
updates/primary_db                                                                                                                                                            | 5.2 MB     00:02     
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package aeolus-audrey_startup.noarch 0:0.3.1-3.fc15 will be installed
--> Processing Dependency: facter for package: aeolus-audrey_startup-0.3.1-3.fc15.noarch
--> Processing Dependency: python-oauth2 for package: aeolus-audrey_startup-0.3.1-3.fc15.noarch
--> Running transaction check
---> Package facter.noarch 0:1.6.1-1.fc15 will be installed
---> Package python-oauth2.noarch 0:1.2.1-3.fc15 will be installed
--> Processing Dependency: python-simplejson for package: python-oauth2-1.2.1-3.fc15.noarch
--> Running transaction check
---> Package python-simplejson.x86_64 0:2.1.6-1.fc15.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================================================================================
 Package                                              Arch                                  Version                                       Repository                                            Size
=====================================================================================================================================================================================================
Installing:
 aeolus-audrey_startup                                noarch                                0.3.1-3.fc15                                  fedora-aeolus-testing                                 13 k
Installing for dependencies:
 facter                                               noarch                                1.6.1-1.fc15                                  updates                                               64 k
 python-oauth2                                        noarch                                1.2.1-3.fc15                                  updates                                               25 k
 python-simplejson                                    x86_64                                2.1.6-1.fc15.1                                updates                                              125 k

Transaction Summary
=====================================================================================================================================================================================================
Install       4 Package(s)

Total download size: 227 k
Installed size: 730 k
Is this ok [y/N]: y
Downloading Packages:
(1/4): aeolus-audrey_startup-0.3.1-3.fc15.noarch.rpm                                                                                                                          |  13 kB     00:00     
(2/4): facter-1.6.1-1.fc15.noarch.rpm                                                                                                                                         |  64 kB     00:00     
(3/4): python-oauth2-1.2.1-3.fc15.noarch.rpm                                                                                                                                  |  25 kB     00:00     
(4/4): python-simplejson-2.1.6-1.fc15.1.x86_64.rpm                                                                                                                            | 125 kB     00:00     
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                150 kB/s | 227 kB     00:01     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : python-simplejson-2.1.6-1.fc15.1.x86_64                                                                                                                                           1/4 
  Installing : python-oauth2-1.2.1-3.fc15.noarch                                                                                                                                                 2/4 
  Installing : facter-1.6.1-1.fc15.noarch                                                                                                                                                        3/4 
  Installing : aeolus-audrey_startup-0.3.1-3.fc15.noarch                                                                                                                                         4/4 

Installed:
  aeolus-audrey_startup.noarch 0:0.3.1-3.fc15                                                                                                                                                        

Dependency Installed:
  facter.noarch 0:1.6.1-1.fc15                              python-oauth2.noarch 0:1.2.1-3.fc15                              python-simplejson.x86_64 0:2.1.6-1.fc15.1                             

Complete!
[root@aeolus-client-1-qe ~]# audrey -a configserver-qe.usersys.redhat.com -p 443 -u 7634ed70-f042-11e0-80e0-52540020e3d1 -P password
[root@aeolus-client-1-qe ~]# echo $?
0

Comment 7 James Laska 2012-02-10 14:09:47 UTC
Reassigning to proper 'aeolus-audrey-agent' component.