0

I have installed openstack on Ubuntu 12.04 single node using devstack. Now, it was running smoothly till yesterday. When i ran ./stack.sh today, it showed an error

./stack.sh:672 nova-api did not start

I have python-paste and python-pastedeploy installed. How to fix this error?

Pensu
  • 3,263
  • 10
  • 46
  • 71

2 Answers2

2

check out for errors in nova api screen run this command to open screens

screen -x stack

open n-api screen ususally ( Ctrl + A + 5 ). Check for errors and then restart Nova API with this command.

cd /opt/stack/nova && /usr/local/bin/nova-api & echo $! >/opt/stack/status/stack/n-api.pid; fg || echo "n-api failed to start" | tee "/opt/stack/status/stack/n-api.failure"
Waqas
  • 615
  • 1
  • 8
  • 20
0

General rule of thumb for devstack.

Always unstack.sh before re-running stack.sh or pulling from repositories and re-running stack.sh

Matt Joyce
  • 2,010
  • 2
  • 20
  • 31
  • Yeah, I did that and unfortunately it didn't work. So, I just deleted the VM, launched it again and set up devstack. It's working fine as of now. Though, I am not sure, when it's gonna crash again! – Pensu Jun 21 '13 at 04:37
  • It's an active dev environment. Occasionally someone breaks the build =/ Happens less often now. Usually gets corrected fairly quickly. You might consider working inside of an LXC rather than a VM... or keeping a virgin qcow to reset to and build from. – Matt Joyce Jun 21 '13 at 05:40