AttributeError: 'str' object has no attribute 'register_opts' when upgrading

Bug #1007829 reported by Iain Lane
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nova (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Hi there,

nova-common 2012.2~f1~20120503.13935-0ubuntu1 fails to upgrade (in this case from 2012.1-0ubuntu2.1).

I added set -x to the top of the postinst so we can see what's going on:

laney@raleigh> sudo dpkg --configure --pending ~
Setting up nova-common (2012.2~f2~20120531.14249-0ubuntu2) ...
+ [ configure = configure ]
+ getent group nova
+ getent passwd nova
+ id -gn nova
+ [ nova = nogroup ]
+ [ -z 2012.1-0ubuntu2.1 ]
+ dpkg --compare-versions 2012.1-0ubuntu2.1 lt 2011.3-0ubuntu4
+ dpkg --compare-versions 2012.1-0ubuntu2.1 lt 2012.2~f1~20120503.13935-0ubuntu1
+ cp /etc/nova/nova.conf /etc/nova/nova.conf.upgrade
+ nova-manage config convert --infile=/etc/nova/nova.conf --outfile=/etc/nova/nova.conf
Traceback (most recent call last):
  File "/usr/bin/nova-manage", line 1756, in <module>
    main()
  File "/usr/bin/nova-manage", line 1672, in main
    rpc.register_opts('/etc/nova/nova.conf')
  File "/usr/lib/python2.7/dist-packages/nova/rpc/__init__.py", line 63, in register_opts
    _CONF.register_opts(rpc_opts)
AttributeError: 'str' object has no attribute 'register_opts'
dpkg: error processing nova-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of nova-network:
 nova-network depends on nova-common (= 2012.2~f2~20120531.14249-0ubuntu2); however:
  Package nova-common is not configured yet.
dpkg: error processing nova-network (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nova-common
 nova-network

Unfortunately the conversion tool doesn't mention which line it's having problems on.

Cheers.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: nova-common 2012.2~f2~20120531.14249-0ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.1.1-0ubuntu2
Architecture: amd64
Date: Sat Jun 2 15:08:51 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
PackageArchitecture: all
SourcePackage: nova
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Iain Lane (laney) wrote :
Chuck Short (zulcss)
Changed in nova (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
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.