I've created a script. Test if it helps you. You have to create the /var/log/nova dir. <div><br></div><div>mkdir -p /var/log/nova</div><div><div><br></div><div>__________</div><div>startnova.sh:</div><div><br></div><div>
<div>#!/bin/bash</div><div><br></div><div>service rabbitmq-server start</div><div><br></div><div>cd /opt/stack/glance/bin </div><div>./glance-registry --config-file=../etc/glance-registry.conf > /var/log/nova/glance-registry.log 2>&1 &</div>
<div><br></div><div>cd /opt/stack/glance/bin</div><div>./glance-api --config-file=../etc/glance-api.conf > /var/log/nova/glance-registry.log 2>&1 &</div><div>echo "Waiting for g-api to start..."</div>
<div>if ! timeout 60 sh -c "while ! wget --no-proxy -q -O- <a href="http://127.0.0.1:9292">http://127.0.0.1:9292</a>; do sleep 1; done"; then</div><div>        echo "g-api did not start"</div><div>        exit 1</div>
<div>fi</div><div><br></div><div>cd /opt/stack/keystone/bin</div><div>./keystone --config-file ../etc/keystone.conf -d > /var/log/keystone/keystone.log 2>&1 &</div><div>echo "Waiting for keystone to start..."</div>
<div>if ! timeout 60 sh -c "while ! wget --no-proxy -q -O- <a href="http://127.0.0.1:5000">http://127.0.0.1:5000</a>; do sleep 1; done"; then</div><div>        echo "keystone did not start"</div><div>        exit 1</div>
<div>fi</div><div><br></div><div>cd /opt/stack/nova/bin</div><div>./nova-api > /var/log/nova/nova-api.log 2>&1 &</div><div>echo "Waiting for nova-api to start..."</div><div>if ! timeout 60 sh -c "while ! wget --no-proxy -q -O- <a href="http://127.0.0.1:8774">http://127.0.0.1:8774</a>; do sleep 1; done"; then</div>
<div>        echo "nova-api did not start"</div><div>        exit 1</div><div>fi</div><div><br></div><div>cd /opt/stack/nova/bin </div><div>./nova-scheduler > /var/log/nova/nova-scheduler.log 2>&1 &</div>
<div><br></div><div>cd /opt/stack/noVNC</div><div>./utils/nova-wsproxy.py --flagfile /opt/stack/nova/bin/nova.conf --web . 6080 > /var/log/nova/nova-wsproxy.log 2>&1 &</div><div><br></div><div>cd /opt/stack/nova/bin</div>
<div>./nova-network > /var/log/nova/nova-network.log 2>&1 &</div><div><br></div><div>./nova-volume > /var/log/nova/nova-volume.log 2>&1 &</div><div>./nova-compute > /var/log/nova/nova-compute.log 2>&1 &</div>
</div><div><br></div><div>_______</div><div><br></div><div>To stop nova services, you can use something like that (include all services you run):</div><div><br></div><div>__________</div><div>stopnova.sh:</div><div><br></div>
<div><div>#!/bin/bash</div><div><br></div><div>kill -9 `ps aux | grep -v grep | grep nova-api | awk '{print $2}'`</div><div>kill -9 `ps aux | grep -v grep | grep nova-scheduler | awk '{print $2}'`</div><div>
kill -9 `ps aux | grep -v grep | grep nova-wsproxy.py | awk '{print $2}'`</div><div>kill -9 `ps aux | grep -v grep | grep keystone | awk '{print $2}'`</div><div>service rabbitmq-server stop</div></div><div>
<br></div><div><br></div><div>Regards.</div><div><br><div class="gmail_quote">On Thu, Jan 26, 2012 at 5:02 PM, Joe Smithian <span dir="ltr"><<a href="mailto:joe.smithian@gmail.com">joe.smithian@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
The devstack document doesn't explain how to start/stop services,<br>
maybe it's obvious for the devstack developers but not for a new user<br>
like me!  I can't use  commands like "restart nova-api" because they<br>
are not installed.<br>
<br>
I installed OpenStack using devsatck stack.sh script<br>
(<a href="http://devstack.org/" target="_blank">http://devstack.org/</a>) on Ubuntu 11.10. Installation was successful<br>
and I was able to login to Dahsboard; but it doesn't work anymore, I<br>
think after I changed the IP address of the machine and moved it to<br>
another network.<br>
Apache2 is running but the nova and keystone services are not running.<br>
<br>
Can any one please explain how to start/restart/stop all the services<br>
after installing devstack?<br>
This should be added to the devstack documents.<br>
<br>
Thanks<br>
<br>
Joe<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>- MSc. Correa, J.L.<br><br>
</div></div>