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
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
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
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
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
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
This was missed by Ie1133e4c020106e8098685ba9125f84b356d8e0c
and breaks 'checkbuild' (runs when API goldfiles change).
Change-Id: I26fd96c0a6906ab03dec7516e71e1c8e70abaa4a
Closes-Bug: #1563038
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
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
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
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
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
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
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
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