Comment 2 for bug 707607

Revision history for this message
Kost (kost-isi) wrote :

Found two more missing components of nova.sh.

Since these bugs are similar I'll add them here:

1.
2011-01-25 15:31:33,288 DEBUG nova.root [-] Inner Exception: No module named glance.client from MainProcess (pid=30268) import_class /home/kost/openstack/nova/trunk/nova/utils.py:56
Traceback (most recent call last):
  File "/home/kost/openstack/nova/trunk/bin/nova-compute", line 44, in <module>
    service.serve()
  File "/home/kost/openstack/nova/trunk/nova/service.py", line 230, in serve
    x.start()
  File "/home/kost/openstack/nova/trunk/nova/service.py", line 80, in start
    **self.saved_kwargs)
  File "/home/kost/openstack/nova/trunk/nova/compute/manager.py", line 112, in __init__
    self.driver = utils.import_object(compute_driver)
  File "/home/kost/openstack/nova/trunk/nova/utils.py", line 66, in import_object
    cls = import_class(import_str)
  File "/home/kost/openstack/nova/trunk/nova/utils.py", line 57, in import_class
    raise exception.NotFound(_('Class %s cannot be found') % class_str)
nova.exception.NotFound: Class get_connection cannot be found

---
FIX: nova.sh needs to install python-glance
---

2.
http://paste.org/pastebin/view/27925
tables aren't updated when using nova.sh with a mysql db. This is b/c the database is deleted, then created.

FIX: add line #126...

123 if [ "$USE_MYSQL" == 1 ]; then
124 mysql -p$MYSQL_PASS -e 'DROP DATABASE nova;'
125 mysql -p$MYSQL_PASS -e 'CREATE DATABASE nova;'
126 $NOVA_DIR/bin/nova-manage --flagfile $NOVA_DIR/bin/nova.conf db sync
127 else

bug fix submitted @
lp:~usc-isi/nova/kost-bugfix-migrate-nova.sh