18 Commits

Author SHA1 Message Date
Jenkins
1226118a02 Merge "Increase 'state_change_wait_time' in devstack" 2016-05-20 23:12:05 +00:00
Petr Malik
fbd4443590 Increase 'state_change_wait_time' in devstack
Make the guest and taskmanager values consistent.

Change-Id: Id4b94e5a4c34b53b4863fb70f133ed69096779a5
2016-05-20 19:49:45 +00:00
Jenkins
16c10b1d65 Merge "Correct some issues with devstack plugin for trove" 2016-05-12 18:44:51 +00:00
Amrith Kumar
fde561a58d Correct some issues with devstack plugin for trove
The redstack script used to properly configure validation-rules if
they were available but devstack never did that. When the plugin was
created, it didn't do it either.

In testing the fix for this, it became apparent that the code for
configuring guest images was never workable; the TOKEN variable was
never really initialized.

Both issues have been addressed.

Change-Id: I6665720831337fba644a30f3ee0d5ccb77ef1e4a
Closes-Bug: #1448130
Closes-Bug: #1514951
2016-05-04 10:57:16 -04:00
Peter Stachowski
9e3860d54c Add variables for quota configuration
Many configuration values are hard-coded in the Trove devstack
plugin, however they would be better served letting the
user/developer decide what limits to impose.

The following variables were added to facilitate this:

TROVE_MAX_ACCEPTED_VOLUME_SIZE
TROVE_MAX_INSTANCES_PER_TENANT
TROVE_MAX_VOLUMES_PER_TENANT
TROVE_AGENT_CALL_LOW_TIMEOUT
TROVE_AGENT_CALL_HIGH_TIMEOUT
TROVE_RESIZE_TIME_OUT
TROVE_USAGE_TIMEOUT
TROVE_STATE_CHANGE_WAIT_TIME

These values are only inserted if they are set. If not set,
the Trove defaults are used instead.

Change-Id: I2c568fdfa05064682f372b996a5aebcdd4e93ef3
2016-04-22 20:12:47 +00:00
Petr Malik
6ace3dda60 Update the root scenario tests
Incorporate the changes made as a part of the cluster-root
tests introduced in review 266005:

    - add test scenario for: bug 1549600
    - simplify turning off unsupported root-disable tests
      by introducing a single assertion hook that runs before all
      related tests
    - ping the datastore as root to verify it can connect
    - ping after root-disable to verify it cannot connect
    - add missing ping implementations to Cassandra and Redis helpers
    - enable root with password tests on MySQL and related
    - use the same helper method to get root credentials as
      the cluster-root tests
    - also assert the expected root-user-name if specified
    - cleanup auxiliary backup
    - add Postgres root credentials
    - Skip root-cluster test on Redis
    - minor cleanup
    - increased the low guestagent call timeout (helps tests
      run more stable).

Depends-On: I8a4321ac062b1ec565945b49dbb7c619b6da867f

Change-Id: I3fb0a8bb37fd124c22573552ff61852ead23e9a0
Related-Bug: 1529965
Related-Bug: 1549969
Related-Bug: 1549600
2016-04-18 13:16:17 -04:00
Jenkins
3db9d0e4f4 Merge "blacklist_regex is not an option" 2016-04-18 12:08:56 +00:00
Attila Fazekas
7fbe2dd8af blacklist_regex is not an option
The devstack plugin uses blacklist_regex option which does not exists,
instead of the existing black_list_regex option.

Closes-Bug: 1570444
Change-Id: I0eaae3a17fb70c2294bec67b3778070e570df6f6
2016-04-14 15:42:56 +00:00
Craig Vyvial
7991d61804 Revert the legacy_compute v2 api for nova
The related bugs are closed long-long time ago,
so this change tryes to remove the workaround added by the
reverted commit.

Related-Bug: #1493446
Related-Bug: #1491737

This reverts commit 5cc4f2ea82df311bb2fa906786f12d372addf230.

Change-Id: Ia56d3225ca4e29d239b4a792a08c081b3f0ac636
2016-04-05 16:08:45 +00:00
Jenkins
ee89e7d32d Merge "Make scenario-tests work with all datastores" 2016-01-28 01:19:05 +00:00
Morgan Jones
2bf92b906d Implement Guest Log File Retrieval
Implements log file retrieval from the guest agent.  The contents
of the log file are pushed up to a swift container as a series of
objects that represent a subset of the lines in the log.

The following trove CLI commands are now supported:

trove log-list <instance>         : lists log files available on guest
trove log-enable <instance> <log> : enables writing to log file
trove log-disable <instance> <log>: disables writing to log file
trove log-publish <instance> <log>: publishes updates to swift container
trove log-discard <instance> <log>: discards published logs
trove log-tail <instance> <log>   : displays last lines of log
trove log-save <instance> <log>   : saves the entire log to a file

Log declarations and scenario tests were added for MySQL and
PostgreSQL.

Co-Authored-By: Morgan Jones <morgan@tesora.com>
Co-Authored-By: Alex Tomic <atomic@tesora.com>
Co-Authored-By: Peter Stachowski <peter@tesora.com>
Implements: blueprint datastore-log-operations

Change-Id: I16c3bba4a3183d05af2971be6ba56110105797a6
2016-01-26 17:16:02 +00:00
Petr Malik
2f740c00ac Make scenario-tests work with all datastores
This patch set includes fixes for bugs and deficiencies discovered
in the test framework while testing with various datastores
other than MySQL.

Apply several Trove-configuration tweaks in devstack plugin needed to
make the tests run.

Change-Id: Ice626b3d3f73e75222b1080afa58232e03459a8e
2016-01-24 18:42:42 -05:00
Jenkins
ba69524e05 Merge "Enable all trove services by default" 2015-09-11 21:46:59 +00:00
Craig Vyvial
5cc4f2ea82 use the legacy_compute v2 api for nova instead of v2.1 for now.
Change-Id: Ib8c22d2fc40bc00107926ee5da4db49cb223c9a3
2015-09-08 13:56:42 -05:00
Attila Fazekas
d92a531a24 Enable all trove services by default
trove tests are not runing at the moment,
this patch is trying to address this issue.

Change-Id: Id1c1a11aec34180923939d6265321f7b07ea35a9
2015-08-27 09:52:53 +02:00
Peter Stachowski
3557e2b181 Have devstack plugin install Trove client
Using the Trove devstack plugin was dependent on having the
python-troveclient also enabled.  This change modifies the plugin.sh
file to install the client correctly, thus removing the need of
separately enabling a plugin for it.

Variables were set up in the devstack settings file, which can be
overridden as desired.

A README.rst file was added with instructions on how to set up the
plugin in devstack.

Change-Id: If5a76360249827c19759a5c90dc00f70c59c32cc
2015-07-30 20:49:34 +00:00
Amrith Kumar
19c088b5e0 Update devstack to handle Trove/Neutron setups
Default Trove configuration (for task manager and service) don't
reflect the settings required for Neutron. Trove requires a
configuration that can only be done after neutron is up. This
introduces a new function called just before starting trove services.

Change-Id: I197ec2d3975f7b551590cf1f6c7d2cb42d479e25
Closes-Bug: #1435612
2015-06-03 12:00:54 -04:00
James E. Blair
1b18cd2f7f add devstack plugin
This refactors the devstack support for trove into a devstack plugin
in the trove source tree.

Change-Id: I15667bf9c063e886755aef29056ef0028cbb1080
2015-04-06 12:20:30 -04:00