<HTML>
<HEAD>
<TITLE>Re: [Openstack] How to start/stop/restart services in devstack</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>It is being worked on (the split/cleanup) ;)<BR>
Along with making devstack resemble something more like the rest of openstack (python)....<BR>
Testing is always helpful @ <a href="https://github.com/yahoo/Openstack-Devstack2">https://github.com/yahoo/Openstack-Devstack2</a> ;)<BR>
<a href="https://github.com/yahoo/Openstack-Devstack2/wiki">https://github.com/yahoo/Openstack-Devstack2/wiki</a> (for some common questions/answers).<BR>
<BR>
On 1/26/12 12:17 PM, "Joe Smithian" <<a href="joe.smithian@gmail.com">joe.smithian@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Thanks for your comments. I don't have any users, images, etc. to<BR>
worry about, I didn't go that fat to create users and images.<BR>
<BR>
I re-run stack.sh and horizon and keystone were running; I  lunched an<BR>
instance then tried to access<BR>
<a href="http://myServer/nova/access_and_security/">http://myServer/nova/access_and_security/</a> but machine crashed and I<BR>
have to reboot it!<BR>
<BR>
I think stack.sh should be divided into two scripts one to install<BR>
devstack and another to start/stop/restart services.<BR>
<BR>
Thanks<BR>
<BR>
Joe<BR>
<BR>
<BR>
<BR>
On Thu, Jan 26, 2012 at 2:57 PM, Kiall Mac Innes <<a href="kiall@managedit.ie">kiall@managedit.ie</a>> wrote:<BR>
> Yea, re-running stack.sh should bring everything back up.<BR>
><BR>
> Bear in mind this will wipe all users, images, instances etc (devstack is<BR>
> for development, rather than production openstack environments after all)<BR>
><BR>
> Thanks,<BR>
> Kiall<BR>
><BR>
> Sent from my mobile - Sorry for being short.<BR>
><BR>
> On Jan 26, 2012 7:45 p.m., "Joe Smithian" <<a href="joe.smithian@gmail.com">joe.smithian@gmail.com</a>> wrote:<BR>
>><BR>
>> localadmin@k:~$ sudo screen -x<BR>
>> There is no screen to be attached.<BR>
>><BR>
>> localadmin@k:~$ killall screen<BR>
>> screen: no process found<BR>
>><BR>
>> Should I re-run stack.sh?<BR>
>><BR>
>><BR>
>><BR>
>><BR>
>><BR>
>> On Thu, Jan 26, 2012 at 2:24 PM, Dean Troyer <<a href="dtroyer@gmail.com">dtroyer@gmail.com</a>> wrote:<BR>
>> > On Thu, Jan 26, 2012 at 1:02 PM, Joe Smithian <<a href="joe.smithian@gmail.com">joe.smithian@gmail.com</a>><BR>
>> > wrote:<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>
>> > Devstack starts the OpenStack services running in the foreground in a<BR>
>> > screen session.  Type 'screen -x' to attach to the session, there will<BR>
>> > be a window for each service plus one shell window.  Stop the each<BR>
>> > service with a Ctrl-C.  Press up-arrow to see the command stack.sh<BR>
>> > used to start it and execute that to restart the service.<BR>
>> ><BR>
>> >> I installed OpenStack using devsatck stack.sh script<BR>
>> >> (<a href="http://devstack.org/">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>
>> > If you had already stated an instance, Nova probably moved your IP<BR>
>> > from eth0 to br100.  You would need to manually update the br100<BR>
>> > configuration.  You might also need to update some other configuration<BR>
>> > bits (floating IPs, etc) if you changed networks and want to access<BR>
>> > the instances from off the host.<BR>
>> ><BR>
>> > Your best bet here may be to just bite the bullet and 'killall screen'<BR>
>> > re-run stack.sh.  Of course this will re-initialize all of the<BR>
>> > databases and kill running instances.<BR>
>> ><BR>
>> > dt<BR>
>> ><BR>
>> > --<BR>
>> ><BR>
>> > Dean Troyer<BR>
>> > <a href="dtroyer@gmail.com">dtroyer@gmail.com</a><BR>
>><BR>
>> _______________________________________________<BR>
>> Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
>> Post to     : <a href="openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><BR>
>> Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
>> More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><BR>
<BR>
_______________________________________________<BR>
Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
Post to     : <a href="openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><BR>
Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>