N-api failed to start when running through devstack
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned | ||
devstack |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I downloaded the latest version of Devstack (checked out via git) and I'm running ./stack.sh
I get the following error:
/opt/stack/horizon$ cd /opt/stack/nova && /usr/local/
Traceback (most recent call last):
File "/usr/local/
from nova.cmd.api import main
File "/opt/stack/
from nova import config
File "/opt/stack/
from nova.openstack.
File "/opt/stack/
deprecated_
AttributeError: 'module' object has no attribute 'DeprecatedOpt'
n-api failed to start
I'm new to this project, please let me know if you need more details
Changed in devstack: | |
status: | Incomplete → Invalid |
I saw the same behavior on my system. Here's what I did to fix it.
1. Check the content of the /usr/local/ lib/python2. 7/dist- packages/ directory
2. If you see a directory named oslo novagate to it and the to its subdirectory config. Check the timestamp on the cfg.py file. You will probably see and older timestamp (way before your current stack.sh execution.
3. The clean approach would be to uninstall the packahe:
sudo pip uninstall oslo
If this doesn't work you may try the brute force: (use at your own discretion)
4. Manually remove the oslo directory: lib/python2. 7/dist- packages/ oslo
sudo rm -Rf /usr/local/
and the corresponding oslo-config egg and pth files in /usr/local/ lib/python2. 7/dist- packages/
4. Rerun ./stack.sh
This has fixed the issue on my system.