Don't allow to update any baymodel attr if it is referenced by a bay

Bug #1557943 reported by Eli Qiao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Undecided
Eli Qiao

Bug Description

I want to update baymodel.public=True but error come out.

ERROR: Baymodel 7c9a8e74-c4c9-4fcd-9db5-5f27dfb13e86 is referenced by one or multiple bays (HTTP 400) (Request-ID: req-c6aabc0b-0485-4efb-8fba-83c3d01b16ca)

This is stupid, we should allow some baymodel attrs (which doesn't effect bay at all) to be updated.

Eli Qiao (taget-9)
Changed in magnum:
assignee: nobody → Eli Qiao (taget-9)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

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

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

Reviewed: https://review.openstack.org/293329
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=c82da08946b4ca4e0f0f25242b4f2e47e5486593
Submitter: Jenkins
Branch: master

commit c82da08946b4ca4e0f0f25242b4f2e47e5486593
Author: Eli Qiao <email address hidden>
Date: Tue Mar 22 16:25:42 2016 +0800

    Allow update baymodel's public field even if referenced

    Allow update baymodel's public field to be True even if referenced by bays,
    User case is one operator wants to share this baymodel to others but doesn't
    want to delete the referenced bay.

    Please note we only allow to update public to be True case. In case of
    True->False, this may lead bays lost baymodel, so don't do this.

    Closes-Bug: #1557943
    Change-Id: Ia08a2e9611de3559c5cec4eee832bade1f9af09e

Changed in magnum:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/magnum 3.0.0

This issue was fixed in the openstack/magnum 3.0.0 release.

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.