Get incomplete results when creating trove instance with replica_count

Bug #1663493 reported by Liu Yang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Invalid
Undecided
Unassigned

Bug Description

When I create two replica instances(use `"replica_count": 2`), the response contains only one instance.

e.g.

request:
POST http://25.0.0.179:8779/v1.0/0cbb58a3a7fd4c1d89e4a5f3b8cc0c76/instances
{
    "instance": {
        "name": "slave",
        "flavorRef": 6,
        "replica_count": 2,
        "volume": {
            "type": null,
            "size": 1
        },
        "datastore": {
            "version": "5.5",
            "type": "mysql"
        },
        "replica_of": "839e0bbe-342c-4650-ab05-4323f2473246"
    }
}

response body:
http://paste.ubuntu.com/23987223/

The result contains only slave-2 and no slave-1, in my option, it's should be contain two. although the two replica instance is created successfully.

Revision history for this message
jian.song (jiansong) wrote :

I have just tried to create two replica instances and it success. Maybe we need log information to see the problem

Liu Yang (ly798)
description: updated
Revision history for this message
jian.song (jiansong) wrote :

I have restored this situation, it does exist. But I also noticed that our troveclient test was this way:
https://github.com/openstack/python-troveclient/blob/master/troveclient/tests/test_v1_shell.py#L351

So I am not sure if this is a bug, or a naming error caused by the problem... Will continue to look at the code

Revision history for this message
jian.song (jiansong) wrote :

Update again, I have two instances here.

Amrith Kumar (amrith)
Changed in trove:
status: New → Invalid
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.