Install and configure controller node in OpenStack Installation Guide import error at /usr/lib/python2.6/site-packages/migrate/versioning/schema.py", line 10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-manuals |
Invalid
|
Undecided
|
Unassigned |
Bug Description
-------
Built: 2014-07-23T07:06:38 00:00
git SHA: 7352529ae6cd613
URL: http://
source File: file:/home/
xml:id: nova-controller
I am running under Centos 6.5
When I run su -s /bin/sh -c "nova-manage db sync" nova
I get an exception at
File "/usr/lib/
from sqlalchemy import exceptions as sa_exceptions
ImportError: cannot import name exceptions
Uncaught exception. Entering post mortem debugging
The complete stack trace in the debugger is
(Pdb) c
Command failed, please check log for more info
Traceback (most recent call last):
File "/usr/lib64/
pdb.
File "/usr/lib64/
self.
File "/usr/lib64/
exec cmd in globals, locals
File "<string>", line 1, in <module>
File "/usr/bin/
sys.
File "/usr/lib/
ret = fn(*fn_args, **fn_kwargs)
File "/usr/lib/
return migration.
File "/usr/lib/
return IMPL.db_
File "/usr/lib/
backend = self.__
File "/usr/lib/
self.__backend = __import__(name, None, None, fromlist)
File "/usr/lib/
from migrate.versioning import api as versioning_api
File "/usr/lib/
from migrate.versioning import (exceptions, repository, schema, version,
File "/usr/lib/
from sqlalchemy import exceptions as sa_exceptions
ImportError: cannot import name exceptions
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> /usr/lib/
-> from sqlalchemy import exceptions as sa_exceptions
(Pdb)
Here is the PYTHONPATH at the point of the failure
(Pdb) print sys.path
['/usr/bin', '/usr/lib64/
(Pdb)
sqlalchemy is installed:
<email address hidden>:~# yum list | fgrep -i sqlal
Repository sl-release-el6 is listed more than once in the configuration
python-
python-
python-
python-
python-
python-
<email address hidden>:~#
This was previously reported on <email address hidden> which I now think was the wrong place to put it.
Jeff
summary: |
Install and configure controller node in OpenStack Installation Guide - import error at + import error at /usr/lib/python2.6/site- + packages/migrate/versioning/schema.py", line 10 |
I think the problem is there is a file missing from sqlalchemy.
I used the sys.path variable to see where the imported file might be from. I settled on /usr/lib64/ python2. 6/site- packages/
I looked to see what packages supply a file that's present
<email address hidden>:~# yum provides /usr/lib64/ python2. 6/site- packages/ sqlalchemy/ events. py 6.5-plus/ filelists | 978 kB 00:00 6.5-updates/ filelists | 2.8 MB 00:00 x86_64/ filelists | 7.3 MB 00:00 plugins/ filelists_ db | 45 kB 00:00 icehouse/ filelists_ db | 1.9 MB 00:00 deps/filelists_ db | 189 kB 00:00 products/ filelists_ db | 954 kB 00:00 el6/filelists | 815 kB 00:00 sqlalchemy- 0.8.4-1. el6.x86_ 64 : Modular and flexible ORM library for python python2. 6/site- packages/ sqlalchemy/ events. py
Loaded plugins: fastestmirror, priorities, security
Repository sl-release-el6 is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* epel: mirror.pnl.gov
14039 packages excluded due to repository priority protections
centos-
centos-
epel/filelists_db | 8.9 MB 00:01
epel-6-
foreman-
openstack-
puppetlabs-
puppetlabs-
sl-release-
python-
Repo : openstack-icehouse
Matched from:
Filename : /usr/lib64/
python- sqlalchemy- 0.8.4-1. el6.x86_ 64 : Modular and flexible ORM library for python python2. 6/site- packages/ sqlalchemy/ events. py
Repo : installed
Matched from:
Other : Provides-match: /usr/lib64/
Then looked more information from python-sqlalchemy:
<email address hidden>:~# yum info python-sqlalchemy www.sqlalchemy. org/
Loaded plugins: fastestmirror, priorities, security
Repository sl-release-el6 is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* epel: mirrors.cat.pdx.edu
14039 packages excluded due to repository priority protections
Installed Packages
Name : python-sqlalchemy
Arch : x86_64
Version : 0.8.4
Release : 1.el6
Size : 18 M
Repo : installed
From repo : openstack-icehouse
Summary : Modular and flexible ORM library for python
URL : http://
License : MIT
Description : SQLAlchemy is an Object Relational Mappper (ORM) that provides a flexible,
: high-level interface to SQL databases. Database and domain concepts are
: decoupled, allowing both sides maximum flexibility and power. SQLAlchemy...