Big Switch: hash shouldn't be updated on unsuccessful calls

Bug #1348766 reported by Kevin Benton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Kevin Benton
Icehouse
Fix Released
Medium
Kevin Benton

Bug Description

The configuration hash db is updated on every response from the backend including errors that contain an empty hash. This is causing the hash to be wiped out if a standby controller is contacted first, which opens a narrow time window where the backend could become out of sync. It should only update the hash on successful REST calls.

description: updated
description: updated
Changed in neutron:
assignee: nobody → Kevin Benton (kevinbenton)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
status: New → In Progress
tags: added: bigswitch
Changed in neutron:
importance: Undecided → Medium
Kyle Mestery (mestery)
Changed in neutron:
milestone: none → juno-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/109695
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=b8cf45218714937681d7df2e5b9d7d440cb2edd9
Submitter: Jenkins
Branch: master

commit b8cf45218714937681d7df2e5b9d7d440cb2edd9
Author: Kevin Benton <email address hidden>
Date: Fri Jul 25 12:25:39 2014 -0700

    Big Switch: Only update hash header on success

    This patch moves the hash update call into the success block
    of the server manager so the database isn't updated with
    a hash header from an error response. Additionally, it prevents
    the hash from being updated to an empty value if the hash header
    is not present in the response.

    Closes-Bug: #1348766
    Change-Id: I512d01f9bb91b208dd58883d2464951ecc6748e1

Changed in neutron:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/icehouse)

Fix proposed to branch: stable/icehouse
Review: https://review.openstack.org/112059

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/icehouse)

Reviewed: https://review.openstack.org/112059
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=af2cc98f38b0efb7c52df8e363b876f285ccbb68
Submitter: Jenkins
Branch: stable/icehouse

commit af2cc98f38b0efb7c52df8e363b876f285ccbb68
Author: Kevin Benton <email address hidden>
Date: Fri Jul 25 12:25:39 2014 -0700

    Big Switch: Only update hash header on success

    This patch moves the hash update call into the success block
    of the server manager so the database isn't updated with
    a hash header from an error response. Additionally, it prevents
    the hash from being updated to an empty value if the hash header
    is not present in the response.

    Conflicts:

     neutron/tests/unit/bigswitch/test_servermanager.py

    Closes-Bug: #1348766
    Change-Id: I512d01f9bb91b208dd58883d2464951ecc6748e1
    (cherry picked from commit b8cf45218714937681d7df2e5b9d7d440cb2edd9)

tags: added: in-stable-icehouse
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: juno-3 → 2014.2
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.