Commit Graph

203 Commits (stable/victoria)

Author SHA1 Message Date
Alex Kavanagh ce88ce0f09 [victoria] Ensure get_requests_for_local_unit doesn't fail on incomplete relation
This is a rebuild/make sync for charms to pickup the fix in charmhelpers to fix
any inadvertant accesses of ['ca'] in the relation data before it is available
from vault in the certificates relation.  Fix in charmhelpers is in [1].

[1] https://github.com/juju/charm-helpers/pull/830
Closes-Bug: #2028683

Change-Id: I66fb9f7f2cbb86087554f352ebce1ea4f29c5e8a
2023-09-12 18:54:24 +01:00
Edward Hope-Morley 8f24b63287 Rebuild with support for service_type
Bumps versions of interface-keystone and layer-openstack

Adds bindep.txt to get CI working

Related-Bug: #1965967
Change-Id: I199b9afd6d52e03f16904b24b8478a136e78ec6c
2023-08-23 14:07:56 +01:00
Corey Bryant c6348ecc49 Pin tox to < 4.0.0
Tox 4.0.0 was recently released and it has several breaking changes.
We pin to < 4.0.0 here. We are planning to move forward only on the
master charm branches.

Tox is also pinned to < 4.0.0 for stable branches in upstream
openstack-zuul-jobs as well as in zosci-config. However, the
requires= section in the charm's tox.ini file ends up installing
tox>4, wiping out the zuul-pinned tox<4 that was already installed
installed. This patch fixes that.

Related-Bug: #2002788
Change-Id: I33e0601075bb6ae9db1666ce4088bcad3c15a558
2023-01-13 15:13:39 -05:00
Corey Bryant 47f07599cf Ensure upgrades are executed
Prior to this change, big bang upgrades were not being run
when openstack-origin was updated to a new release.

Closes-Bug: #1979553
Change-Id: I3a9d0211bede8db43cd5ae8e0db51736155282f6
(cherry picked from commit 6d73c8263f)
2022-10-05 14:23:57 +00:00
Alex Kavanagh 5f83c7eb21 Pin build.lock for all layers to the commit hash
The build.lock branch points to master which means that the layer is not
locked.  Lock the layers to the commit hash instead.

Closes-Bug: #1990062
Change-Id: I4f7c9094b00325273b2782ee898ff54d8a5ed705
2022-09-21 11:02:08 +01:00
Zuul 38cdfb0d90 Merge "Update the bundles to use the stable track, edge risk for victoria" into stable/victoria 2022-07-25 13:48:21 +00:00
tpsilva 08e05ad355 Add use-public-endpoint config option
Currently, this charm sets the host_href config option with the
admin endpoint. This patch adds a config option to allow it to be
configured to use the public endpoint, so that the secrets could
be accessible through this endpoint.

Closes-bug: #1642769
Change-Id: Ice7131459753f15e1184c687a24301689df338e2
(cherry picked from commit c3bb1bb650)
2022-07-01 19:41:29 +00:00
Alex Kavanagh 395c720e02 Update the bundles to use the stable track, edge risk for victoria
This update points the charms to the appropriate channel for
the charm being used, either from ceph, openstack, ovn or the
misc tracks for victoria.

Change-Id: Ic949567ce684d8e8185aa005961bf3c324f0c317
2022-06-17 15:34:08 +01:00
Alex Kavanagh 56d30ec2f1 Migrate charm charmhub for stable/victoria
- start from stable/victoria branch
- Do charmcraft, osci, zuul changes
- Modify libs to point to stable/victoria for:
  - charmhelpers
  - charms.openstack (as needed)
  - zaza & zaza.openstack.tests
- Remove unsupported test bundles
- migration bundles to charmhub.io (ch: prefix + channels)
- Build on 20.04 amd64
- Run on 20.04 amd64, s390x, ppc64el, arm64

Change-Id: Id5306dd328e6ea08435b5b89ce26a9b49c1b4fd4
2022-05-19 14:05:46 +01:00
Alex Kavanagh d679b0e814 21.10 - Release
Remove the "channel: candidate" from the func-test
bundles.

Change-Id: Ie779b6004a65cd816e881a603ddf572dedb035d7
2021-10-21 14:56:03 +01:00
Alex Kavanagh 66127f86fa 21.10 - Update requirements.txt - pin cffi 1.14.6
* On stable/21.10 branch
* Pin cffi 1.14.6 in requirements.txt used in charm build
  for py35 compatability.

Change-Id: I58609f5727f8a450436b646e9156ffccad62dbad
2021-10-17 16:53:16 +01:00
Alex Kavanagh 981d0d7dcb 21.10 - Stable cut of charms for testing period
* use stable/21.10 libraries
* use zaza/zaza-openstack-tests at stable/21.10
* build.lock files for reactive charms
* bundles refer to ~openstack-charms candidate channel

Change-Id: I6adab0740cc93d57a0ba6f5841924fad7e625101
2021-10-14 11:19:24 +01:00
Felipe Reyes 0740a468ef Expose max request and secret size config options.
Upstream Barbican has bumped up its default for the configuration keys
max_allowed_request_size_in_bytes and max_allowed_secret_in_bytes to
25kB and 20kB respectively (c59f2a6b). This change adopts those values
to be used in all the supported releases and exposes them via juju
config.

Closes-Bug: #1946018
Change-Id: I3dcb30f5de6367de2aa5c26bb59a79893fb8e578
2021-10-04 15:50:02 -03:00
Alex Kavanagh 3ac1472fe6 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- rebuild to pick up charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Icbc9877edc720792f9bb09d8b246d38748b5f5ba
2021-09-21 13:58:47 +01:00
Aurelien Lourot dbf5142802 Sync release-tools
In order to fix ResolutionImpossible on tox invocation.

https://github.com/openstack-charmers/release-tools/issues/151
https://github.com/openstack-charmers/release-tools/pull/152

Change-Id: Ib7f509be145966bbe09cbf1aff7b08923de10fe9
2021-07-22 14:51:27 +02:00
Zuul a52efd2e53 Merge "Add impish to metadata.yaml" 2021-06-07 09:39:11 +00:00
Aurelien Lourot ef65af8588 Add impish to metadata.yaml
Change-Id: I6fd115af6201a7ceec0f28fdfe87544edb11ba5b
2021-06-03 11:02:21 +02:00
Corey Bryant a85044fe2e rebuild - restore c-h proxy env vars for add-apt-repository
Change-Id: Ie69ab17f330c6dfc06f09f51dde34b96fb677794
2021-05-13 09:07:40 -04:00
Alex Kavanagh 96750d85f0 Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

hisute-wallaby test is disabled (moved to dev) due to [1].

[1] https://github.com/juju-solutions/layer-basic/issues/194

Change-Id: I65a7403ec68d8be880e418bc4fca1b1fdffe6eb9
2021-05-06 09:57:19 +00:00
Alex Kavanagh e5f0496fe1 Updates to flip all libraries back to master
This patchset updates all the requirements for charms.openstack,
charm-helpers, charms.ceph, zaza and zaza-openstack-tests back
to master branch.

Change-Id: Ic2d80c0c1eb8e22408ce363fd05b5d66d1d93e4b
2021-05-03 16:02:04 +01:00
Zuul 95b8b8d378 Merge "Run db sync manually by leader only" 2021-04-15 06:38:38 +00:00
Alex Kavanagh 07b76d50e7 21.04 libraries freeze for charms on master branch
* charm-helpers sync for classic charms
* build.lock file for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure stable/21.04 branch for charms.openstack
  - ensure stable/21.04 branch for charm-helpers

Change-Id: I0f28e1e28ee9cb5712ef5b7b007903d317a5f61a
2021-04-03 20:20:30 +01:00
Alex Kavanagh 45d9d9b19d Add hirsute and remove trusty from metadata.yaml
This update adds the new hirsute Ubuntu release (21.04) and
removes trusty support (14.04 which is EOL at 21.04).

Change-Id: Ied3c4d70fb5a7cf2556a4ca7d9c0aec551b63939
2021-03-02 20:51:18 +00:00
Zuul c396f3a999 Merge "Add new osci.yaml" 2021-02-24 12:12:55 +00:00
Chris MacNaughton 0b902f76d3 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I1bba556eebc3081e890989507b0ccfe6f029c3a6
2021-02-23 11:10:49 +01:00
Billy Olsen f5745a0021 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I514698776d3dfdb6eafc9b237687c11f43463302
2021-02-19 16:58:14 -07:00
Alex Kavanagh c9095fbc01 Updates to pin charm-tools to 2.8.3
* Update requirements.txt to pin charm-tools to 2.8.3
* Update tox.ini to change the build parameters.
* This upgrades from <2.7 which adds reproducible charms
* Bug was fixed that controlled the default output directory
  doesn't get 'builds' appended.  The tox change puts it
  back so that stable & master both build to the same
  directory.  This may be reviewed in the future.

Change-Id: Ie41022bf94c69019799d87abf138228ff27dddb8
2021-02-17 12:06:51 +00:00
David Ames ca80b266ed Run db sync manually by leader only
Without db_auto_create = False each barbican-worker attempts to run
alembic upgrades on the database whenever they start. This leads to
race conditions that can leave the sate of the database broken
(multiple alembic version that "overlap").

This change runs the barbican-manage db upgrade by the leader only
avoiding the race condition. charms.openstack also handles the
openstack upgrade process with a call to instance.db_sync.

Change-Id: I6b9498059c7057b73b1c3db0e355456c38b0510e
Closes-Bug: #1827690
2021-02-05 15:39:52 -08:00
Alex Kavanagh 8c4c1a23d0 Rebuild to use charm-tools pre 2.8 release
Reverting to an earlier version of charm-tools to
resolve some building issues seen with latest 2.8.2
version.

Change-Id: I69fab5d73305dfe1eb0563d5e570ef76b64e5d64
2021-02-02 17:04:49 +00:00
David Ames 096c6b5c59 Rebuild with udpated charm-tools 2.8.2
Validate the newest version of charm-tools: 2.8.2
https://github.com/juju/charm-tools/pull/598

Change-Id: I06b9deae0bc7376c8ba3c6705cba9ec5ed6d94c5
2021-02-01 14:06:46 -08:00
Aurelien Lourot 0b3b075eec Add Groovy to the test gate
Change-Id: I2a7fa371702f2e78838f5a90b8688b3a3b5dbce8
2021-01-29 14:11:07 +00:00
Alex Kavanagh 746e7f88a4 Fix missing auto DB creation on Victoria
Also updates for testing period for 20.01 release.
All these changes are needed together in order to have passing
functional tests.

Includes updates to charmhelpers/charms.openstack for cert_utils
and unit-get for the install hook error on Juju 2.9

* charm-helpers sync for classic charms
* rebuild for reactive charms
* ensure tox.ini is from release-tools
* ensure requirements.txt files are from release-tools
* On reactive charms:
  - ensure master branch for charms.openstack
  - ensure master branch for charm-helpers

Change-Id: Ieff90482f0acfac735c1ed69fc0593bd44913bac
Closes-Bug: #1903725
2021-01-27 18:18:52 +01:00
Aurelien Lourot c9b7a01e84 Remove Disco and Eoan bits
Change-Id: I7be89404b640c06345611a4794f467802f3d651c
2021-01-12 13:49:47 +01:00
Aurelien Lourot f70cbf41ea Sync release-tools
Sync release-tools boilerplate containing these changes
in order to pin pip < 20.3:
https://github.com/openstack-charmers/release-tools/pull/125
https://github.com/openstack-charmers/release-tools/pull/126

Change-Id: Ib977225e1dcb651dd9d98ab67edaa76545621451
2020-12-11 13:52:41 +01:00
Zuul b5060d6dfe Merge "Switch to python3-apt in Victoria" 2020-10-16 12:59:46 +00:00
Corey Bryant f6fbcd82a9 Switch to python3-apt in Victoria
The python-apt binary package is removed in Ubuntu Groovy.
Switch the charm to python3-apt.

Change-Id: Ib3da731b3e649bf99d63229c376eb8c8354a72d7
Closes-Bug: #1899680
2020-10-15 12:37:02 +00:00
Alex Kavanagh 3768debc33 Rebuild reactive charms to pick up latest charm-helpers release.
v0.20.18 has been released and needs incorporating into the reactive charms.

Change-Id: Ia6d12ef586678867e2fa183942f8d0b131fbd2d3
2020-10-14 16:07:25 +01:00
Alex Kavanagh f4ed57fc08 Sync libraries & common files prior to freeze
* charm-helpers sync for classic charms
* charms.ceph sync for ceph charms
* rebuild for reactive charms
* sync tox.ini files as needed
* sync requirements.txt files to sync to standard

Change-Id: Ic9b019feec791d33f45e71264f4649d60b75f958
2020-09-26 18:28:48 +01:00
Zuul a87991f606 Merge "Enable worker-multiplier for wsgi" 2020-09-17 09:06:34 +00:00
Aurelien Lourot 64300e7be3 Add focal-victoria to the test gate
Change-Id: I284411405cfab0d789f56d41774309d11ced257b
2020-08-28 14:24:00 +02:00
Nobuto Murata 3ba2652b10 Enable worker-multiplier for wsgi
So that users can have a control over the number of processes to be
spawend and database connections to be consumed.

Change-Id: I7ffdafb807a604d89381a2fecaba8300f00e9691
Closes-Bug: #1677543
2020-08-04 12:16:21 +09:00
Alex Kavanagh 22017a5a8f Release sync for 20.08
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild

Change-Id: If9861704a9cc5eacca1ba1042b124f6f5620b981
2020-07-27 20:48:25 +01:00
Zuul ae19d829dc Merge "Switch to using openstack-python3-charm-jobs" 2020-07-17 15:02:12 +00:00
Corey Bryant 044d8f50da Add victoria package version
Change-Id: I4858414736c65e51d8f796bf0e101dc06f4d5cc5
2020-07-13 18:37:06 +00:00
James Page 3baea3523e Switch to using openstack-python3-charm-jobs
Change-Id: I69ffbb9274a352c784db634e40a936e7aca7b5f5
Depends-On: Ib9ed240aef6680be7c972088ca5337b5740b9c36
2020-07-13 08:36:27 +01:00
Zuul 0ff400137d Merge "Stop to use the __future__ module." 2020-07-13 05:38:54 +00:00
Aurelien Lourot 099e195e9e Add Victoria test bundles
Change-Id: Ibb0bd976463c8c88eaf6f577af4399452ebe24a7
2020-07-08 14:27:20 +02:00
Liam Young 1999476e1b CH Sync for rabbit relation bug fix
Charmhelper sync to pick up the fix to the AMQP context.

Also remove jinja2 from wheelhouse.txt as is a duplicate
and due to improvements in charm build it now causes the
build to fail.

Change-Id: I1c41ccedfbe453180b4c7835b47028ff7604711a
Closes-Bug: #1796886
2020-06-30 11:56:51 +00:00
Hervé Beraud 7da1f26398 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: Iea37866cb1e319b443acf66e593d8f37bf692b50
2020-06-02 19:36:47 +02:00
Alex Kavanagh 254c7908b8 Updates for 20.08 cycle start for groovy and libs
- Adds groovy to the series in the metadata
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild

Change-Id: I51482cc30f21cb03710655f08b93171d6f3bf8d8
2020-06-02 14:26:59 +01:00