No handlers could be found for logger "nova.root"

Asked by Everett Toews on 2011-02-09

On a 100% fresh install of Ubuntu 10.10 I do the following:
sudo apt-get -y update
sudo apt-get -y upgrade

Follow the instructions at http://wiki.openstack.org/NovaInstall/Bexar with one exception. Instead of
wget http://launchpad.net/nova/bexar/2011.1/+download/nova-2011.1.tar.gz

I grab the tarball from https://bugs.launchpad.net/nova/+bug/714678 and do
wget https://bugs.launchpad.net/nova/+bug/714678/+attachment/1838224/+files/nova-2011.1.tar.gz

When I get to the step to sync the db
sudo nova-manage db sync

I get the following error message,
No handlers could be found for logger "nova.root"

This is just masking the real error. The workaround to see the real error is to add the lines,
from nova import log as logging
logging.basicConfig()

into /usr/local/bin/nova-manage. At which point you see the error
No module named boto

This question isn't about the boto error but the logging workaround. You shouldn't have to throw in workaround code every time you want to see the cause of an error. What can be done here or should I simply submit this as a bug?

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Vish Ishaya
Solved:
2011-03-15
Last query:
2011-03-15
Last reply:
2011-02-09
Best Vish Ishaya (vishvananda) said : #1

logging.basicConfig() is in nova-manage in trunk.

I guess it didn't make it into bexar.

Vish

On Feb 9, 2011, at 10:00 AM, Everett Toews wrote:

> New question #144763 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/144763
>
> On a 100% fresh install of Ubuntu 10.10 I do the following:
> sudo apt-get -y update
> sudo apt-get -y upgrade
>
> Follow the instructions at http://wiki.openstack.org/NovaInstall/Bexar with one exception. Instead of
> wget http://launchpad.net/nova/bexar/2011.1/+download/nova-2011.1.tar.gz
>
> I grab the tarball from https://bugs.launchpad.net/nova/+bug/714678 and do
> wget https://bugs.launchpad.net/nova/+bug/714678/+attachment/1838224/+files/nova-2011.1.tar.gz
>
> When I get to the step to sync the db
> sudo nova-manage db sync
>
> I get the following error message,
> No handlers could be found for logger "nova.root"
>
> This is just masking the real error. The workaround to see the real error is to add the lines,
> from nova import log as logging
> logging.basicConfig()
>
> into /usr/local/bin/nova-manage. At which point you see the error
> No module named boto
>
> This question isn't about the boto error but the logging workaround. You shouldn't have to throw in workaround code every time you want to see the cause of an error. What can be done here or should I simply submit this as a bug?
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Everett Toews (everett-toews) said : #2

Thanks Vish Ishaya, that solved my question.