should nova-network depends on or recommends python-mysqldb

Bug #708511 reported by ZhengPeng Hou on 2011-01-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova (Ubuntu)
Undecided
Unassigned

Bug Description

without python-mysqldb, it can't connect to the db

2011-01-27 15:09:23+0800 [-] File "/usr/bin/nova-network", line 42, in <module>
2011-01-27 15:09:23+0800 [-] twistd.serve(__file__)
2011-01-27 15:09:23+0800 [-] File "/usr/lib/pymodules/python2.6/nova/twistd.py", line 288, in serve
2011-01-27 15:09:23+0800 [-] twistd.runApp(options)
2011-01-27 15:09:23+0800 [-] File "/usr/lib/python2.6/dist-packages/twisted/scripts/twistd.py", line 23, in runApp
2011-01-27 15:09:23+0800 [-] _SomeApplicationRunner(config).run()
2011-01-27 15:09:23+0800 [-] File "/usr/lib/python2.6/dist-packages/twisted/application/app.py", line 378, in run
2011-01-27 15:09:23+0800 [-] self.postApplication()
2011-01-27 15:09:23+0800 [-] File "/usr/lib/python2.6/dist-packages/twisted/scripts/_twistd_unix.py", line 205, in postApplication
2011-01-27 15:09:23+0800 [-] self.startApplication(self.application)
2011-01-27 15:09:23+0800 [-] File "/usr/lib/python2.6/dist-packages/twisted/scripts/_twistd_unix.py", line 317, in startApplication
2011-01-27 15:09:23+0800 [-] app.startApplication(application, not self.config['no_save'])
2011-01-27 15:09:23+0800 [-] File "/usr/lib/python2.6/dist-packages/twisted/application/app.py", line 648, in startApplication
2011-01-27 15:09:23+0800 [-] service.IService(application).startService()
2011-01-27 15:09:23+0800 [-] File "/usr/lib/python2.6/dist-packages/twisted/application/service.py", line 278, in startService
2011-01-27 15:09:23+0800 [-] service.startService()
2011-01-27 15:09:23+0800 [-] File "/usr/lib/pymodules/python2.6/nova/service.py", line 72, in startService
2011-01-27 15:09:23+0800 [-] self.manager.init_host()
2011-01-27 15:09:23+0800 [-] File "/usr/lib/pymodules/python2.6/nova/network/manager.py", line 419, in init_host
2011-01-27 15:09:23+0800 [-] super(VlanManager, self).init_host()
2011-01-27 15:09:23+0800 [-] File "/usr/lib/pymodules/python2.6/nova/network/manager.py", line 114, in init_host
2011-01-27 15:09:23+0800 [-] for network in self.db.host_get_networks(ctxt, self.host):
2011-01-27 15:09:23+0800 [-] File "/usr/lib/pymodules/python2.6/nova/db/api.py", line 835, in host_get_networks
2011-01-27 15:09:23+0800 [-] return IMPL.host_get_networks(context, host)
2011-01-27 15:09:23+0800 [-] File "/usr/lib/pymodules/python2.6/nova/utils.py", line 223, in __getattr__
2011-01-27 15:09:23+0800 [-] backend = self.__get_backend()
2011-01-27 15:09:23+0800 [-] File "/usr/lib/pymodules/python2.6/nova/utils.py", line 218, in __get_backend
2011-01-27 15:09:23+0800 [-] self.__backend = __import__(name, None, None, fromlist)
2011-01-27 15:09:23+0800 [-] File "/usr/lib/pymodules/python2.6/nova/db/sqlalchemy/__init__.py", line 24, in <module>
2011-01-27 15:09:23+0800 [-] models.register_models()
2011-01-27 15:09:23+0800 [-] File "/usr/lib/pymodules/python2.6/nova/db/sqlalchemy/models.py", line 533, in register_models
2011-01-27 15:09:23+0800 [-] engine = create_engine(FLAGS.sql_connection, echo=False)
2011-01-27 15:09:23+0800 [-] File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/__init__.py", line 244, in create_engine
2011-01-27 15:09:23+0800 [-] return strategy.create(*args, **kwargs)
2011-01-27 15:09:23+0800 [-] File "/usr/lib/python2.6/dist-packages/sqlalchemy/engine/strategies.py", line 60, in create
2011-01-27 15:09:23+0800 [-] dbapi = dialect_cls.dbapi(**dbapi_args)
2011-01-27 15:09:23+0800 [-] File "/usr/lib/python2.6/dist-packages/sqlalchemy/dialects/mysql/mysqldb.py", line 101, in dbapi
2011-01-27 15:09:23+0800 [-] return __import__('MySQLdb')
2011-01-27 15:09:23+0800 [-] ImportError: No module named MySQLdb

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: nova-network 2011.1~bzr456-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.37-12.26-generic 2.6.37
Uname: Linux 2.6.37-12-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Thu Jan 27 16:33:39 2011
InstallationMedia: Kubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110124)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LC_MESSAGES=en_US.utf8
 SHELL=/bin/bash
SourcePackage: nova

ZhengPeng Hou (zhengpeng-hou) wrote :
Chuck Short (zulcss) wrote :

This will be added in the next upload.

Changed in nova (Ubuntu):
status: New → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nova - 2011.1-0ubuntu1

---------------
nova (2011.1-0ubuntu1) natty; urgency=low

  * New upstream release.
  * Add recommends to python-mysqldb (LP: #708511)
  * Add dependency of iscsitarget to nova-volume and a sugestion to use
    sheepdog (LP: #708141)
  * Suggest radvd for those who want to try ipv6.
 -- Chuck Short <email address hidden> Thu, 03 Feb 2011 07:00:52 -0500

Changed in nova (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers