Commit Graph

13 Commits

Author SHA1 Message Date
Alex Kavanagh a3b00e5b5f Migrate unit tests from testr to stestr
Note that there are no actual unit tests.  This just ensures that the
deprecated testr module is replaced with stestr

Change-Id: Ib05d8883806c7b3dcdd6f985f17fadd780245dd1
2021-02-10 11:30:41 +00:00
James Page 75286e5117 Make peer discover more defensive
Before adding a (unit-name, address) tuple to the list of peers
for a particular address type, ensure that the unit has actually
presented data for the requested address type.

This avoids 'None' values being written to the haproxy configuration
files during initial deployment and scale back of units.

Change-Id: Ia10e1454791d92b9ca6233425b4a6ea89642def0
Closes-Bug: 1849901
2020-07-20 08:24:13 +01:00
Ghanshyam Mann 92b649e6c4 [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

charm repos need few updates on either py2 drop or updating
ussuri python template, tox.ini etc.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I15b86d5a0fe5ccb5ea8a57d547fe350b3a024369
2020-02-27 21:20:27 -06:00
Camille Rodriguez 3fe523ffbd Avoid pollution and false positives with tox.ini
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.

Change-Id: Ifea7c7507baa9cc67b6b8b9ec30a726742000793
2019-08-27 09:12:12 -04:00
OpenDev Sysadmins 13583ed01b OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:39:43 +00:00
Zuul a6057418d9 Merge "fix tox python3 overrides" 2018-10-12 10:54:03 +00:00
Doug Hellmann 7286c7ad33 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Iac5fb216d58fd9d5c49367d2a99e1023f87f20b9
Depends-On: I6c9e0bf93abffcfa203b4574eed1d719bd2c4e50
Story: #2002586
Task: #24317
2018-10-04 10:23:08 +00:00
Doug Hellmann d4e479a6e0 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I6748b5eb106dfcf518cf42431560931ebd88fa68
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:39:11 -04:00
Ryan Beisner f69a94e646 Update tox to remove deprecated pip option
Needed-By: Iac5fb216d58fd9d5c49367d2a99e1023f87f20b9
Change-Id: I6c9e0bf93abffcfa203b4574eed1d719bd2c4e50
2018-09-11 16:44:52 -05:00
Liam Young 1df295844d New address and new key store/retrieval mthods
set_address: New method for specifying units address for net-splits
             deployments
send_all: Send setting to all peers
retrieve_local: Retrieve key from local db
retrieve_remote: Retrieve key from peers

Fix name of interface.yaml (should not be plural)
Fix tox targetss and drop charm-tools from requirements

Change-Id: I4b0b952c3490cb7c0a877cd827333d69e81ebdab
2016-07-12 19:11:58 +00:00
Liam Young 654f1cfd33 Fix connected state name to be consistent with other interfaces 2016-06-08 14:22:54 +00:00
Liam Young c022dc763e Add tox config and fix lint and discription 2016-06-08 14:16:54 +00:00
Liam Young 75b97e76c3 Initial commit of interface 2016-05-20 08:28:56 +00:00