Failed to exec /usr/sbin/euca-* commands on CentOS

Bug #670419 reported by Tomofumi Tanaka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Eucalyptus
New
Undecided
Mitch Garnaat

Bug Description

Failed to execute /usr/sbin/euca-* commands on CentOS 5.5.

1. Install Eucalyptus 2.0.1 from rpm packages on centos 5.5.
2. start eucalyptus after configuration.
3. execute /usr/sbin/euca-describe-users. but failed.

[root@localhost ~]# euca-describe-users
Traceback (most recent call last):
  File "/usr/sbin/euca-describe-users", line 2, in ?
    import getopt, sys, os, boto
ImportError: No module named boto

Cause 1
wrong header
#!/usr/bin/env python
->
#!/usr/bin/env python2.5

I fixed it by this command.
for cmd in `rpm -ql eucalyptus-2.0.1-1|grep '/usr/sbin/euca-'`

do

   sed -i -e 's|^\(#!/usr/bin/env python\)$|\12.5|' ${cmd}

done

Cause 2.
These script need boto module.
But eucalytpus rpm packages has no depedencies.
[root@localhost ~]# rpm -Uvh euca2ools-1.3.1-1.i386.rpm

After Install euca2ools and change header, works fine.
[root@localhost ~]# euca-describe-users
USER admin n/a ADMIN ENABLED
USER-GROUP admin default
USER-CERT admin CN=admin, OU=Eucalyptus, O=User, C=US 18297771533416
USER-KEYS admin AAA
USER-CODE admin BBB
USER-WEB admin CCC

But still failed to exec euca-get-credentials.
[root@localhost ~]# euca-get-credentials
Traceback (most recent call last):
  File "/usr/sbin/euca-get-credentials", line 2, in <module>
    import sys, os, boto, psutil, re, getpass
ImportError: No module named psutil

Daniel Nurmi (nurmi)
Changed in eucalyptus:
assignee: nobody → Mitch Garnaat (mitch-garnaat)
Revision history for this message
Miguel Zuniga (miguelzuniga) wrote :

I can confirm this also, so I built the psutil python rpm for centos 5.4 out of the psutil version 0.2.0 on google code and now im getting this error:

# euca-get-credentials
Traceback (most recent call last):
  File "/usr/sbin/euca-get-credentials", line 3, in <module>
    from euca_admin import local
ImportError: cannot import name local

I tried to keep digging into it but I couldnt found any class named local on the python files inside of the /usr/sbin/euca_admin where the module is.

Any suggestions?

Revision history for this message
graziano obertelli (graziano.obertelli) wrote :

This is a euca2ools issue.

affects: eucalyptus → euca2ools
Revision history for this message
Garrett Holmstrom (gholms) wrote :

euca-describe-users, along with most other euca-* commands in /usr/sbin, are part of Eucalyptus's administration toolchain, not euca2ools.

affects: euca2ools → eucalyptus
Revision history for this message
Andy Grimm (agrimm) wrote :

This issue is now being tracked upstream at http://eucalyptus.atlassian.net/browse/EUCA-2736

Please watch that issue for further updates.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.