Add reno to generate release notes for the Trove dashboard.
Depends-On: If04f24d46c251079bcbe232b94eaee4f30c73ed3
Change-Id: I92c8e4d21a3747a55217273277a92e1cc5a8eab2
This patch addresses two bugs by updating to the new style form
template.
By using the new style form the standard horizon common form is
used for the footer and fixes the issue where the cancel button
has the wrong font size.
It also fixes the gate issue where there was a failing test due
to the url not being accessible. Updating to the new style form
with the url as a view attribute fixes that issue.
Added code in the views to populate the new standard form
attributes.
Removed the code in the old style form templates
and used the new style.
Removed some unneeded icon attributes in the grow/shrink
table actions.
Added some code to suppress the output of expected exceptions in
the tests.
Change-Id: If04f24d46c251079bcbe232b94eaee4f30c73ed3
Closes-Bug: #1566506
Closes-Bug: #1568876
The entry to install horizon in the test requirements is problematic
when installing in devstack. Users have reported issues with
multiple requirements for horizon or a problem with not being able
to access git on some machines to pull down the horizon code.
However, the tox tests still require the horizon code so that the
unit tests can run against the horizon code.
The solution is to remove the horizon entry in the
test-requirements.txt.
Also added the pip-install.sh script (which is "borrowed" from
Sahara to which we express our most heartfelt thanks) to perform the
pip install along with the pull of the horizon code from git.
Finally, invoked the pip-install.sh script in the tox.ini file.
Change-Id: Idb5edf32a461ada99aa1f189635ef34e9cbe1a58
Closes-Bug: #1562081
The initial handling of the Swift panel detection can be improved
by more closely following the way the detection is done in the
Swift Horizon code. Namely, if the setting is not angular then the
original default Django panel will be enabled.
Also added code to detect if the setting is missing which would
also result in the default Django panel being the default.
Change-Id: I8d7a44c84405f291780a6767bcb375ba980f3a7a
One database backup test was failing due to a Horizon change which
made the Angular Swift panel the default panel. Consequently,
the Django urls are not available.
The Trove database backup table has an action to download the backup
from Swift and the test would fail with an unresolved URL.
Added code to account for whether the legacy or angular version of
the Swift panel is being used to control whether the download
action is available.
Also re-enabled the failing test.
Change-Id: I5b34db1022b9db3bf6ad93cc7824b0c257482ad4
Closes-Bug: #1559379
The "load url from future" must be removed for Django 1.9 support, and
isn't needed in Django 1.8. This patch fixes that to allow Django 1.9
to work.
Change-Id: I9f35aa4d3aa3be2d7a027feab332bac6cccb522e
There has been some environmental change that causes one of the
database backup tests to fail.
Temporarily disabling the test so that the dashboard can be tagged.
Will continue to investigate to find the proper solution and then
renable the test.
Change-Id: Ibcfb4596d8d64212b982568f157792967540e2d7
Add Horizon support for ejecting replica sources, promoting replicas
and specifying the replica count when launching instances based on
a master instance.
Added a promote row action to the instance table that is available
only when the instance is active and is a replica.
Added a confirmation dialog that displays information on the current
replica and replica source.
Added an eject row action to the instances table that is only
visible when the instance is a replica source.
Added an integer field to specify the number of replicas to start
on the advanced tab in the Launch instance dialog. This field
appears only when a replica source is selected and has a minimum
value of 1.
Modified the trove create instance api to include the replica count
and new apis for eject and promote.
Change-Id: I67c2a91f6476ebe01c2b03ed529feac49411769b
Closes-Bug: #1551807
Added code to map maria and percona to use the mysql template.
Added new postgresql template.
Change-Id: If370239d19d616b0bd9ba15b153b601b8030f20d
Closes-Bug: #1551466
With the addition of Cinder volume type support in the CLI the
corresponding change is needed in Horizon.
In the launch instance dialog added the volume type field pulldown.
It will be populated by a call to cinder volume_type_list.
The default value will be prepended to the list as "no_type". This
default is used in the cinder panels.
Updated api and tests to account for new cinder calls and
add the default value to the post commands in the tests.
Change-Id: I7fb2404ccf9d42c293bde1a708518e108f9a1625
Closes-Bug: #1551340
Added new root disable row action to the manage root table.
Removed the existing reset root action and consolidated it into the
enable root action.
Added the root disable api call as well.
Change-Id: I7ec1bdce5a20d220ed90a51e533bdeeae6d52f57
Closes-Bug: #1548503
Add support for Trove commands cluster-grow and cluster-shrink.
Added the grow and shrink actions to the clusters list table. The
grow and shrink actions are only available for MongoDB and Redis
clusters.
Added the grow panel table to list the new instances to be added to
the cluster. There is a table action Add Instance where the instance
details are specified then added to the new instances table.
A Remove Instance table and row action is available to remove any
instances from the table. A Grow Cluster table action will add the
instances to the instances in the table to the cluster. Removed the
add shard action as it is now deprecated and is replaced by the
grow action.
Added a cluster manager helper to keep track of the newly added
instances in the grow panel.
Added the shrink panel table that lists the instances belonging to
the cluster in a table. The selected instance(s) can then be
removed from the cluster with the shrink command.
Added the cluster_grow and cluster_shrink commands to the api.
Change-Id: I05dbc73282b333e3ed8cfd4cdbda673ec86f57fd
Co-Authored-By: Duk Loi <duk@tesora.com>
Implements: blueprint trove-support-cluster-grow-shrink
A working directory in DevStack is not trove-dashboard directory,
so the directory path must be specified by an absolute path.
When I tested the devstack plugin for translation previously,
it seems compiled message catalogs existed and I didn't notice it.
Change-Id: Id5bab4aa627f06e023839290a1d3f46c09890bf8
Adding support for percona xtradb cluster server for trove.
Change-Id: Id7751f7f45817fe89ac454eb795967cb60a029c8
Co-Authored-By: Craig Vyvial <cp16net@gmail.com>
Added an entry in the instance details panel to show whether root has
ever been enabled for the instance.
Added a manage root access screen to allow the user to enable the root
user or reset the root password.
The manage root access screen is accessed from a row menu option in the
database instances table.
Change-Id: I781f55f6184e0b83fe56fce6143269aa48b1c46d
Co-Authored-By: Duk Loi <duk@tesora.com>
Implements: blueprint trove-enable-root-support
The Launch Cluster dialog only supports datastore clusters that
Trove can deploy. Redis clusters can now be deployed by Trove.
The Launch Cluster dialog requires the following changes for Redis.
- Customized the Launch Cluster dialog fields for Redis
- Added a new Redis specific cluster details panel.
- Modified the Trove api to specify the volume parameter in
cluster_create only if the value is greater than 0.
- Added Redis to the db_capability helper.
- Modified the Trove test data and added unit tests for the
customized fields depending on the datastore selected.
Change-Id: I902b09d9f8a60da6276acb810e2ce616484ea51c
Co-Authored-By: Duk Loi <duk@tesora.com>
Implements: blueprint trove-enable-redis-clustering-support
Added a table action on the databases table that displays a create
database dialog.
Co-Authored-By: Duk Loi <duk@tesora.com>
Change-Id: I092629080987bcdd8c54e052be2f7fa9b84259a0
Implements: blueprint trove-create-database-support
Added a table action on the users table to display the
create user dialog.
Added a row action on the users table to display the
edit user information dialog.
Added a row action on the users table to display the
access details panel as a list of databases on the instance
along with a column indicating whether the user has access
to the database. There are also row actions that are enabled
for granting or revoking access to the database.
Added unit tests for the new dialogs and panel.
Modified the api to support the new user actions.
Change-Id: I58fc58117f79b98ebddfd8d018682a4fc53eab52
Co-Authored-By: Duk Loi <duk@tesora.com>
Implements: blueprint trove-instance-user-support
This patch initiates the creation of an angular panel
for backups. To test it, set DISABLED to False in
_1731_project_database_backups_panel.py
Change-Id: Ia100fa1b52eebe491999571a9b7a6e2043d50e0c