6 Commits

Author SHA1 Message Date
Samuel Matzek
9ec134996a Fix gate issues
Issue 1:
The os-testr 1.0.0 release had a couple of required config changes due
to it's internal usage of stestr.

This change to stestr changed the way tests were discovered by
os-testr and as a result the unit test run was picking up tempest
tests.

A regex is added to the py3base environment call of ostestr because
the use of --serial and --blacklist-file together is broken in stestr
and adding the regex parameter allows the blacklist-file to be
processed. The stestr issue is documented here [1].

Issue 2:

Cache dirs for PKI tokens have been removed for all services in
devstack under I5680376e70e74882e9fdb87ee1b95d5f40570ad7.

We must also remove the use here to pass the right parameters to
configure_auth_token_middleware.

Issue 3:
Keystone V2 APIs have been removed.  When creating Nova and Glance
clients, the test code was either hard coding v2 Keystone or not
providing enough information for the V3 auth.

Issue 4:
Oslo context has deprecated parameters such as 'tenant', has removed
them from its constructor and is using a rename decorator to handle
them. As such, the code and test case to check for unrecognized
parameters to TroveContext and Context is erroneously removing the
tenant parameter.  Oslo context has also changed the from_dict method
since the original code to remove parameters was introduced into
Trove. The new method signature and code should already provide most
or all of the protections against incompatibility the original code
was attempting to provide. The fix for this issue is to change
TroveContext's from_dict method to use the kwargs to handle its own
__init__ parameters and be more in line with what Nova is doing in
its RequestContext subclass.

Issue 5:
Jobs run as jenkins on Zuul v2 but run as user zuul on Zuul v3.

Issue 6:
Ignore one case of pylint E1101 in the Ceilometer notification
code base.

[1] https://github.com/mtreinish/stestr/issues/103

Change-Id: Ic55187b0d73d4c572d7f8332882b4f455a6177c8
2017-10-13 09:37:48 -05:00
Andreas Jaeger
03091f1c58 Remove LIBS_FROM_GIT_*
LIBS_FROM_GIT_ALL_CLIENTS and LIBS_FROM_GIT_ALL_OSLO are not set
anywhere, remove them.

See:
http://codesearch.openstack.org/?q=LIBS_FROM_GIT_ALL_CLIENTS&i=nope&files=&repos=
http://codesearch.openstack.org/?q=LIBS_FROM_GIT_ALL_OSLO&i=nope&files=&repos=

Change-Id: I943fc4d026772f570fd30641201284fb9aae4a5f
2017-03-27 08:28:36 +02:00
Peter Stachowski
5fde4a5dd5 Clean up trovestack utility (fix kick-start)
With the recent changes to devstack and the migration
of the trove utility 'redstack' to 'trovestack' a number
of unnecessary items were brought over.  This change
attempts to fix some problems and clean up some issues:

 - Environment variables are ignored.
 - Credentials are taken from the clouds.yaml file or
   sourced from the devstack/accrc/{project}/{user} directory.
   This means that authentication is now done through the
   mechanism specified by devstack.
   This should fix the kick-start and clean issues.
 - The openstack client is used wherever possible with the
   same set of credentials as mentioned above.
 - References to stable/<branch> have been removed.
 - The trove devstack plugin is assumed to be in the trove repo.
 - Sourcing /tmp/integration/env.rc has been removed (items in
   this file can be moved to ~/.trovestack.options.rc if needed).
 - set_home_dir was removed.
 - The fault flavors no longer set up 'resize' versions of themselves.
 - Help for int-tests was improved to add scenario examples and
   a few other minor clarifications.

This should fix the issues people may have been having with
'kick-start' giving an authentication error after sourcing the
openrc file or 'clean' not running properly.  There should be
no more 'plugin already enabled' style errors either.

Note: The original code for switching to V3 of authentication was
removed as it wasn't an issue with kick-start/clean up per se.
It still should be fixed, but as a separate set of changes.

Change-Id: Ib9af99c37f6729e4e91114a8032732d23a3e0850
2016-12-09 17:21:24 +00:00
Peter Stachowski
c666032b09 Create net/subnet for alt_demo tenant
Now that devstack uses Neutron by default (and so does the gate)
we need to create a private network and subnet in the alt_demo
tenant for the int-tests to work.
(see https://review.openstack.org/#/c/355492 )
Note that we will not use this network to start as some issues
still need to be sorted out.

The tcp_ports configuration was also moved to facilitate both
network styles.

The 'PUBLIC_INTERFACE=eth0' line was also moved to be in just
nova networking as it is not necessary for Neutron (and caused
the network to become unstable).  This should allow it to
continue working for backwards compatibility if required.

A number of changes to code and/or tests were also required.
Since these are specifically tied to the switch to neutron
(as they are equally valid for nova-net) they have been
made separately and referenced below in the 'dependencies' list.
This should also facilitate easier reviews and make it
possible to backport any of the fixes if required.

The cluster tests for PXC and Redis were turned off until the
networking issues with these two datastores can be sorted out.

Merged dependencies: I136141b3db78b7a0a1804bb5e3d4ca5cf4bc3bb3
                     I47cbe9e899cb0767c377d184f123e38eda5b6a05
                     I2ede074eb9bdf26420750f19f3aa4b8d057c5d7d
                     I6aff776680c9c0632d8965c3ed70ed26db0a63f2
                     I54edc4acac09ca2278f525c08ad0d87576f0549e
                     Iab530fe503336c83e9b948c2c008d371a8030a1e
                     I6464c0031ba5b504ff103d8f62093d252deb87bb

We need to have the new variable IPV4_ADDRS_SAFE_TO_USE defined:
Depends-On: Ic6720677a4a496d246a8f9be5ede1a53821f56dc

Change-Id: I5c1714b7839b2736c50f2daa2f4506c4006815a1
Closes-Bug: #1613889
2016-11-29 09:52:59 -05:00
Amrith Kumar
490492b967 beginning to change trove-integration
This commit changes trove-integration and the artifacts that were
brought over from that repository and brings them into the trove
repository.

The things (specifically) done in this commit are:

1. get rid of .gitreview; this is no longer a repository of its own,
it is a part of the trove repository.

2. Update the readme (README.md)

3. Make the elements work in this directory structure

4. Rename the elements and get rid of the name 'reddwarf', change the
name redstack to trovestack

5. Refactor all scripts and make them reflect the new directory
structure.

Change-Id: Iae67fe231b6c7964ca3f31fc593fc9fa4111d5be
2016-10-10 20:30:05 -04:00
Amrith Kumar
b120be1772 Merge trove-integration into trove
This commit will merge into trove, the trove-integration tree as of
commit 9f92ca853f8aa2f72921e54682c918941a8f0919. This is in
preparation for making trove-integration go away.

In addition, it supresses any consideration of the integration
directory in the trove tox tests as it is understandably a small pile
of pooh and in need of much cleanup.

Change-Id: Ib7f2655c4c5ed86b5454708c04371ee55e37ec2d
Partially-Implements-Blueprint: eliminate-trove-integration-and-redstack
2016-10-09 07:14:25 -04:00