Agent object save method doesn't raise ValueError

Bug #1463696 reported by Rajesh Tailor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Rajesh Tailor

Bug Description

ValueError exception is unnecessarily caught while saving agent object in
nova/api/openstack/compute/contrib/agent.py module.

Changed in cinder:
assignee: nobody → Rajesh Tailor (rajesh-tailor)
Revision history for this message
Matthew Gilliard (matthew-gilliard-u) wrote :

This isn't a bug, and the proposed "fix" is in Nova, not Cinder.

affects: cinder → nova
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

@Rajesh Tailor (rajesh-tailor):

Could you please describe why you think that it should be changed? Matthew Gilliard seems to have doubts that this is a bug.

Changed in nova:
status: New → Incomplete
Revision history for this message
Rajesh Tailor (rajesh-tailor) wrote :

Hi Markus Zoeller,

The ValueError exception block should be removed because it is dead code.
There is no ValueError raised from either create or save method of agent object.

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

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

commit 68c4e0aa27e36ec7331b773475407e0bff2d1d4c
Author: Rajesh Tailor <email address hidden>
Date: Wed Jun 10 00:29:06 2015 -0700

    Remove unnecessary ValueError exception

    Agent object save method doesn't raise ValueError hence removed
    unnecessary ValueError exception block while calling Agent object
    save method.

    ApiImpact: 400 BadRequest response will be returned in case invalid
    agent id is provided during agent-delete, earlier it was returning
    500 InternalServerError response.

    Closes-Bug: 1463696
    Change-Id: I600e70aff2d271e22ccad3b0302fc45a942c98bb

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