Hi guys,<div><br></div><div>I went through rejoin-stack.sh which may not be what I want to get services back from the original down status. It would be a script used to monitor the logs of running services.</div><div><br></div>
<div>Good news is a procedure has been developped to implement the goal mentioned by the mail subject after doing some research on the script stack.sh. As Tong's mail has mentioned, there is something wrong with the volume daemon. Please patch it with Tong's script if the volume service is needed.</div>
<div><br></div><div><div>'''This is just for starting cloud without initializing mysql databases</div><div> Please ensure run stack.sh successfully before executing the following steps'''</div><div>
<br></div><div>1. Restart MySQL:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>service mysql restart</div><div><br></div><div>2. Start keystone:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>/opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug</div>
<div><br></div><div>3. Restart APACHE:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>service apache2 restart</div><div><br></div><div>4. Restart libvirt-bin:</div><div><br></div><div>
<span class="Apple-tab-span" style="white-space:pre"> </span>service libvirt-bin restart</div><div><br></div><div>5. Start glance:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>/opt/stack/glance/bin/glance-registry --config-file /etc/glance/glance-registry.conf &</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>/opt/stack/glance/bin/glance-api --config-file /etc/glance/glance-api.conf &</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Verify glance is working:</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>wget -q -O- <a href="http://127.0.0.1:9292">http://127.0.0.1:9292</a></div><div><br></div><div>6. Start nova-api:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>/opt/stack/nova/bin/nova-api & </div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Verify novap-api is working:</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>wget -q -O- <a href="http://127.0.0.1:8774">http://127.0.0.1:8774</a></div>
<div><br></div><div>7. Start nova:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>/opt/stack/nova/bin/nova-cert & </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>/opt/stack/nova/bin/nova-network & </div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>/opt/stack/nova/bin/nova-scheduler & </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>/opt/stack/noVNC/utils/nova-novncproxy --config-file /etc/nova/nova.conf & </div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>/opt/stack/nova/bin/nova-xvpvncproxy --config-file /etc/nova/nova.conf & </div><div><span class="Apple-tab-span" style="white-space:pre"> </span>/opt/stack/nova/bin/nova-consoleauth & </div>
<div><br></div><div>8. Start cinder:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>/opt/stack/cinder/bin/cinder-api --config-file /etc/cinder/cinder.conf &</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>/opt/stack/cinder/bin/cinder-volume --config-file /etc/cinder/cinder.conf &</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>/opt/stack/cinder/bin/cinder-scheduler --config-file /etc/cinder/cinder.conf &</div></div><div><br></div><div>If you've got any point, please let me know.</div>
<div><br></div><div>Regards,</div><div>Howard</div><div><div><br><div class="gmail_quote">On Fri, Oct 26, 2012 at 12:30 AM, Tong Li <span dir="ltr"><<a href="mailto:litong01@us.ibm.com" target="_blank">litong01@us.ibm.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<p><font face="sans-serif">As I indicated, you can dress the volume stuff. Here is the rejoin-stack.sh I have, I just added a few lines to deal with the volume problem, if you use the script attached, everything will work fine. if you have swift enabled, change the data file to fit your configuration </font><br>
<br>
<i>(See attached file: rejoin-stack.sh)</i></p><div class="im"><br>
<br>
<font face="sans-serif">Tong Li<br>
Emerging Technologies & Standards<br>
</font><br>
</div><img width="16" height="16" src="cid:2__=0ABBF031DFC9C18B8f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for Dean Troyer ---10/25/2012 11:34:57 AM---On Thu, Oct 25, 2012 at 10:03 AM, Tong Li <litong01@us.ibm.co"><font color="#424282" face="sans-serif">Dean Troyer ---10/25/2012 11:34:57 AM---On Thu, Oct 25, 2012 at 10:03 AM, Tong Li <<a href="mailto:litong01@us.ibm.com" target="_blank">litong01@us.ibm.com</a>> wrote: > you can run rejoin-stack.sh</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From: </font><font size="1" face="sans-serif">Dean Troyer <<a href="mailto:dtroyer@gmail.com" target="_blank">dtroyer@gmail.com</a>></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To: </font><font size="1" face="sans-serif">Tong Li/Raleigh/IBM@IBMUS, </font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Cc: </font><font size="1" face="sans-serif">Hao Wang <<a href="mailto:hao.1.wang@gmail.com" target="_blank">hao.1.wang@gmail.com</a>>, <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date: </font><font size="1" face="sans-serif">10/25/2012 11:34 AM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject: </font><font size="1" face="sans-serif">Re: [Openstack] Could I restart devstack with old configuration?</font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091a5"><div><div class="h5"><br>
<br>
<br>
<font size="3" face="serif">On Thu, Oct 25, 2012 at 10:03 AM, Tong Li <</font><a href="mailto:litong01@us.ibm.com" target="_blank"><font size="3" color="#0000FF" face="serif"><u>litong01@us.ibm.com</u></font></a><font size="3" face="serif">> wrote:</font>
<ul style="padding-left:9pt"><font size="3" face="sans-serif">you can run rejoin-stack.sh from devstack directory to restart the whole thing. However, there are some problems dealing with volume. But other services should be OK.</font></ul>
<br>
<br>
<font size="3" face="serif">rejoin-stack.sh only addresses restarting the processes running under screen. If you've used unstack.sh or rebooted it will probably not bring everything back. We do need restack.sh to undo unstack.sh. ;)</font><br>
<br>
<font size="3" face="serif">As an alternative, if/when you do want to start with a fresh install but have additional things to add you can create local.sh to do that work at the end of stack.sh. There is an example in samples/local.sh.</font><br>
<br>
<font size="3" face="serif">dt</font><br>
<br>
<font size="3" face="serif">-- <br>
<br>
Dean Troyer</font><font size="3" color="#0000FF" face="serif"><u><br>
</u></font><a href="mailto:dtroyer@gmail.com" target="_blank"><font size="3" color="#0000FF" face="serif"><u>dtroyer@gmail.com</u></font></a><font size="3" face="serif"><br>
</font><br>
</div></div><p></p></div>
</blockquote></div><br></div></div>