Ask Your Question
2

how to restart services and where is the logs....devstack

asked 2014-04-28 07:51:32 -0500

magic gravatar image

updated 2014-04-28 08:02:33 -0500

after installed openstack by devstack , i can not find where is the logs of nova,neturon,keystone ....etc....

there is no directory like /var/logs/nova or /var/logs/neutron....

after i google the problem .i add SYSLOG=True SYSLOG_HOST=$HOST_IP  SYSLOG_PORT=516 in

the localrc ,then rerun the devstack ,but still no logs in syslog..

btw, i cannot run the command like service openstack-nova-compute restart ,because there is no bash script about openstack services in /etc/init.d ....so how can i restart the services after edit these .conf .

 thx everyone...
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
5

answered 2014-04-28 16:12:59 -0500

waqasriaz gravatar image

In devstack, logs of openstack services are attached with linux screens. you can find them by running following command

screen -x stack

you can traverse forward through screens by pressing CTRL a n and backwards with CTRL a p

to restart a particular service, go to the relevant screen, press CTRL c (it will kill the process) and rerun the last command ( press up Arrow then Enter )

edit flag offensive delete link more

Comments

thx very much...it worked ...

magic gravatar imagemagic ( 2014-04-29 03:12:44 -0500 )edit

When you don't get an overview, do this first:

sudo chown stack:stack `readlink /proc/self/fd/0`

Then screen -x stack will work!

jmoeyersons gravatar imagejmoeyersons ( 2017-03-08 06:19:02 -0500 )edit
1

answered 2014-04-29 06:05:38 -0500

parash_hallur gravatar image

Also if you want logs to be redirected to some files, the log destination has to be configured before you run the ./stack.sh

You should have added the entry SCREEN_LOGDIR=${DEST}/logs/screen

in the localrc or local.conf

edit flag offensive delete link more

Comments

yean...thx very much ...here is some good ideas about devstack logs for the beginners like me

http://www.vpsee.com/2012/09/use-multitail-to-track-openstack-logs/ (link text)

magic gravatar imagemagic ( 2014-04-29 06:18:18 -0500 )edit

and LOG_COLOR=false if you don't want the coloring

darragh-oreilly gravatar imagedarragh-oreilly ( 2014-04-29 06:48:26 -0500 )edit

yep, thx for you nice answer...

magic gravatar imagemagic ( 2014-04-29 07:04:01 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2014-04-28 07:51:32 -0500

Seen: 6,883 times

Last updated: Apr 29 '14