This is fixed in lp:~vishvananda/nova/friendly-db if it ever merges Vish On Jan 25, 2011, at 12:13 PM, Kost wrote: > Public bug reported: > > kost@island106:~/openstack/nova/trunk$ bzr revno > 611 > > kost@island106:~/openstack/nova$ sudo ./trunk/bin/nova-manage db sync > Traceback (most recent call last): > File "./trunk/bin/nova-manage", line 675, in > main() > File "./trunk/bin/nova-manage", line 667, in main > fn(*argv) > File "./trunk/bin/nova-manage", line 546, in sync > return migration.db_sync(version) > File "/home/kost/openstack/nova/trunk/nova/db/migration.py", line 33, in db_sync > return IMPL.db_sync(version=version) > File "/home/kost/openstack/nova/trunk/nova/utils.py", line 335, in __getattr__ > backend = self.__get_backend() > File "/home/kost/openstack/nova/trunk/nova/utils.py", line 330, in __get_backend > self.__backend = __import__(name, None, None, fromlist) > File "/home/kost/openstack/nova/trunk/nova/db/sqlalchemy/migration.py", line 24, in > from migrate.versioning import api as versioning_api > ImportError: No module named migrate.versioning > kost@island106:~/openstack/nova$ vim nova.sh.trunk > kost@island106:~/openstack/nova$ sudo apt-get install python-migrate > Reading package lists... Done > Building dependency tree > Reading state information... Done > The following extra packages will be installed: > python-decorator python-tempita > The following NEW packages will be installed: > python-decorator python-migrate python-tempita > 0 upgraded, 3 newly installed, 0 to remove and 22 not upgraded. > Need to get 345kB of archives. > After this operation, 1,884kB of additional disk space will be used. > Do you want to continue [Y/n]? y > Get:1 http://ppa.launchpad.net/nova-core/trunk/ubuntu/ lucid/main python-migrate 0.6-4~lucid1 [162kB] > Get:2 http://us.archive.ubuntu.com/ubuntu/ lucid/universe python-decorator 3.1.2-1 [131kB] > Get:3 http://us.archive.ubuntu.com/ubuntu/ lucid/universe python-tempita 0.4-1 [52.0kB] > Fetched 345kB in 1s (270kB/s) > Selecting previously deselected package python-decorator. > (Reading database ... 93903 files and directories currently installed.) > Unpacking python-decorator (from .../python-decorator_3.1.2-1_all.deb) ... > Selecting previously deselected package python-tempita. > Unpacking python-tempita (from .../python-tempita_0.4-1_all.deb) ... > Selecting previously deselected package python-migrate. > Unpacking python-migrate (from .../python-migrate_0.6-4~lucid1_all.deb) ... > Processing triggers for man-db ... > Setting up python-decorator (3.1.2-1) ... > > Setting up python-tempita (0.4-1) ... > > Setting up python-migrate (0.6-4~lucid1) ... > > Processing triggers for python-support ... > kost@island106:~/openstack/nova$ sudo ./trunk/bin/nova-manage db sync > 2011-01-25 15:03:40,793 INFO migrate.versioning.api [-] 0 -> 1... > 2011-01-25 15:03:41,238 INFO migrate.versioning.api [-] done > 2011-01-25 15:03:41,238 INFO migrate.versioning.api [-] 1 -> 2... > 2011-01-25 15:03:41,500 INFO migrate.versioning.api [-] done > > --- > > bug fix submitted @ > lp:~usc-isi/nova/kost-bugfix-migrate-nova.sh > > ** Affects: nova > Importance: Undecided > Status: New > > -- > You received this bug notification because you are a member of Nova Bug > Team, which is subscribed to OpenStack Compute (nova). > https://bugs.launchpad.net/bugs/707607 > > Title: > nova.sh doesn't install python-migrate > > Status in OpenStack Compute (Nova): > New > > Bug description: > kost@island106:~/openstack/nova/trunk$ bzr revno > 611 > > kost@island106:~/openstack/nova$ sudo ./trunk/bin/nova-manage db sync > Traceback (most recent call last): > File "./trunk/bin/nova-manage", line 675, in > main() > File "./trunk/bin/nova-manage", line 667, in main > fn(*argv) > File "./trunk/bin/nova-manage", line 546, in sync > return migration.db_sync(version) > File "/home/kost/openstack/nova/trunk/nova/db/migration.py", line 33, in db_sync > return IMPL.db_sync(version=version) > File "/home/kost/openstack/nova/trunk/nova/utils.py", line 335, in __getattr__ > backend = self.__get_backend() > File "/home/kost/openstack/nova/trunk/nova/utils.py", line 330, in __get_backend > self.__backend = __import__(name, None, None, fromlist) > File "/home/kost/openstack/nova/trunk/nova/db/sqlalchemy/migration.py", line 24, in > from migrate.versioning import api as versioning_api > ImportError: No module named migrate.versioning > kost@island106:~/openstack/nova$ vim nova.sh.trunk > kost@island106:~/openstack/nova$ sudo apt-get install python-migrate > Reading package lists... Done > Building dependency tree > Reading state information... Done > The following extra packages will be installed: > python-decorator python-tempita > The following NEW packages will be installed: > python-decorator python-migrate python-tempita > 0 upgraded, 3 newly installed, 0 to remove and 22 not upgraded. > Need to get 345kB of archives. > After this operation, 1,884kB of additional disk space will be used. > Do you want to continue [Y/n]? y > Get:1 http://ppa.launchpad.net/nova-core/trunk/ubuntu/ lucid/main python-migrate 0.6-4~lucid1 [162kB] > Get:2 http://us.archive.ubuntu.com/ubuntu/ lucid/universe python-decorator 3.1.2-1 [131kB] > Get:3 http://us.archive.ubuntu.com/ubuntu/ lucid/universe python-tempita 0.4-1 [52.0kB] > Fetched 345kB in 1s (270kB/s) > Selecting previously deselected package python-decorator. > (Reading database ... 93903 files and directories currently installed.) > Unpacking python-decorator (from .../python-decorator_3.1.2-1_all.deb) ... > Selecting previously deselected package python-tempita. > Unpacking python-tempita (from .../python-tempita_0.4-1_all.deb) ... > Selecting previously deselected package python-migrate. > Unpacking python-migrate (from .../python-migrate_0.6-4~lucid1_all.deb) ... > Processing triggers for man-db ... > Setting up python-decorator (3.1.2-1) ... > > Setting up python-tempita (0.4-1) ... > > Setting up python-migrate (0.6-4~lucid1) ... > > Processing triggers for python-support ... > kost@island106:~/openstack/nova$ sudo ./trunk/bin/nova-manage db sync > 2011-01-25 15:03:40,793 INFO migrate.versioning.api [-] 0 -> 1... > 2011-01-25 15:03:41,238 INFO migrate.versioning.api [-] done > 2011-01-25 15:03:41,238 INFO migrate.versioning.api [-] 1 -> 2... > 2011-01-25 15:03:41,500 INFO migrate.versioning.api [-] done > > --- > > bug fix submitted @ > lp:~usc-isi/nova/kost-bugfix-migrate-nova.sh > >