When creating a replica for instance Trove doesn't valiate that master exists and is ACTIVE

Bug #1357704 reported by Denis M.
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Medium
Matthew Van Dijk

Bug Description

User is able to create slave from non existing master.

Bug described here https://review.openstack.org/#/c/98147/23/trove/instance/models.py,cm

Denis M. (dmakogon)
Changed in trove:
milestone: none → juno-3
assignee: nobody → Denis M. (dmakogon)
Denis M. (dmakogon)
Changed in trove:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

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

Changed in trove:
status: New → In Progress
Changed in trove:
importance: Medium → High
milestone: juno-3 → ongoing
Changed in trove:
milestone: ongoing → juno-rc1
summary: - When creating a slave for instance Trove doesn't valiated that master
- exists
+ When creating a slave for instance Trove doesn't valiate that master
+ exists and is ACTIVE
Denis M. (dmakogon)
summary: - When creating a slave for instance Trove doesn't valiate that master
+ When creating a replica for instance Trove doesn't valiate that master
exists and is ACTIVE
Revision history for this message
Nikhil Manchanda (slicknik) wrote :

Not blocking for Juno RC.

Changed in trove:
importance: High → Medium
milestone: juno-rc1 → kilo-1
Changed in trove:
milestone: kilo-1 → ongoing
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on trove (master)

Change abandoned by Nikhil Manchanda (<email address hidden>) on branch: master
Review: https://review.openstack.org/117222
Reason: Abandoning changes that are greater than 1 month old with a negative
review (and no new patchsets) as part of a regular clean up of
reviews. Please feel free to restore your change if this is still work
in progress.

Doug Shelley (0-doug)
Changed in trove:
assignee: Denis M. (dmakogon) → Matthew Van Dijk (mvandijk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/163100
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=32387f8ffd3ba6e45064d675d2b18cb666397894
Submitter: Jenkins
Branch: master

commit 32387f8ffd3ba6e45064d675d2b18cb666397894
Author: Matt Van Dijk <email address hidden>
Date: Sat Mar 7 02:49:30 2015 -0500

    Fix replica source state validation

    Creating a replica did not check that the specified source was available.
    It is necessary that the source's state is active and that it is not busy.
    This is done by verifying the state and status of the master.

    The new checks will throw a HTTP 422 UnprocessableEntity in cases when the
    status is not ACTIVE or source is busy performing a task

    Changes:
     - adding validation step that checks if master exists and in proper state.
     - added appropriate API and unit tests

    Co-authored by: Denis Makogon <email address hidden>

    DocImpact

    Change-Id: Ib4e37ff0036998bc53058e400054ed93fcc2e144
    Closes-Bug: #1357704

Changed in trove:
status: In Progress → Fix Committed
Changed in trove:
milestone: ongoing → kilo-rc1
Thierry Carrez (ttx)
Changed in trove:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: kilo-rc1 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.