[Openstack] Devstack log file configuration

Donglai Zhang donglai.zhang at adelaide.edu.au
Tue Jun 25 14:13:49 UTC 2013


Hi,

I can get some log information after I updated the localrc file by setting logfile and debug.


Cheers,


Donglai
On 25/06/2013, at 4:11 PM, Donglai Zhang wrote:

> Hi,
> 
> I am new to openstack and trying to use devstack to launch an openstack compute node on my machine.
> 
> The nova was installed and started successfully. However, I could not get the logging part work:
> 
> What I am expecting to see: as a consumer service should be started by bin/nova-compute program (part of the stack.sh work), the 
> log should have information such as: "Creating Consumer connection for Service XXX" 
> 
> 
> What I did: 
> As stack user: 
>  
> Try to configure the nova.conf file under the directory: 
> /opt/stack/nova/etc/nova/ with: 
> debug=true
> verbose=true
> logfile_mode=0644
> logging_default_format_string=%(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s
> logging_debug_format_suffix=%(funcName)s %(pathname)s:%(lineno)d
> instance_format="[instance: %(uuid)s] "
> instance_uuid_format="[instance: %(uuid)s] "
> log_format=%(asctime)s %(levelname)8s [%(name)s] %(message)s
> log_file="/home/stack/devstack/log/stack.log"
> use_syslog=false
> 
> 
> If my understanding was the /etc/nova/nova.conf file is updated according to the above setting? 
> But I can not find the following:
> log_file="/home/stack/devstack/log/stack.log"
> 
> I could not find any log file under any of the directories:
> 
> /home/stack/devstack/log/stack.log
> /opt/stack/
> 
> Can not find any files similar to /var/log/nova.log 
> 
> Can not find any log information about nova starting the consumer service. 
> 
> 
> I must get something wrong, please point it out for me. 
> 
> 
> 
> Thanks in advance,
> 
> 
> Donglai
> 





More information about the Openstack mailing list