Re: [Openstack] Could I restart devstack with old configuration?
Hi guys, 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. 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. '''This is just for starting cloud without initializing mysql databases Please ensure run stack.sh successfully before executing the following steps''' 1. Restart MySQL: service mysql restart 2. Start keystone: /opt/stack/keystone/bin/keystone-all --config-file /etc/keystone/keystone.conf --log-config /etc/keystone/logging.conf -d --debug 3. Restart APACHE: service apache2 restart 4. Restart libvirt-bin: service libvirt-bin restart 5. Start glance: /opt/stack/glance/bin/glance-registry --config-file /etc/glance/glance-registry.conf /opt/stack/glance/bin/glance-api --config-file /etc/glance/glance-api.conf Verify glance is working: wget -q -O- http://127.0.0.1:9292 6. Start nova-api: /opt/stack/nova/bin/nova-api Verify novap-api is working: wget -q -O- http://127.0.0.1:8774 7. Start nova: /opt/stack/nova/bin/nova-cert /opt/stack/nova/bin/nova-network /opt/stack/nova/bin/nova-scheduler /opt/stack/noVNC/utils/nova-novncproxy --config-file /etc/nova/nova.conf /opt/stack/nova/bin/nova-xvpvncproxy --config-file /etc/nova/nova.conf /opt/stack/nova/bin/nova-consoleauth 8. Start cinder: /opt/stack/cinder/bin/cinder-api --config-file /etc/cinder/cinder.conf /opt/stack/cinder/bin/cinder-volume --config-file /etc/cinder/cinder.conf /opt/stack/cinder/bin/cinder-scheduler --config-file /etc/cinder/cinder.conf If you've got any point, please let me know. Regards, Howard On Fri, Oct 26, 2012 at 12:30 AM, Tong Li liton...@us.ibm.com wrote: 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 *(See attached file: rejoin-stack.sh)* Tong Li Emerging Technologies Standards [image: Inactive hide details for Dean Troyer ---10/25/2012 11:34:57 AM---On Thu, Oct 25, 2012 at 10:03 AM, Tong Li liton...@us.ibm.co]Dean Troyer ---10/25/2012 11:34:57 AM---On Thu, Oct 25, 2012 at 10:03 AM, Tong Li liton...@us.ibm.com wrote: you can run rejoin-stack.sh From: Dean Troyer dtro...@gmail.com To: Tong Li/Raleigh/IBM@IBMUS, Cc: Hao Wang hao.1.w...@gmail.com, openstack@lists.launchpad.net Date: 10/25/2012 11:34 AM Subject: Re: [Openstack] Could I restart devstack with old configuration? -- On Thu, Oct 25, 2012 at 10:03 AM, Tong Li *liton...@us.ibm.com*liton...@us.ibm.com wrote: 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. 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. ;) 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. dt -- Dean Troyer* **dtro...@gmail.com* dtro...@gmail.com graycol.gif___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Could I restart devstack with old configuration?
Thanks guys for the instruction. After some modification on the stack.sh and lib scripts, I can keep old configurations but failed to launch new instances with old images (new image can do). I almost give it up to figure out how to achieve that. Anyway if I've got time on it, I'll try it later and keep you posted. Regards, Howard On Fri, Oct 26, 2012 at 12:43 AM, Davanum Srinivas dava...@gmail.comwrote: Here's what i am using http://davanum.wordpress.com/2012/10/17/scripts-to-startstop-openstack-environment-built-using-devstack/ -- dims On Thu, Oct 25, 2012 at 10:28 AM, Hao Wang hao.1.w...@gmail.com wrote: Hi stackers, I've got a quick question for you. Every time while I start devstack, the script will initialize mysql database. That makes me have to import customized images again. Do you know there is any way to avoid it? Thanks, Howard ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Davanum Srinivas :: http://davanum.wordpress.com ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] Could I restart devstack with old configuration?
Hi stackers, I've got a quick question for you. Every time while I start devstack, the script will initialize mysql database. That makes me have to import customized images again. Do you know there is any way to avoid it? Thanks, Howard ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Could I restart devstack with old configuration?
Hao Wang, 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. Thanks. Tong Li Emerging Technologies Standards From: Hao Wang hao.1.w...@gmail.com To: openstack@lists.launchpad.net, Date: 10/25/2012 10:29 AM Subject:[Openstack] Could I restart devstack with old configuration? Sent by:openstack-bounces+litong01=us.ibm@lists.launchpad.net Hi stackers, I've got a quick question for you. Every time while I start devstack, the script will initialize mysql database. That makes me have to import customized images again. Do you know there is any way to avoid it? Thanks, Howard___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp inline: graycol.gif___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Could I restart devstack with old configuration?
On Thu, Oct 25, 2012 at 10:03 AM, Tong Li liton...@us.ibm.com wrote: 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. 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. ;) 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. dt -- Dean Troyer dtro...@gmail.com ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Could I restart devstack with old configuration?
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 (See attached file: rejoin-stack.sh) Tong Li Emerging Technologies Standards From: Dean Troyer dtro...@gmail.com To: Tong Li/Raleigh/IBM@IBMUS, Cc: Hao Wang hao.1.w...@gmail.com, openstack@lists.launchpad.net Date: 10/25/2012 11:34 AM Subject:Re: [Openstack] Could I restart devstack with old configuration? On Thu, Oct 25, 2012 at 10:03 AM, Tong Li liton...@us.ibm.com wrote: 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. 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. ;) 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. dt -- Dean Troyer dtro...@gmail.com inline: graycol.gif rejoin-stack.sh Description: Binary data ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Could I restart devstack with old configuration?
Here's what i am using http://davanum.wordpress.com/2012/10/17/scripts-to-startstop-openstack-environment-built-using-devstack/ -- dims On Thu, Oct 25, 2012 at 10:28 AM, Hao Wang hao.1.w...@gmail.com wrote: Hi stackers, I've got a quick question for you. Every time while I start devstack, the script will initialize mysql database. That makes me have to import customized images again. Do you know there is any way to avoid it? Thanks, Howard ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp -- Davanum Srinivas :: http://davanum.wordpress.com ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp