Both ConfigurationView and DetailedConfigurationView for configuration-groups return only the Datastore Version ID and not human the readable Datastore Name / Version

Bug #1326584 reported by Nikhil Manchanda
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Wishlist
Denis M.

Bug Description

ConfigurationView
        configuration_dict = {
            "id": self.configuration.id,
            "name": self.configuration.name,
            "description": self.configuration.description,
            "datastore_version_id": self.configuration.datastore_version_id,
        }

DetailedConfigurationView
        configuration_dict = {
            "id": self.configuration.id,
            "name": self.configuration.name,
            "description": self.configuration.description,
            "values": values,
            "datastore_version_id": self.configuration.datastore_version_id,
        }

It would be nice to have the human readable datastore name, and version also returned.

Trove should return human-readable Datastore Name and Version Name for the next requests:

1. List configurations.
2. Show configuration by it's ID.
3. Create a new Configuration.

Shell output example for
 -list:

+----+------+-------------+----------------+------------------------+
| ID | Name | Description | Datastore Name | Datastore Version Name |
+----+------+-------------+----------------+------------------------+
+----+------+-------------+----------------+------------------------+

-show:

+------------------------+--------------------------------------+
| Property | Value |
+------------------------+--------------------------------------+
| datastore_name | mysql |
| datastore_version_name | 5.5 |
| description | None |
| id | 4912ebb4-8d9d-47dc-9026-799f9b76a7e1 |
| name | mysql |
| values | {"connect_timeout": 100} |
+----------------------+----------------------------------------+

-create

+------------------------+--------------------------------------+
| Property | Value |
+------------------------+--------------------------------------+
| datastore_name | mysql |
| datastore_version_name | 5.5 |
| description | None |
| id | 4912ebb4-8d9d-47dc-9026-799f9b76a7e1 |
| name | mysql |
| values | {"connect_timeout": 100} |
+----------------------+----------------------------------------+

Revision history for this message
Denis M. (dmakogon) wrote :

Would it be better to have both - version id and version human-readable name? Or only one of them ?

Changed in trove:
assignee: nobody → Denis M. (dmakogon)
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/98985

Changed in trove:
status: Triaged → In Progress
Changed in trove:
milestone: next → juno-2
Denis M. (dmakogon)
description: updated
Denis M. (dmakogon)
description: updated
description: updated
description: updated
Changed in trove:
assignee: Denis M. (dmakogon) → Doug Shelley (0-doug)
Changed in trove:
assignee: Doug Shelley (0-doug) → Denis M. (dmakogon)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/98985
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=905086fcadab213587d965352ea46302278d6fdd
Submitter: Jenkins
Branch: master

commit 905086fcadab213587d965352ea46302278d6fdd
Author: Denis Makogon <email address hidden>
Date: Tue Jun 10 12:23:04 2014 +0300

    Add datatore/version name into configurations response

    Reasons:
     - Both ConfigurationView and DetailedConfigurationView
       for configuration-groups return only the Datastore
       Version ID and not human the readable Datastore Name / Version

    Changes:
     - adding datastore version name to:
       - configuration-create;
       - configuration-list;
       - configuration show responses.
     - tests;

    Change-Id: I8fbefd57d40838dafcead0077bfbc6b49c27a8eb
    Closes-Bug: #1326584

Changed in trove:
status: In Progress → Fix Committed
Changed in trove:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: juno-2 → 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.