IncompatibleObjectVersion should also mention, the supported version

Bug #1443868 reported by Sudipta Biswas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Sudipta Biswas

Bug Description

The IncompatibleObjectVersion class in nova/exception.py doesn't mention the supported version.
Currently the information presented is only with respect to the remote object version being incompatible:

Version %(objver)s of %(objname)s is not supported.

The additional information should include the supported version number as well.
This would atleast give an idea to the user on the supported level on the controller/conductor APIs.

Changed in nova:
assignee: nobody → Sudipta Biswas (sbiswas7)
Revision history for this message
jichenjc (jichenjc) wrote :

we use
322 raise exception.IncompatibleObjectVersion(objname=objname,
323 objver=objver,
324 supported=latest_ver)

but exception shows

1523 class IncompatibleObjectVersion(NovaException):
1524 msg_fmt = _('Version %(objver)s of %(objname)s is not supported')

Changed in nova:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/175357

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/175357
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=e7cd92d5a7909c55b8e3c4c29ab6665950a5688c
Submitter: Jenkins
Branch: master

commit e7cd92d5a7909c55b8e3c4c29ab6665950a5688c
Author: Sudipta Biswas <email address hidden>
Date: Mon Apr 20 16:58:12 2015 +0530

    Include supported version information

    Currently the IncompatibleObjectVersion class doesn't include
    the information of the supported version. This would atleast give
    an idea to the operator on the maximum supported version on the
    controller/conductor APIs.

    This patch will print the maximum supported version information
    in the exception log.

    Change-Id: I5004a4173df5f556633d3547b504bda467e4426d
    Closes-Bug: #1443868

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-1 → 12.0.0
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.