Commit Graph

14 Commits

Author SHA1 Message Date
Alex Kavanagh 383121fc58 Migrate from testr to stestr module
Note that the interface doesn't have any unit tests yet.

Change-Id: Ifc2f9c0b4a63a2728b8ae6601326f8ccd4887184
2021-02-10 12:36:59 +00:00
Liam Young 571f4864c2 Differentiate connected and ready hosts
rabbitmq_hosts is used to check which hosts are connected and also
which are ready. Split these into two different methods and update
the existing rabbitmq_hosts to be a wrapper around
rabbitmq_ready_hosts so that when charms build their contexts they
do not include rabbit units which are not ready for client
connections.

Change-Id: Ic8b669fedfef74ed24db733e01c5dfc0fd079abd
Closes-Bug: #1796886
2020-06-25 09:56:35 +00:00
Ghanshyam Mann 337e9ee8fd [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: I46cff2dc02fb16db35d01fe6454ee67732d8def5
2020-02-27 22:23:46 -06:00
Camille Rodriguez 73e9950aae 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: Ie445395ba97df54fa1857c7c686b698641fb8e22
2019-08-27 09:17:56 -04:00
OpenDev Sysadmins d9563bb2f1 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:42:47 +00:00
Zuul 30bc8d5966 Merge "fix tox python3 overrides" 2018-10-12 10:47:37 +00:00
Doug Hellmann e5b3de66e7 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: I4379d8019f70fd1b34885e861f189f807c80a3f0
Story: #2002586
Task: #24317
2018-10-04 12:37:44 +00:00
Doug Hellmann 8bf081ef6d 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: I8bbc128927eb3a48bfbe8cdf0008149ce97bc79f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-10-04 12:37:31 +00:00
Andreas Jaeger 2fd0cbfda6 Update tox to remove deprecated pip option
The job --allow-unverified is obsolete, also python-apt cannot be
installed and is unneeded for current jobs.

Remove so that python installation works.

Change-Id: If1b18b76f93226060ad47c9d509a0332305fef76
2018-10-04 12:16:09 +02:00
James Page 4e22b80db2 Ensure rabbitmq host list is consistent
Sort the list of rabbitmq hosts before returning to the calling
function ensuring that the list is always presented in the same
order.  This means that its use in configuration files will be
consistent between hook invocations, avoiding service restarts
as the order won't be random.

Change-Id: I3fe80c389930569a3b4d92e44870e8f949bb62f3
Closes-Bug: 1729020
2017-11-02 08:19:22 +00:00
Ryan Beisner 2e153d9b70 Update tests and requirements
Charm-tools and ostestr are not necessary as there are
no unit tests in this repo.  This update allows
the virtualenv to successfully build, and the pep8
test to successfully execute.

Change-Id: If4b64f6c42e58dd3e4b9536a0143434a5f636f1c
Partial-bug: #1729413
2017-11-01 20:25:25 +00:00
James Page ace0c46caf Add support for network spaces
Automatically set the private-address relation key to the
network space binding for the relation the interface is
supporting for Juju >= 2.0; for older Juju versions continue
to use "unit-get private-address".

This change also adds the ability for the consuming charm
to override the hostname provided on the relation using the
option hostname parameter.

Change-Id: Iee0d1ac7168fe0c32deaf03add5cb261da6c2a79
2017-01-25 17:35:38 +00:00
Liam Young adc61d2ff9 Add method to decode Rabbit CA cert
If rabbit is running in SSL mode then it will present a base64
encoded CA cert down the relation. Add a methode to retrieve and
decode the cert.

Change-Id: I1806a5d1bcac6a7ac80f655d96f951f84e9db521
2016-08-01 11:22:30 +00:00
James Page 496cbe6dba Re-initialize repositor 2016-03-10 10:23:06 +00:00