openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #09572
Re: nova-manage error message "CRITICAL nova [-] cannot import name util"
Am 04.04.2012 18:29, schrieb Russell Bryant:
> On 04/04/2012 11:36 AM, Mauch, Viktor (SCC) wrote:
>> Hi,
>>
>> I just install the current source code of nova, glance and
>> python-novaclient on a CentOS 6.2 node.
>>
>> Running command: #nova-manage db sync
>>
>> Gives me the following error message:
>>
>> Command failed, please check log for more info
>>
>> 2012-04-04 16:40:57 CRITICAL nova [-] cannot import name util
>>
>>
>> Any idea what I do wrong?
>
> How did you do the install? Did you use packages? If so, which ones?
>
Hi,
No, I used the current available source code from git repository:
I used CentOS 6.2 with all current updates
I imported the EPEL Repository: http://fedoraproject.org/wiki/EPEL
Then:
#yum install python-devel openssl-devel git qemu-kvm qemu-img libvirt
virt-manager xorg-x11-xauth xorg-x11-server-utils mysql mysql-server
euca2ools gcc gcc-c++ make libxml2-devel libxslt-devel python-gflags
python-pip
#easy_install virtualenv greenlet pip eventlet iso8601 lockfile webob
paste pastedeploy routes sqlalchemy migrate paramiko nose pygments babel
wsgiref markdown xattr kombu utils
#system-config-firewall-tui # deactivate firewall
#nano /etc/sysconfig/selinux # set ‘SELINUX=disabled’
#reboot
#git clone https://github.com/openstack/nova.git
#./run_tests.sh
python setup.py build && python setup.py install
#git clone https://github.com/openstack/glance.git
python setup.py build && python setup.py install
#git clone https://github.com/openstack/python-novaclient.git
python setup.py build && python setup.py install
#nova-manage db sync
Command failed, please check log for more info
2012-04-04 16:40:57 CRITICAL nova [-] cannot import name util
I also try the stable diablo source code and the current source code
from grid dynamics. But here I got another error message when tried to
run "nova-manage db sync":
#nova-manage db sync
/usr/lib/python2.6/site-packages/migrate-0.2.2-py2.6.egg/migrate/versioning/unique_instance.py:19:
DeprecationWarning: object.new() takes no parameters
instances[key] = super(UniqueInstance,cls).new(cls,*p,**k)
Possible wrong number of arguments supplied
Sync the database up to the most recent version.
Usage: nova-manage db sync [options]
Options:
-h, --help show this help message and exit
--version= Database version
2012-04-04 17:41:00,344 CRITICAL nova [-] init() takes exactly 1
argument (2 given)
2012-04-04 17:41:00,344 CRITICAL nova [-] init() takes exactly 1
argument (2 given)
Thanks for your help!!
Best Regards
vic
Follow ups
References