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

Bug #720850 reported by Philippe Berthault
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

The "nova-manage" command do nothing and systematically returns the following message:
No handlers could be found for logger "nova.root"

Nothing is written in the Nova database when I try to execute nova-manage db sync,
nova-manage user ..., nova-manage project create ... commands.

My configuration:
 - OpenStack Nova 2011.1 on a Fedora-14 x86_64 system.
 - Nova uses a MySQL database.

Thierry Carrez (ttx)
Changed in nova:
status: New → Invalid
Revision history for this message
Philippe Berthault (philippe-berthault-deactivatedaccount) wrote :
Download full text (3.7 KiB)

I've installed OpenStack Nova from the nova-2011.1.tar.gz file as following:

[root]# cd /data
[root]# tar -xzvf nova-2011.1.tar.gz
[root]# mv nova-2011.1 OpenStackNova
[root]# chown -R root:root /data/OpenStackNova
[root]# mkdir /data/OpenStackNova/{instances,networks}
[root]# mkdir /var/log/nova
[root]# cd /data/OpenStackNova/CA
[root]# ./genrootca.sh
[root]# mysql -uroot -pxxxx
     mysql> create database nova;
     mysql> grant all privileges on *.* to 'root'@'%' with grant option;
     mysql> set password for 'root'@'%' = password('xxxx');
     mysql> quit;

[root]# cat /data/OpenStackNova/bin/nova.conf
--verbose
--nodeamon
--cc_host=172.31.70.21
--routing_source_ip=172.31.70.21
--auth_driver=nova.auth.dbdriver.DbDriver
--sql_connection=mysql://root:xxxx@localhost/nova
--libvirt_type=qemu
--network_manager=nova.network.manager.VlanManager
--logdir=/var/log/nova

[root]# cd /data/OpenStackNova/bin/
[root]# ./nova-manage db sync
No handlers could be found for logger "nova.root"
[root]# ./nova-manage user admin admin
No handlers could be found for logger "nova.root"
[root]# ./nova-manage project create admin admin
No handlers could be found for logger "nova.root"

[root]# mysqlshow -t -u root -prootard nova
Database: nova
+--------+------------+
| Tables | table_type |
+--------+------------+
+--------+------------+

With all parameters of the nova.conf file given on the nova-manage
command line, there is no difference and nothing is written in the Nova
database.
There is no log files in the /var/log/nova directory.
I've tried with SLQlite and the problem is identical.

[root]# rpm -qa | grep ^python | sort
python-2.7-8.fc14.1.x86_64
python-amqplib-0.6.1-2.fc14.noarch
python-anyjson-0.2.4-2.fc14.noarch
python-boto-1.9b-5.fc14.noarch
python-bugzilla-0.6.1-3.fc14.noarch
python-carrot-0.10.7-2.fc14.noarch
python-crypto-2.3-2.fc14.1.x86_64
python-daemon-1.5.2-2.fc14.noarch
python-decorator-3.2.1-1.fc14.noarch
python-devel-2.7-8.fc14.1.x86_64
python-ethtool-0.6-1.fc14.x86_64
python-eventlet-0.9.12-1.fc14.noarch
python-fpconst-0.7.3-7.fc14.noarch
python-gflags-1.4-2.fc14.noarch
python-GnuPGInterface-0.3.2-7.fc14.noarch
python-greenlet-0.3.1-3.fc14.x86_64
python-iniparse-0.4-2.fc14.noarch
python-IPy-0.70-2.fc14.noarch
python-iwlib-0.1-3.fc14.x86_64
python-ldap-2.3.10-2.fc14.x86_64
python-libs-2.7-8.fc14.1.x86_64
python-lockfile-0.8-1.fc14.noarch
python-meh-0.10-2.fc14.noarch
python-mox-0.5.3-2.fc14.noarch
python-netaddr-0.7.5-1.fc14.noarch
python-paramiko-1.7.6-3.fc14.noarch
python-paste-1.7.4-7.fc14.noarch
python-pycurl-7.19.0-7.fc14.x86_64
python-routes-1.12.1-2.fc14.noarch
python-setuptools-0.6.14-3.fc14.noarch
python-simplejson-2.1.3-1.fc14.x86_64
python-slip-0.2.13-1.fc14.noarch
python-slip-dbus-0.2.13-1.fc14.noarch
python-slip-gtk-0.2.13-1.fc14.noarch
python-sqlalchemy-0.6.6-1.fc14.x86_64
python-telepathy-0.15.18-1.fc14.noarch
python-tempita-0.4-5.fc14.noarch
python-twisted-10.1.0-3.fc14.noarch
python-twisted-conch-10.1.0-1.fc14.x86_64
python-twisted-core-10.1.0-3.fc14.x86_64
python-twisted-lore-10.1.0-1.fc14.x86_64
python-twisted-mail-10.1.0-1.fc14.x86_64
python-twisted-names-10.1.0-1.fc14.x86_64
python-twisted-news-10.1.0-1.fc14.x86_64
p...

Read more...

Revision history for this message
Thierry Carrez (ttx) wrote :

@Philippe, please continue discussion at https://answers.launchpad.net/nova/+question/145849, we'll reopen the bug if we can actually point to one.

What does nova-manage --flagfile nova.conf db sync return ?

Revision history for this message
Jay Pipes (jaypipes) wrote : Re: [Bug 720850] Re: No handlers could be found for logger "nova.root"

On Fri, Feb 18, 2011 at 5:05 AM, Philippe Berthault
<email address hidden> wrote:
> [root]# mysqlshow -t -u root -prootard nova

I like your root database password ;)

-jay

Revision history for this message
Philippe Berthault (philippe-berthault-deactivatedaccount) wrote : [Bug 720850] No handlers could be found for logger "nova.root"

I've found the problem.

Firstly, on my Fedora system, the three RPMs "python-migrate",
"python-webob" et "python-paste-deploy" were missing because these
paquages aren't indicated on the Wiki page "InstallFromSource" while
required by OpenStack Nova.

Secondly, in the nova-manage script, the line "from nova.api.ec2.cloud
import ec2_id_to_id" fails because there is no "ec2_id_to_id" python
script in the nova-2011.1.tar.gz archive file downloaded from your web
site. I've removed this line in the nova-manage script and now it's OK.

Revision history for this message
Thierry Carrez (ttx) wrote :

Looks like it may be a bug after all.

Revision history for this message
Thierry Carrez (ttx) wrote :

About the wiki error: could you fix it with your findings ?

About "from nova.api.ec2.cloud import ec2_id_to_id": it actually imports the "ec2_id_to_id" function from nova/api/ec2/cloud.py, which is present in the tarball. The error must be due to something else, like another missing library.

When the actual error is no longer hidden behind the <No handlers could be found for logger "nova.root"> error it should be more obvious.

Changed in nova:
status: Invalid → Incomplete
Revision history for this message
Philippe Berthault (philippe-berthault-deactivatedaccount) wrote : [Bug 720850] Re: No handlers could be found for logger "nova.root"

Le 21/02/2011 12:02, Thierry Carrez a écrit :
> About the wiki error: could you fix it with your findings ?
>

No, I can't because the Wiki is entirely dedicated to Ubuntu
distributions and I'm using Red hat distributions (because Bull works
only with Red Hat distributions). I don't know if the three Red Hat
paquages "python-migrate", "python-webob" and "python-paste-deploy" are
also required on Ubuntu and if they have the same name.

OpenStack is too closely linked to Ubuntu and it may be an handicap in
the future for a larger adoption.

> About "from nova.api.ec2.cloud import ec2_id_to_id": it actually imports
> the "ec2_id_to_id" function from nova/api/ec2/cloud.py, which is present
> in the tarball. The error must be due to something else, like another
> missing library.
>
> When the actual error is no longer hidden behind the<No handlers could
> be found for logger "nova.root"> error it should be more obvious.
>
> ** Changed in: nova
> Status: Invalid => Incomplete
>
>

I've reintroduced the line "from nova.api.ec2.cloud import ec2_id_to_id"
and the nova-manage script is always OK.
So the problem came from one of the three missing RPMs.

So, this bug can now be closed!
Yours.

Thierry Carrez (ttx)
Changed in nova:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.