package nova-common 1:2014.1.5-0ubuntu1.5 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1

Bug #1612510 reported by nssriharsha
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nova (Ubuntu)
Expired
Low
Unassigned

Bug Description

I am facing issue trying to install nova-compute-kvm:

Snippet:
========
$ sudo apt-get upgrade
[sudo] password for sriharsha:
Sorry, try again.
[sudo] password for sriharsha:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nova-common (1:2014.1.5-0ubuntu1.5) ...
usermod: no changes
Traceback (most recent call last):
  File "/usr/bin/nova-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/nova/cmd/manage.py", line 1323, in main
    config.parse_args(sys.argv)
  File "/usr/lib/python2.7/dist-packages/nova/config.py", line 38, in parse_args
    rpc.init(cfg.CONF)
  File "/usr/lib/python2.7/dist-packages/nova/rpc.py", line 63, in init
    aliases=TRANSPORT_ALIASES)
  File "/usr/lib/python2.7/dist-packages/oslo/messaging/transport.py", line 185, in get_transport
    raise DriverLoadFailure(url.transport, ex)
oslo.messaging.transport.DriverLoadFailure: Failed to load transport driver "rabbit": No 'oslo.messaging.drivers' driver found, looking for 'rabbit'
dpkg: error processing package nova-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nova-compute:
 nova-compute depends on nova-common (= 1:2014.1.5-0ubuntu1.5); however:
  Package nova-common is not configured yet.

dpkg: error processing package nova-compute (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nova-compute-libvirt:
 nova-compute-libvirt depends on nova-compute (= 1:2014.1.5-0ubuntu1.5); however:
  Package nova-compute is not configured yet.

dpkg: error processing package nova-compute-libvirt (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nova-compute-kvm:
 nova-compute-kvm depends on nova-compute-libvirt (= 1:2014.1.5-0ubuntu1.5); however:
  Package nova-compute-libvirt is not configured yet.

dpkg: error processing package nova-compute-kvm (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
       No apport report written because MaxReports is reached already
                                                                     Errors were encountered while processing:
 nova-common
 nova-compute
 nova-compute-libvirt
 nova-compute-kvm
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ sudo apt-get install nova-compute-kvm
Reading package lists... Done
Building dependency tree
Reading state information... Done
nova-compute-kvm is already the newest version.
nova-compute-kvm set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nova-common (1:2014.1.5-0ubuntu1.5) ...
usermod: no changes
Traceback (most recent call last):
  File "/usr/bin/nova-manage", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/nova/cmd/manage.py", line 1323, in main
    config.parse_args(sys.argv)
  File "/usr/lib/python2.7/dist-packages/nova/config.py", line 38, in parse_args
    rpc.init(cfg.CONF)
  File "/usr/lib/python2.7/dist-packages/nova/rpc.py", line 63, in init
    aliases=TRANSPORT_ALIASES)
  File "/usr/lib/python2.7/dist-packages/oslo/messaging/transport.py", line 185, in get_transport
    raise DriverLoadFailure(url.transport, ex)
oslo.messaging.transport.DriverLoadFailure: Failed to load transport driver "rabbit": No 'oslo.messaging.drivers' driver found, looking for 'rabbit'
dpkg: error processing package nova-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nova-compute:
 nova-compute depends on nova-common (= 1:2014.1.5-0ubuntu1.5); however:
  Package nova-common is not configured yet.

dpkg: error processing package nova-compute (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nova-compute-libvirt:
 nova-compute-libvirt depends on nova-compute (= 1:2014.1.5-0ubuntu1.5); however:
  Package nova-compute is not configured yet.

dpkg: error processing package nova-compute-libvirt (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nova-compute-kvm:
 nova-compute-kvm depends on nova-compute-libvirt (= 1:2014.1.5-0ubuntu1.5); however:
  Package nova-compute-libvirt is not configured yet.

dpkg: error processing package nova-compute-kvm (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
       No apport report written because MaxReports is reached already
                                                                     Errors were encountered while processing:
 nova-common
 nova-compute
 nova-compute-libvirt
 nova-compute-kvm
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo apt-get install nova-compute-kvm

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: nova-common 1:2014.1.5-0ubuntu1.5
ProcVersionSignature: Ubuntu 3.13.0-92.139-generic 3.13.11-ckt39
Uname: Linux 3.13.0-92-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.21
AptOrdering:
 nova-common: Configure
 nova-compute: Configure
 nova-compute-libvirt: Configure
 nova-compute-kvm: Configure
Architecture: amd64
Date: Fri Aug 12 11:42:28 2016
DuplicateSignature: package:nova-common:1:2014.1.5-0ubuntu1.5:subprocess installed post-installation script returned error exit status 1
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2014-01-28 (926 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
PackageArchitecture: all
SourcePackage: nova
Title: package nova-common 1:2014.1.5-0ubuntu1.5 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: Upgraded to trusty on 2014-04-29 (835 days ago)

Revision history for this message
nssriharsha (nssriharsha) wrote :
tags: removed: need-duplicate-check
Revision history for this message
James Page (james-page) wrote :

oslo.message@trusty does declare an entry point for 'rabbit' as a driver key:

oslo.messaging.drivers =
    rabbit = oslo.messaging._drivers.impl_rabbit:RabbitDriver
    qpid = oslo.messaging._drivers.impl_qpid:QpidDriver
    zmq = oslo.messaging._drivers.impl_zmq:ZmqDriver
    # To avoid confusion
    kombu = oslo.messaging._drivers.impl_rabbit:RabbitDriver
    # This is just for internal testing
    fake = oslo.messaging._drivers.impl_fake:FakeDriver

So I'm a bit puzzled as to why this is happening.

Any chance you have a pip installed version of oslo.messaging installed? that might cause this type of error.

Marking incomplete/low for now - please take a look and see if this is the case or not.

Changed in nova (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for nova (Ubuntu) because there has been no activity for 60 days.]

Changed in nova (Ubuntu):
status: Incomplete → Expired
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.