2788 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
OpenStack Proposal Bot
0318a2b9af Updated from global requirements
Change-Id: Iad736a7a137dc7323a954bff4ddfdefdf5bae555
2016-05-19 18:49:24 +00:00
hardy.jung
26d95f7601 Add utf8mb4 encoding option to mysql
This encoding option need for using emoji in mysql.

Change-Id: Ibf9f60aa3c4d8aaa15a401a74fd5f4db77c1b157
Closes-Bug: #1582962
2016-05-18 14:30:02 +09:00
Jenkins
654a1a228e Merge "Fixed module-apply on removed module" 2016-05-18 00:09:07 +00:00
Jenkins
54e2ac0bfc Merge "Updated from global requirements" 2016-05-17 21:45:21 +00:00
Jenkins
081e41fded Merge "Trove's tox tests should respect upper-constraints" 2016-05-17 20:54:52 +00:00
Jenkins
a713478cce Merge "Make 'default_password_length' datastore-specific" 2016-05-17 20:28:37 +00:00
Jenkins
29c30e522b Merge "Fix MariaDB clusters failing with TypeError" 2016-05-17 19:01:37 +00:00
OpenStack Proposal Bot
e4dab08fd6 Updated from global requirements
Change-Id: I64bafeec8e6b7b2b2afbaaa845e560da27e578ec
2016-05-17 10:44:30 +00:00
Jenkins
946bd0cdb5 Merge "Reuse Cassandra connections" 2016-05-17 07:23:57 +00:00
Jenkins
56fdad3f0b Merge "Improve mock detector performance" 2016-05-17 06:26:08 +00:00
OpenStack Proposal Bot
25d0e060b6 Updated from global requirements
Change-Id: If7122fa62da82e46ada20346ef7e7326bd5c2c3a
2016-05-15 02:58:25 +00:00
Craig Vyvial
15ea555624 Fix MariaDB clusters failing with TypeError
This would apply to any type of cluster that uses the galera strategy
while setting the nics on a create call. When we called cast to set()
the object was a list of lists. The set method can not has a list so
this was causesing a unhashable error.

The change is to make the instance_nics a list of strings (what we
originaly expected) to resolve this issue.

Change-Id: I6b04f8b580720e5791e0977a9347d031cdbf9710
Closes-Bug: #1570602
2016-05-14 12:38:23 +00:00
Jenkins
b8004d477d Merge "Add db-models and RootController for Postgres" 2016-05-14 07:08:57 +00:00
Jenkins
532d8b0f21 Merge "Schema migrations fail for postgresql backend" 2016-05-14 06:57:28 +00:00
Jenkins
ebb3bfa79d Merge "Add bandit security config" 2016-05-13 23:16:21 +00:00
Jenkins
c008650ced Merge "Fix MariaDB config groups" 2016-05-13 21:26:52 +00:00
Peter MacKinnon
64fc24516b Add bandit security config
Bandit is an OpenStack security linter that uses python AST modules
to perform static code analysis of a project. It can help identify
low, medium, and high security "hotspots" in a project codebase.
This change provides an initial Bandit config based on the existing
one used by Sahara.

Change-Id: Idcfb5641007bb27de8df262b236b9a46d7e11d5d
Closes-Bug: 1547730
2016-05-13 13:41:12 +00:00
Peter Stachowski
0c506cb404 Fixed module-apply on removed module
If you apply a module, remove it and then apply it again it would
no longer show up in the module-query command. This has been fixed
and corresponding tests added to the module scenario run.

Also added missing 'object' to ModuleManager class

Change-Id: I3302a2547cf88f1da1ba4abca6617981572782d4
Closes-Bug: #1571799
2016-05-12 17:19:53 -04:00
Petr Malik
25ab8e2924 Add db-models and RootController for Postgres
Add Postgres guestagent db models.

Implement RootController extension for the Postgres datastore.
The extension is still using MySQL User models which
will likely cause troubles later (e.g. host parameter).

Change-Id: I1a2eb72fe192943e6843c0ea020d7747740e0714
Partial-Bug: 1543739
2016-05-12 17:13:26 -04:00
Petr Malik
6feab8159c User and database tests wait for casted actions
User and database actions like create, delete and update
are guestagent casts. The tests cannot reliably assume
they would be completed once the client call returns
(especially on datastores other than MySQL).

Add methods to wait for listing changes after the above actions.

Change-Id: Ic84b028e67ce19fb9297ebcacd2aafa6fd058d43
2016-05-12 16:59:58 -04:00
Petr Malik
728df1640f Reuse Cassandra connections
Cache and reuse the connections in the Admin and
Status objects to avoid leaking resources.
Initialize the App and Admin objects themselves lazily
at the first access.

The Connection object has been changed to act as both
an instance object and context manager.

Change-Id: I4263b870a1099d345ab1940c61ccdf4680a706ca
Closes-Bug: 1566946
2016-05-12 19:56:20 +00:00
Jenkins
5c364df2c1 Merge "Refactor scenario tests to facilitate multi-group" 2016-05-12 19:55:22 +00:00
Jenkins
36f79ed32f Merge "Add 'redis' as a valid service candidate" 2016-05-12 19:55:16 +00:00
Jenkins
db2376676b Merge "Trivial: Remove unused logging import" 2016-05-12 18:52:43 +00:00
Jenkins
16c10b1d65 Merge "Correct some issues with devstack plugin for trove" 2016-05-12 18:44:51 +00:00
Jenkins
e8388b93ff Merge "Remove unused 'override.config.template'" 2016-05-12 16:54:38 +00:00
Petr Malik
2db8983c74 Trove's tox tests should respect upper-constraints
This was missed by Ie1133e4c020106e8098685ba9125f84b356d8e0c
and breaks 'checkbuild' (runs when API goldfiles change).

Change-Id: I26fd96c0a6906ab03dec7516e71e1c8e70abaa4a
Closes-Bug: #1563038
2016-05-12 12:24:22 -04:00
Jenkins
40d72aea7d Merge "Mysql GTID replication fails when data inserted" 2016-05-12 15:29:21 +00:00
Jenkins
5e1ab273a6 Merge "Enhance mongod pid find for multiple distros" 2016-05-12 01:26:21 +00:00
Jenkins
a72556817a Merge "Fix grammatical mistakes, "it's" to "its"" 2016-05-12 01:26:14 +00:00
Jenkins
38df172ed8 Merge "Fixed error message logging" 2016-05-11 19:33:34 +00:00
Jenkins
09df9ecd9e Merge "Updated from global requirements" 2016-05-11 00:21:06 +00:00
Petr Malik
7d6dfd88ed Improve mock detector performance
Currently Mock Detector runs before and after each
test case. This patch makes it run only before and after
each test class.
While slightly reducing the reporting granularity
this significantly improves its performance and helps
with py34 gate timeouts.

Set the default recursion depth back to '2'
(was reduced in '314577' to workaraund gate timeouts).

Change-Id: I89a1678a9249bed77a38b4686ce43e2ce4d7c867
2016-05-10 16:04:49 -04:00
Peter Stachowski
6bfe705bfd Change recursion depth to '1' for mock detection
With the addition of more python3 tests, the py34 jobs is
failing intermittently due to timeouts.  It seems that python3
is significantly slower in running the unittests, and *way*
slower in doing the dangling-mock detection. Setting the
recursion value to '1' will make the tests run faster while
we figure out the best strategy going forward.

Change-Id: I922c9c465f0009be5ccd399982ff5f6c7fe02416
2016-05-10 13:51:45 +00:00
OpenStack Proposal Bot
18a804f279 Updated from global requirements
Change-Id: I1d0f43a84a0e43b55a68f12a52036cd49d46c095
2016-05-10 00:50:54 +00:00
Jenkins
7e6f15ca4e Merge "Notification exceptions not sent back correctly" 2016-05-09 20:32:01 +00:00
Jenkins
4e314e5e29 Merge "Update Trove's README" 2016-05-09 18:15:09 +00:00
Ali Adil
191327ff06 Fix grammatical mistakes, "it's" to "its"
Noticed a  grammatical mistake in a log message where "it's" was being
used instead of "its". Corrected the message and searched for similar
mistakes in the project. Fixed others files which were mostly
related to comments.

Change-Id: I59b5b6d6ea59da670f793fb23fbd43523ca82a72
2016-05-06 13:28:38 -04:00
Peter Stachowski
9f7be1a10b Notification exceptions not sent back correctly
With the new notification feature added recently, exceptions
that occur on the guest are sent back to the conductor.
Due to a mis-match in the code however, the wrong call is being
issued. The conductor api makes a call to notify_exception
instead of notify_exc_info.

This has been fixed.

Change-Id: Ib2e04bb903c92b4d570913aba2e985db63c45096
Closes-Bug: #1577848
2016-05-06 02:05:52 -04:00
Jenkins
f7b3111bad Merge "Enable more unit tests on Python 3" 2016-05-04 17:46:24 +00:00
Jenkins
02e74ccb23 Merge "Port instance unit tests to Python 3" 2016-05-04 17:46:18 +00:00
Jenkins
b8197b1795 Merge "Port more API unit tests to Python 3" 2016-05-04 17:45:58 +00:00
Jenkins
e692e28052 Merge "Port designate code to Python 3" 2016-05-04 17:00:50 +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
DeepaJon
6539445f01 Update Trove's README
Updated the README.rst, In which updated about trove, getting
started, python client for trove and reference, Removed the Usage
for integration testing Tests and moved into CONTRIBUTION.rst
Taken reference from other component's README.rst file.

Change-Id: Ic3ce38155ecb120fc6fde1098fabb60be5383a64
Closes-Bug: #1572224
2016-05-04 15:48:55 +05:30
Jenkins
6a447af625 Merge "Add variables for quota configuration" 2016-05-03 23:45:50 +00:00
Peter MacKinnon
4b3f34b07e Add 'redis' as a valid service candidate
Currently the only registered service candidate for redis is:
SERVICE_CANDIDATES = ['redis-server']

This should also include the RPM systemd candidate 'redis'.
SERVICE_CANDIDATES = ['redis-server', 'redis']

This change adds 'redis' to the list in SERVICE_CANDIDATES
for systemd redis packages.

Change-Id: Iebefc54be4e7f77941f750bbecf6205c15ca253e
Closes-Bug: #1577819
2016-05-03 15:45:59 +00:00
Victor Stinner
410eb932e9 Enable more unit tests on Python 3
tox.ini: add more unit tests to Python 3.4, tests already pass thanks
to other changes.

Partially implements: blueprint trove-python3
Change-Id: Iebbf2f413153e0f91f47c3dc5671f6f20415dda9
2016-05-03 12:16:37 +02:00