Re: [openstack-dev] [devstack] Restart openstack service

2015-08-14 Thread John Griffith
On Thu, Aug 13, 2015 at 11:01 PM, Guo, Ruijing ruijing@intel.com
wrote:

 If you can commit it to devstack, it will benefit everyone

 -Original Message-
 From: Tony Breeds [mailto:t...@bakeyournoodle.com]
 Sent: Friday, August 14, 2015 12:21 PM
 To: OpenStack Development Mailing List (not for usage questions)
 Subject: Re: [openstack-dev] [devstack] Restart openstack service

 On Fri, Aug 14, 2015 at 04:01:20AM +, Guo, Ruijing wrote:
  Yes. I like this idea to restart all services including nova, neutron,
 cinder, etc:)

 You can *probably* use

 HOST=devstack.domain ./stack-smash.sh '.*'

 to restart all the services running under devstack.

 Note my list of windows is taken from my typical run and isn't
 comprehensive

 Yours Tony.
 __
 OpenStack Development Mailing List (not for usage questions)
 Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


​Is there some reason that rejoin doesn't work?  There's a rejoin.sh that
does this very thing:  crtl-a: quit​ in screen to terminate everything,
then you can run rejoin.sh and relaunch everything.  Of course, if you
don't use screen option then I don't know :)
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [devstack] Restart openstack service

2015-08-14 Thread John Griffith
On Fri, Aug 14, 2015 at 10:03 PM, John Griffith john.griffi...@gmail.com
wrote:



 On Thu, Aug 13, 2015 at 11:01 PM, Guo, Ruijing ruijing@intel.com
 wrote:

 If you can commit it to devstack, it will benefit everyone

 -Original Message-
 From: Tony Breeds [mailto:t...@bakeyournoodle.com]
 Sent: Friday, August 14, 2015 12:21 PM
 To: OpenStack Development Mailing List (not for usage questions)
 Subject: Re: [openstack-dev] [devstack] Restart openstack service

 On Fri, Aug 14, 2015 at 04:01:20AM +, Guo, Ruijing wrote:
  Yes. I like this idea to restart all services including nova, neutron,
 cinder, etc:)

 You can *probably* use

 HOST=devstack.domain ./stack-smash.sh '.*'

 to restart all the services running under devstack.

 Note my list of windows is taken from my typical run and isn't
 comprehensive

 Yours Tony.
 __
 OpenStack Development Mailing List (not for usage questions)
 Unsubscribe:
 openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


 ​Is there some reason that rejoin doesn't work?  There's a rejoin.sh that
 does this very thing:  crtl-a: quit​ in screen to terminate everything,
 then you can run rejoin.sh and relaunch everything.  Of course, if you
 don't use screen option then I don't know :)

 ​Ohh... one thing though, be advised that by default devstack uses
non-persistent loopback files.  That means if you do a reboot, you lose
your backing store for things like Cinder and Swift and you have to
recreate them yourself; or you can modify them to be persisted.​
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [devstack] Restart openstack service

2015-08-13 Thread Guo, Ruijing
If you can commit it to devstack, it will benefit everyone

-Original Message-
From: Tony Breeds [mailto:t...@bakeyournoodle.com] 
Sent: Friday, August 14, 2015 12:21 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [devstack] Restart openstack service

On Fri, Aug 14, 2015 at 04:01:20AM +, Guo, Ruijing wrote:
 Yes. I like this idea to restart all services including nova, neutron, 
 cinder, etc:)

You can *probably* use 

HOST=devstack.domain ./stack-smash.sh '.*'

to restart all the services running under devstack.

Note my list of windows is taken from my typical run and isn't comprehensive

Yours Tony.
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [devstack] Restart openstack service

2015-08-13 Thread Rui Chen
I use *screen* in devstack, Ctrl+c kill services, then restart it in
console.

Please try the following cmd in your devstack environment, and read some
docs.

*screen -r stack*

http://www.ibm.com/developerworks/cn/linux/l-cn-screen/



2015-08-14 11:20 GMT+08:00 Guo, Ruijing ruijing@intel.com:

 It is very useful to restart openstack services in devstack so that we
 don’t need to unstack and stack again.



 How much effort to support restarting openstack? Anyone is interested in
 that?



 Thanks,

 -Ruijing

 __
 OpenStack Development Mailing List (not for usage questions)
 Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [devstack] Restart openstack service

2015-08-13 Thread Tony Breeds
On Fri, Aug 14, 2015 at 04:00:23AM +, Guo, Ruijing wrote:
 I need to reboot hosts and restart openstack services. In this case, screen 
 may not help.

If you need to reboot the host then you shoudl re-run ./stack.sh

Yours Tony.


pgpVjQSWy881w.pgp
Description: PGP signature
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [devstack] Restart openstack service

2015-08-13 Thread Tony Breeds
On Fri, Aug 14, 2015 at 11:31:07AM +0800, Rui Chen wrote:
 I use *screen* in devstack, Ctrl+c kill services, then restart it in
 console.
 
 Please try the following cmd in your devstack environment, and read some
 docs.
 
 *screen -r stack*
 
 http://www.ibm.com/developerworks/cn/linux/l-cn-screen/

It's not baked into devstack but I have a script called 'stack-smash.sh' which 
I run like

HOST=devstack.domain ./stack-smash.sh nova

to restart all the nova services in a running devstack.

---
#!/opt/local/bin/bash

if [ -z $1 ] ; then
set -- nova
fi

if [ -z $HOST ] ; then
echo HOST= $0 $@ 2
exit 1
fi

for service in $@ ; do
pattern=''

case $service in
nova)   pattern=^n- ;;
glance) pattern=^g- ;;
cinder) pattern=^c- ;;
keystone)   pattern=^key;;
*)  pattern=$service;;
esac

for win in  key key-access g-reg g-api n-api n-cond n-crt n-net \
n-sch n-novnc n-cauth n-sproxy n-cpu c-api c-sch c-vol ; do

[ -z $pattern ]  continue

if [[ $win =~ $pattern ]] ; then
echo -n Killing window=$win for service=$service
ssh $HOST -qt screen -S stack -p $win -X stuff '' # this is a 
literal control-C
sleep 1s
ssh $HOST -qt screen -S stack -p $win -X stuff '!!\\n'
sleep 1s
echo  ... done.

fi
done
done
---

Yours Tony.


pgpolqFVFf_VK.pgp
Description: PGP signature
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [devstack] Restart openstack service

2015-08-13 Thread Guo, Ruijing
Yes. I like this idea to restart all services including nova, neutron, cinder, 
etc:)

-Original Message-
From: Tony Breeds [mailto:t...@bakeyournoodle.com] 
Sent: Friday, August 14, 2015 11:50 AM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [devstack] Restart openstack service

On Fri, Aug 14, 2015 at 11:31:07AM +0800, Rui Chen wrote:
 I use *screen* in devstack, Ctrl+c kill services, then restart it in 
 console.
 
 Please try the following cmd in your devstack environment, and read 
 some docs.
 
 *screen -r stack*
 
 http://www.ibm.com/developerworks/cn/linux/l-cn-screen/

It's not baked into devstack but I have a script called 'stack-smash.sh' which 
I run like

HOST=devstack.domain ./stack-smash.sh nova

to restart all the nova services in a running devstack.

---
#!/opt/local/bin/bash

if [ -z $1 ] ; then
set -- nova
fi

if [ -z $HOST ] ; then
echo HOST= $0 $@ 2
exit 1
fi

for service in $@ ; do
pattern=''

case $service in
nova)   pattern=^n- ;;
glance) pattern=^g- ;;
cinder) pattern=^c- ;;
keystone)   pattern=^key;;
*)  pattern=$service;;
esac

for win in  key key-access g-reg g-api n-api n-cond n-crt n-net \
n-sch n-novnc n-cauth n-sproxy n-cpu c-api c-sch c-vol ; do

[ -z $pattern ]  continue

if [[ $win =~ $pattern ]] ; then
echo -n Killing window=$win for service=$service
ssh $HOST -qt screen -S stack -p $win -X stuff '' # this is a 
literal control-C
sleep 1s
ssh $HOST -qt screen -S stack -p $win -X stuff '!!\\n'
sleep 1s
echo  ... done.

fi
done
done
---

Yours Tony.
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [devstack] Restart openstack service

2015-08-13 Thread Guo, Ruijing
I need to reboot hosts and restart openstack services. In this case, screen may 
not help.


From: Rui Chen [mailto:chenrui.m...@gmail.com]
Sent: Friday, August 14, 2015 11:31 AM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [devstack] Restart openstack service

I use screen in devstack, Ctrl+c kill services, then restart it in console.

Please try the following cmd in your devstack environment, and read some docs.

screen -r stack

http://www.ibm.com/developerworks/cn/linux/l-cn-screen/



2015-08-14 11:20 GMT+08:00 Guo, Ruijing 
ruijing@intel.commailto:ruijing@intel.com:
It is very useful to restart openstack services in devstack so that we don’t 
need to unstack and stack again.

How much effort to support restarting openstack? Anyone is interested in that?

Thanks,
-Ruijing

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: 
openstack-dev-requ...@lists.openstack.org?subject:unsubscribehttp://openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [devstack] Restart openstack service

2015-08-13 Thread Tony Breeds
On Fri, Aug 14, 2015 at 04:01:20AM +, Guo, Ruijing wrote:
 Yes. I like this idea to restart all services including nova, neutron, 
 cinder, etc:)

You can *probably* use 

HOST=devstack.domain ./stack-smash.sh '.*'

to restart all the services running under devstack.

Note my list of windows is taken from my typical run and isn't comprehensive

Yours Tony.


pgp4erQl3iC0C.pgp
Description: PGP signature
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [devstack] Restart openstack service

2015-08-13 Thread Guo, Ruijing
It is very useful to restart openstack services in devstack so that we don’t 
need to unstack and stack again.

How much effort to support restarting openstack? Anyone is interested in that?

Thanks,
-Ruijing
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev