Re: [Openstack] How to start/stop/restart services in devstack

2012-01-26 Thread Joshua Harlow
It is being worked on (the split/cleanup) ;) Along with making devstack resemble something more like the rest of openstack (python) Testing is always helpful @ https://github.com/yahoo/Openstack-Devstack2 ;) https://github.com/yahoo/Openstack-Devstack2/wiki (for some common questions/answers)

Re: [Openstack] How to start/stop/restart services in devstack

2012-01-26 Thread Joe Smithian
Hi Jorge, Those were exactly what I was looking for and were missing in devstack. Thanks for providing it! mkdir -p /var/log/keystone/ should be added to startnova.sh I tried startnova.sh but it has either crashed the machine or disconnected the network access- it doesn't reply to ping and can't

Re: [Openstack] How to start/stop/restart services in devstack

2012-01-26 Thread Joe Smithian
Hi Yun, That's was exactly what I was looking for and was missing in devstack. Thanks for providing it! Joe. On Thu, Jan 26, 2012 at 3:13 PM, Yun Mao wrote: > if you need to restart your service frequently without destroying your > existing data, you might want to take a look at the upstart pa

Re: [Openstack] How to start/stop/restart services in devstack

2012-01-26 Thread Paras pradhan
What should we use for production ? Paras. On Thu, Jan 26, 2012 at 1:57 PM, Kiall Mac Innes wrote: > Yea, re-running stack.sh should bring everything back up. > > Bear in mind this will wipe all users, images, instances etc (devstack is > for development, rather than production openstack environ

Re: [Openstack] How to start/stop/restart services in devstack

2012-01-26 Thread Joshua Harlow
This actually is something I wanted to verify. What are the reasons sudo won't work? 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. In the newer devstack I am working on su

Re: [Openstack] How to start/stop/restart services in devstack

2012-01-26 Thread Joe Smithian
Thanks for your comments. I don't have any users, images, etc. to worry about, I didn't go that fat to create users and images. I re-run stack.sh and horizon and keystone were running; I lunched an instance then tried to access http://myServer/nova/access_and_security/ but machine crashed and I h

Re: [Openstack] How to start/stop/restart services in devstack

2012-01-26 Thread Yun Mao
if you need to restart your service frequently without destroying your existing data, you might want to take a look at the upstart patch for devstack. https://blueprints.launchpad.net/devstack/+spec/upstart Yun On Thu, Jan 26, 2012 at 2:30 PM, Joe Smithian wrote: > localadmin@k:~$ sudo screen -

Re: [Openstack] How to start/stop/restart services in devstack

2012-01-26 Thread Dan Wendlandt
Hi Joe, I'm sure there are more elaborate approaches, but I have a simple "kill.sh" script that looks something like: sudo killall dnsmasq sudo killall qemu sudo rm -f /etc/libvirt/qemu/instance-*.xml sudo killall screen screen -wipe This is of course specific to my use of qemu. After running k

Re: [Openstack] How to start/stop/restart services in devstack

2012-01-26 Thread Kiall Mac Innes
Yea, re-running stack.sh should bring everything back up. Bear in mind this will wipe all users, images, instances etc (devstack is for development, rather than production openstack environments after all) Thanks, Kiall Sent from my mobile - Sorry for being short. On Jan 26, 2012 7:45 p.m., "Joe

Re: [Openstack] How to start/stop/restart services in devstack

2012-01-26 Thread Vishvananda Ishaya
stack.sh doesn't run as root so sudo is incorrect. 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. (which means you will need to do sudo su stack; screen -x) If it isn't running as the stack user, you probably jus

Re: [Openstack] How to start/stop/restart services in devstack

2012-01-26 Thread Joe Smithian
root@shrek:~# ps -ef | grep screen | grep -v grep On Thu, Jan 26, 2012 at 2:32 PM, Dean Troyer wrote: > On Thu, Jan 26, 2012 at 1:30 PM, Joe Smithian wrote: >> localadmin@k:~$ sudo screen -x >> There is no screen to be attached. > > You need to run this as whatever user you used to run stack.sh,

Re: [Openstack] How to start/stop/restart services in devstack

2012-01-26 Thread Jorge Luiz Correa
I've created a script. Test if it helps you. You have to create the /var/log/nova dir. mkdir -p /var/log/nova __ startnova.sh: #!/bin/bash service rabbitmq-server start cd /opt/stack/glance/bin ./glance-registry --config-file=../etc/glance-registry.conf > /var/log/nova/glance-registry.

Re: [Openstack] How to start/stop/restart services in devstack

2012-01-26 Thread Joe Smithian
localadmin@k:~$ sudo screen -x There is no screen to be attached. localadmin@k:~$ killall screen screen: no process found Should I re-run stack.sh? On Thu, Jan 26, 2012 at 2:24 PM, Dean Troyer wrote: > On Thu, Jan 26, 2012 at 1:02 PM, Joe Smithian wrote: >> The devstack document doesn't ex

[Openstack] How to start/stop/restart services in devstack

2012-01-26 Thread Joe Smithian
Hi All, The devstack document doesn't explain how to start/stop services, maybe it's obvious for the devstack developers but not for a new user like me! I can't use commands like "restart nova-api" because they are not installed. I installed OpenStack using devsatck stack.sh script (http://devs