<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'>This actually is something I wanted to verify.<BR>
What are the reasons sudo won’t work?<BR>
Apache running seems to be the only reason for that? Also the fact that config files are written to privileged locations (/etc/apache2...), volume group commands and such.<BR>
In the newer devstack I am working on sudo should work since the process of installing (to any location u pick) and then starting is separated (and the apache user/group is configurable) but I just wanted to double check this.<BR>
<BR>
On 1/26/12 11:55 AM, "Vishvananda Ishaya" <<a href="vishvananda@gmail.com">vishvananda@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>stack.sh doesn't run as root so sudo is incorrect.<BR>
it runs as local user or if you ran it as root originally, it will create a user called stack change to that user and rerun itself.<BR>
(which means you will need to do sudo su stack; screen -x)<BR>
<BR>
If it isn't running as the stack user, you probably just need to rerun it.<BR>
<BR>
Vish<BR>
<BR>
On Jan 26, 2012, at 11:30 AM, Joe Smithian 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>> 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>
_______________________________________________<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>