Jump to: navigation, search

Difference between revisions of "TroubleshootingNova"

 
(Removed the list of common errors, moved those to Ask and linked that here.)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
 
 
= Troubleshooting Tips for [[OpenStack]] Compute (Nova) =
 
= Troubleshooting Tips for [[OpenStack]] Compute (Nova) =
  
Line 6: Line 5:
 
Most of the installation instructions are written for Ubuntu, but there is also information about Centos and Fedora.  
 
Most of the installation instructions are written for Ubuntu, but there is also information about Centos and Fedora.  
  
You can also check the [https://answers.launchpad.net/nova Answers area of the Launchpad site for Nova] to find asked and answered questions.
+
You can also check the [https://ask.openstack.org Ask OpenStack site] to find asked and answered questions.
  
== Database Locked ==
+
== Log Files ==
If you are not running Nova as a root user, you may get errors that the database is locked, first from nova-scheduler, next from nova-compute. Here is an example:
 
  
 +
Log files are stored in /var/log/nova and there is a log file for each service, for example nova-compute.log. You can format the log strings using flags for the nova.log module. The flags used to set format strings are: logging_context_format_string and logging_default_format_string. If the log level is set to debug, you can also specify logging_debug_format_suffix to append extra formatting. For information about what variables are available for the formatter see: http://docs.python.org/library/logging.html#formatter
  
<pre><nowiki>
+
You have two options for logging for [[OpenStack]] Compute based on configuration settings. In nova.conf, include the --logfile flag to enable logging. Alternatively you can set --use_syslog=1, and then the nova daemon logs to syslog.
OperationalError: (OperationalError) database is locked
 
</nowiki></pre>
 
  
 +
== Common Errors ==
  
Check your permissions - if you installed as root but are trying to run Nova as another user, these errors may appear.
+
The [https://ask.openstack.org/questions/scope:all/sort:activity-desc/tags:nova,faq/page:1/ Nova FAQs on Ask OpenStack] site offers a place to ask and answer questions to common errors. You'll find there some errors people have posted and common solutions. We are constantly fixing bugs, so online resources are a great way to get the most up-to-date errors and fixes.

Latest revision as of 19:05, 11 April 2013

Troubleshooting Tips for OpenStack Compute (Nova)

Starting Points

Most of the installation instructions are written for Ubuntu, but there is also information about Centos and Fedora.

You can also check the Ask OpenStack site to find asked and answered questions.

Log Files

Log files are stored in /var/log/nova and there is a log file for each service, for example nova-compute.log. You can format the log strings using flags for the nova.log module. The flags used to set format strings are: logging_context_format_string and logging_default_format_string. If the log level is set to debug, you can also specify logging_debug_format_suffix to append extra formatting. For information about what variables are available for the formatter see: http://docs.python.org/library/logging.html#formatter

You have two options for logging for OpenStack Compute based on configuration settings. In nova.conf, include the --logfile flag to enable logging. Alternatively you can set --use_syslog=1, and then the nova daemon logs to syslog.

Common Errors

The Nova FAQs on Ask OpenStack site offers a place to ask and answer questions to common errors. You'll find there some errors people have posted and common solutions. We are constantly fixing bugs, so online resources are a great way to get the most up-to-date errors and fixes.