112 Commits

Author SHA1 Message Date
Jenkins
f2fd0b799f Merge "Add maria, percona, postgresql to details view" 2016-04-18 09:13:47 +00:00
Jenkins
39b552da2a Merge "Imported Translations from Zanata" 2016-04-16 17:49:18 +00:00
Jenkins
3e0ad3e736 Merge "Add reno for release notes management" 2016-04-16 11:16:23 +00:00
OpenStack Proposal Bot
257ca42c40 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I9fd1e898ef95a63f56fc2af36ec0b1309c9bb63a
2016-04-16 06:15:34 +00:00
Peter Stachowski
16d4cb387c Add reno for release notes management
Add reno to generate release notes for the Trove dashboard.

Depends-On: If04f24d46c251079bcbe232b94eaee4f30c73ed3
Change-Id: I92c8e4d21a3747a55217273277a92e1cc5a8eab2
2016-04-14 20:56:32 +00:00
Duk Loi
43602654eb Use new style form templates
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
2016-04-14 15:09:59 -04:00
Jenkins
7ff6706b09 Merge "Remove install of horizon from test-requirements" 2016-04-05 14:58:11 +00:00
Jenkins
282cca6ee4 Merge "Add missing replication functionality" 2016-04-01 16:31:25 +00:00
Jenkins
78e9f78dfc Merge "Add support for root-disable" 2016-03-30 22:42:24 +00:00
Duk Loi
66c6a2ad58 Remove install of horizon from test-requirements
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
2016-03-25 21:21:28 -04:00
Duk Loi
a3c2ee6f83 Improved handling of Swift panel detection
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
2016-03-23 15:08:25 -04:00
Jenkins
c2e42436ad Merge "[Django 1.9] Remove load url from future" 2016-03-23 16:55:33 +00:00
Duk Loi
e23960a72e Re-enable failing test
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
2016-03-22 13:53:09 -04:00
Thomas Goirand
60088975d0 [Django 1.9] Remove load url from future
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
2016-03-22 00:04:26 +01:00
Duk Loi
52ae94844e Temporarily disable failing test
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
2016-03-18 18:45:36 -04:00
Duk Loi
44d750ecfb Add missing replication functionality
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
2016-03-17 19:50:18 +00:00
OpenStack Proposal Bot
4fb4a4e984 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I9b68ddad0aaab6865276097e7bde4b542af5fbc5
6.0.0.0rc1
2016-03-17 09:45:41 +00:00
Jenkins
62c3daac65 Merge "Fixed Missed Traslations" 2016-03-16 18:37:26 +00:00
OpenStack Proposal Bot
dd15031b3f Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I32c7988384a9e864c7d673f4b6930375d9d995a6
2016-03-15 06:08:41 +00:00
Gene Kuo
11b57cf6c1 Fixed Missed Traslations
Fixed missed traslations by Zanata for zh_CN locale

Change-Id: Id3f640a2ebf0493ff83de02cfddedebb32eec335
Closes-Bug:#1556886
2016-03-15 10:24:30 +08:00
Jenkins
cbdb96200a Merge "Add volume type field to launch instance dialog" 2016-03-14 16:59:11 +00:00
OpenStack Proposal Bot
74d11db37d Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I2db951afd6b06ce3ffc4716bdb0ab8b774fc4826
2016-03-14 06:08:27 +00:00
OpenStack Proposal Bot
de06f3b470 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Iedd969c95d55e5fdd7be12815f42f657098ff007
2016-03-08 06:08:43 +00:00
OpenStack Proposal Bot
2b731d15f2 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Iec0bd89495f5002a2883eadd4b89114744a3d44d
2016-03-07 06:09:22 +00:00
Duk Loi
0227e78c10 Add maria, percona, postgresql to details view
Added code to map maria and percona to use the mysql template.
Added new postgresql template.

Change-Id: If370239d19d616b0bd9ba15b153b601b8030f20d
Closes-Bug: #1551466
2016-02-29 18:46:48 -05:00
Duk Loi
4a85ec5c2a Add volume type field to launch instance dialog
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
2016-02-29 17:34:29 -05:00
Duk Loi
e2e504ba40 Add support for root-disable
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
2016-02-29 11:37:03 -05:00
Jenkins
731e005b6b Merge "Trove add cluster grow and shrink support" 6.0.0.0b3 2016-02-26 08:29:56 +00:00
Jenkins
e2624f2a6a Merge "update readme with how to test changes" 2016-02-26 00:24:48 +00:00
Matt Van Dijk
3ea4a7ca62 Trove add cluster grow and shrink support
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
2016-02-25 16:54:41 -05:00
Jenkins
6a7d58193c Merge "Add support for root enable and show" 2016-02-25 20:32:07 +00:00
Craig Vyvial
ea49596302 update readme with how to test changes
Change-Id: I4419dd03be1c2a8be97934e8aba4e829fe0a0d21
2016-02-25 20:26:32 +00:00
Akihiro Motoki
994d5b2e7a Ensure to compile translation catalogs
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
2016-02-24 00:37:48 +09:00
Jenkins
c4bc8bde4b Merge "devstack: compile translation message catalogs" 2016-02-22 18:19:22 +00:00
Duk Loi
ba59637824 Adding support for trove new clustering datastore - percona cluster
Adding support for percona xtradb cluster server for trove.

Change-Id: Id7751f7f45817fe89ac454eb795967cb60a029c8
Co-Authored-By: Craig Vyvial <cp16net@gmail.com>
2016-02-22 16:46:29 +00:00
Matt Van Dijk
b3c0f4dbfd Add support for root enable and show
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
2016-02-22 11:43:24 -05:00
Jenkins
2f1ea93f68 Merge "Add support for Trove create database" 2016-02-22 16:28:50 +00:00
Jenkins
18b56cac94 Merge "Enable Redis database cluster support" 2016-02-22 15:07:56 +00:00
Akihiro Motoki
28e52b3892 devstack: compile translation message catalogs
Change-Id: Ia51d5bfd0f2c518107d330f90e8f5a2aa01dec42
2016-02-21 23:22:07 +09:00
Jenkins
1b83a89250 Merge "Fix cluster launch datastore version handling" 2016-02-18 21:41:10 +00:00
Matt Van Dijk
d09319b786 Enable Redis database cluster 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
2016-02-18 15:36:12 -05:00
Matt Van Dijk
c6e74073ca Add support for Trove create database
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
2016-02-18 11:39:36 -05:00
Jenkins
7386d021e7 Merge "Support operations on a trove instance user" 2016-02-17 19:09:11 +00:00
Jenkins
e97ee0b704 Merge "Adding angular database backups panel" 2016-02-12 21:37:52 +00:00
OpenStack Proposal Bot
56afe0a010 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I146bfe62967e37a1ab803c582dea3ad49a57d122
2016-02-08 06:59:57 +00:00
Matt Van Dijk
8f8f7e980d Support operations on a trove instance user
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
2016-02-02 10:31:58 -05:00
skseeker
328ed818bf LOG.warn is deprecated in python3
Change-Id: I87ad7e65c08d0e2ac8270bbbaacbf6714a0b074e
2016-02-01 23:39:57 +05:30
Ishita Mandhan
e5fe575f20 Adding angular database backups panel
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
2016-01-28 14:53:38 -08:00
Jenkins
ca8434d95a Merge "Use "Connection Information" everywhere" 2016-01-28 18:37:12 +00:00
Jenkins
d117d72d55 Merge "Update devstack plugin" 2016-01-28 18:34:21 +00:00