Unable to setup log file for nova. For OpenStack on XenServer

Asked by Sridhar

Dear All,

I'm pretty new to this.
I have installed Openstack on Xenserver 6 (single physical machine), following the 'readme' instruction in this link:
https://github.com/openstack-dev/devstack/blob/master/tools/xen/README.md

I'm able to launch the dashboard and login as demo or admin.

I'm getting error (it stops at spawning) when I tried to launch an instance.

For creating image and booting, I followed this link:
http://blogs.citrix.com/2012/10/17/upload-custom-images-to-a-xenserver-powered-openstack-cloud/

I checked xenapi_connection_url/username/password, which is the solution suggested online, All are fine.

Now, I want to know why I'm getting this error and tried looking for the log file. As I couldn't find any in /var/log, I tried to add the logfile option in /etc/nova/nova.conf via /opt/stack/devstack/lib/nova (create-nova-conf, function). I tried this: add_nova_opt "logfile=/var/log/nova/nova.log". It adds in the conf file... But, If I add like this, then I'm unable to login, as the services are not started properly, it returns connection refused.

Can somebody please advise me on how to setup logging file for nova? I need to know why I'm getting error in launching the instance.

Regards
JACSE

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Sridhar
Solved:
Last query:
Last reply:
Revision history for this message
Armando Migliaccio (armando-migliaccio) said :
#1

You can tell your devstack installation to dump logs into a file by specifying the following variable in your localrc:

SCREEN_LOGDIR=/opt/stack/screen-logs

However, you can see live logs by getting to the screen session:

screen -x stack

HTH
Armando

Revision history for this message
Sridhar (ngignir) said :
#2

Thanks for the response. I really appreciate your effort.

That change dumps 16 log files in the specified directory.

I guess I the error in screen-n-cpu.log is the one [ XENAPI_PLUGIN_FAILURE]. Will google to find the reason.

Thanks.