Don't allow creation of users/databases when creating a slave

Bug #1359411 reported by Greg Lucas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Medium
Yao Wang

Bug Description

When creating an instance from a master (using slave_of_id) it should not be possible to create new users or databases in the same call.

Greg Lucas (glucas-q)
Changed in trove:
assignee: nobody → Greg Lucas (glucas-q)
Changed in trove:
importance: Undecided → Medium
milestone: none → ongoing
status: New → Triaged
Revision history for this message
Amrith Kumar (amrith) wrote :

This bug is not a duplicate of 1358254. That bug states that one can create a database against a readonly slave. This bug says one can create a database in the same call as attempting to create a slave (issued against the master).

Amrith Kumar (amrith)
Changed in trove:
assignee: Greg Lucas (glucas-q) → Doug Shelley (0-doug)
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/493775

Changed in trove:
assignee: Doug Shelley (0-doug) → Yao Wang (nihaome521)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/493775
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=a1e70419cb7c85c749a746204d940fbffdd22fb9
Submitter: Zuul
Branch: master

commit a1e70419cb7c85c749a746204d940fbffdd22fb9
Author: wangyao <email address hidden>
Date: Tue Aug 15 23:20:59 2017 +0800

    When creating a replica do not allow to create users or databases in the same call

    According bug description, when create a replica should not allow
    create new users or databases. To solve this problem,I added
    judgement for users and databases when create a replica, which not allow to create.
    Also provide test cases to validate the method.

    Change-Id: I5751d84cb7b469d85bf2309e0a3b193ad7919e34
    Closes-Bug: #1359411

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

This issue was fixed in the openstack/trove 9.0.0.0b3 development milestone.

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.