python-nova is missing gettextutils.py breaking nova-compute-flex

Bug #1450563 reported by Lee Revell
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nova (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

When nova-compute-flex is installed nova-compute cannot start. The error logged is:

2015-04-30 11:14:04.658 1902 INFO nova.virt.driver [-] Loading compute driver 'ncflex.nova.virt.flex.LXCDriver'
2015-04-30 11:14:04.661 1902 ERROR nova.virt.driver [-] Unable to load the virtualization driver
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver Traceback (most recent call last):
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver File "/usr/lib/python2.7/dist-packages/nova/virt/driver.py", line 1389, in load_compute_driver
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver virtapi)
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 52, in import_object_ns
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver return import_class(import_str)(*args, **kwargs)
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver File "/usr/lib/python2.7/dist-packages/oslo_utils/importutils.py", line 27, in import_class
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver __import__(mod_str)
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver File "/usr/lib/python2.7/dist-packages/ncflex/nova/virt/flex/__init__.py", line 1, in <module>
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver from . import driver
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver File "/usr/lib/python2.7/dist-packages/ncflex/nova/virt/flex/driver.py", line 28, in <module>
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver from . import containers
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver File "/usr/lib/python2.7/dist-packages/ncflex/nova/virt/flex/containers.py", line 24, in <module>
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver from . import config
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver File "/usr/lib/python2.7/dist-packages/ncflex/nova/virt/flex/config.py", line 19, in <module>
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver from . import utils as container_utils
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver File "/usr/lib/python2.7/dist-packages/ncflex/nova/virt/flex/utils.py", line 24, in <module>
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver from nova.openstack.common.gettextutils import _ # noqa
2015-04-30 11:14:04.661 1902 TRACE nova.virt.driver ImportError: No module named gettextutils

This appears to be due to /usr/lib/python2.7/dist-packages/nova/openstack/common/gettextutils.py not existing. With openstack juno from the ubuntu cloud repo, python-nova provided this file.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: python-nova 1:2015.1~rc1-0ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-34.47-generic 3.16.7-ckt8
Uname: Linux 3.16.0-34-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
Date: Thu Apr 30 13:17:31 2015
InstallationDate: Installed on 2015-03-06 (54 days ago)
InstallationMedia: Ubuntu-Server 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 TERM=screen
 PATH=(custom, no user)
 LANG=en_US.UTF-8
SourcePackage: nova
UpgradeStatus: Upgraded to vivid on 2015-04-29 (0 days ago)

Revision history for this message
Lee Revell (rlrevell-k) wrote :
Revision history for this message
Lee Revell (rlrevell-k) wrote :

Also missing are:

/usr/lib/python2.7/dist-packages/nova/openstack/common/{log.py,importutils.py,jsonutils.py,strutils.py,timeutils.py}

Was there some major code refactoring that the the python-nova package didn't pick up on?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nova (Ubuntu):
status: New → Confirmed
Changed in nova (Ubuntu):
importance: Undecided → Medium
Revision history for this message
gustavo panizzo (gfa) wrote :

works on juno, does not work on kilo

Revision history for this message
Mark Vanderwiel (vanderwl) wrote :

What release is this? juno, kilo, liberty? I ran a couple of tests with Kilo and the ubuntu cloud archive and don't seem to hit this issue.

Revision history for this message
Lee Revell (rlrevell-k) wrote :

Kilo on Ubuntu 14.04.2 from this repo:

# cat /etc/apt/sources.list.d/cloudarchive-kilo.list
deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-updates/kilo main

Confirmed still broken.

Does the file /usr/lib/python2.7/dist-packages/nova/openstack/common/gettextutils.py exist on your system? Can you pastebin nova-compute.log of the nova-compute-flex driver startup?

Revision history for this message
Edward Konetzko (konetzed) wrote :

Anyone found a work around for this bug on 14.04.2 LTS using repo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-updates/kilo main". I just upgraded from juno to kilo and this bug is still an issue.

Chuck Short (zulcss)
Changed in nova (Ubuntu):
status: Confirmed → Fix Released
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.