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
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
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
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
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
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
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
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
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