Commit Graph

15 Commits

Author SHA1 Message Date
Corey Bryant ff317f99fc
Add Kinetic and Zed support
* sync charm-helpers to classic charms
* change openstack-origin/source default to zed
* align testing with zed
* add new zed bundles
* add zed bundles to tests.yaml
* add zed tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases
* add bindep.txt for py310
* sync tox.ini and requirements.txt for ruamel
* use charmcraft_channel 2.0/stable
* move interface/layer env vars to charmcraft.yaml
* fix gss mirror_list and odr retrofit-uca-pocket
* use local charm overlay for HA config instead of manually managing
  symlinks

Depends-On: https://review.opendev.org/c/openstack/charm-octavia/+/858919
Change-Id: I759b60939a4fe2c9599d34e2ff64649426ffbf62
2022-10-02 23:15:08 +02:00
Alex Kavanagh 736e243bb9 Update to build using charmcraft
Due to a build problem with the reactive plugin, this change falls back
on overriding the steps and doing a manual build, but it also ensures
the CI system builds the charm using charmcraft.  Changes:

- add a build-requirements.txt
- modify charmcraft.yaml
- modify osci.yaml
    -> indicate build with charmcraft
- modify tox.ini
    -> tox -e build does charmcraft build/rename
    -> tox -e build-reactive does the reactive build
- modify bundles to use the <charm>.charm artifact in tests.
  and fix deprecation warning re: prefix
- tox inception to enable tox -e func-test in the CI
- Unit test fix

Depends-On: https://review.opendev.org/c/openstack/charm-keystone/+/830986
Depends-On: https://review.opendev.org/c/openstack/charm-interface-keystone/+/830988
Change-Id: Iadd11634d1fe44731ecf0a6104561b4aeebff23f
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-04-02 12:03:51 +01:00
Hervé Beraud 49b7a2348f Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Note that https://github.com/openstack/charms.openstack is used during tests
and he need `mock`, unfortunatelly it doesn't declare `mock` in its
requirements so it retrieve mock from other charm project (cross dependency).
So we depend on charms.openstack first and when
Ib1ed5b598a52375e29e247db9ab4786df5b6d142 will be merged then CI
will pass without errors.

Depends-On: Ib1ed5b598a52375e29e247db9ab4786df5b6d142
Change-Id: Ib9cd965d84654a4ff3a5c24814d8a171865b2db1
2021-12-16 09:12:41 +00:00
Zhang Hua cc292d72e2 Delete hm port on unit removal
JUJU_DEPARTING_UNIT will be set in leader unit as well when removing one
unit, so update_controller_ip_port_list can use it to delete hm port and
update neutron ip list. Besides, cluster.{connected,available} will be
set by interface-openstack-ha when relation-{broken,departed} is changed,
so update_controller_ip_port_list will also have a change to run.
In other words, as long as update_controller_ip_port_list is triggered
for various reasons, the cleanup will be completed.

and pin cffi to 1.14.6 and pyparsing<3.0.0 for python < 3.6

Closes-Bug: 1915512
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/600
Change-Id: I88c61b8d2d0b573df7df071ed7978e83b6803c5c
2021-11-09 09:28:39 +08:00
Aurelien Lourot 58d203465b 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: Id8cced3f4db2b1476bbb803dc75ba2dd5bd99390
2021-07-22 14:59:12 +02:00
Alex Kavanagh abc730c2af 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.

Also pin cachetools < 4.2.2 as 4.2.2+ breaks installations by requiring
setuptools >= 46.4 which breaks most installation targets.

Change-Id: I513e89ac95fe20e4e925cad2e0b190ed83512e80
2021-05-04 18:54:55 +01:00
Alex Kavanagh 9f66f4bdd5 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
* build.lock file constructed on xenial builder

Change-Id: I8770c1ecdb6c533e8a5658d96f029e4bd3347809
2021-04-10 09:16:43 +01:00
Alex Kavanagh 33e5192600 Updates for testing period for 20.01 release
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: I8e5e7a1de8ee11e0ee5a5d8a6268bf6d1c5b8049
2021-01-15 16:33:51 +00:00
Aurelien Lourot b20aa6e676 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: Ia0ca2849ed3b2a6c80ce64fcb033c3cc01717f0e
2020-12-11 14:01:57 +01:00
Alex Kavanagh 08b644e8c9 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: I18f32aff67972c704369ddc37afbc8af32a8c60c
2020-09-26 18:37:46 +01:00
Alex Kavanagh 83893afc30 Release sync for 20.08
- Classic charms: sync charm-helpers.
- Classic ceph based charms:  also sync charms.ceph
- Reactive charms: trigger a rebuild
- sync tox.ini
- sync requirements.txt and test-requirements.txt

Change-Id: I63cea56e82da526198ae87890697af062152eb28
2020-07-27 20:57:17 +01:00
Frode Nordahl 167d7d9cd0
Consume ovn-octavia-provider package on Ussuri and Focal
Remove tactical workarounds for missing binary packages that are
now present in both Ussuri UCA and Focal.

Update test-requirements and improve mocking, unpin flake8 to
allow lint to run on Python 3.8 systems.

Change-Id: I195c8c796a52eadf288f0927f2f41166a5768640
2020-04-18 10:57:57 +02:00
Ryan Beisner 4b057abce7 Sync charm/ceph helpers, tox, and requirements
Change-Id: I4cb71f4d4e56d3465aad294789ad213eb085fe5a
2019-10-19 14:00:07 +01:00
Pete Vander Giessen a6fdb6ebf5 Replace ostestr with stestr in testing framework.
A system upgrade broke ostestr. We can fix it by just calling stestr
directly.

Change-Id: I68b0f867416ae6f00f626eb16e0ed2da5e592df0
2019-03-07 17:12:40 -05:00
Frode Nordahl 9d835f1ae2
Initial commit of charm skeleton 2018-10-09 14:35:45 +02:00