Failed to exec /usr/sbin/euca-* commands on CentOS
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/
[root@localhost ~]# euca-describe-users
Traceback (most recent call last):
File "/usr/sbin/
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-
do
sed -i -e 's|^\(#
done
Cause 2.
These script need boto module.
But eucalytpus rpm packages has no depedencies.
[root@localhost ~]# rpm -Uvh euca2ools-
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-
[root@localhost ~]# euca-get-
Traceback (most recent call last):
File "/usr/sbin/
import sys, os, boto, psutil, re, getpass
ImportError: No module named psutil
Changed in eucalyptus: | |
assignee: | nobody → Mitch Garnaat (mitch-garnaat) |
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 euca-get- credentials" , line 3, in <module>
Traceback (most recent call last):
File "/usr/sbin/
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?