Commit Graph

113 Commits

Author SHA1 Message Date
Alex Kavanagh 655f36440f Updates for caracal tox.ini
Update the tox.ini file(s) to use the constraints file from
zaza-openstack-tests.

Change-Id: I5972e75f101fe211e53983ef659346ff2f4780f4
2024-02-24 20:11:33 +00:00
Alex Kavanagh 27f231b759 Updates for caracal testing support
These updates, on the master branch, are to support testing the caracal
packages and support of the charms for caracal.  They do NOT lock the charms
down, and don't change the testing branches to stable branches.

Change-Id: I22dfeba18dc13ee159892f1a55fb1c76112bf53d
2024-02-12 18:19:28 +00:00
Corey Bryant 0f54198b8c Add 2023.2 Bobcat support
* sync charm-helpers to classic charms
* change openstack-origin/source default to bobcat
* add mantic to metadata series
* align testing with bobcat
* add new bobcat bundles
* add bobcat bundles to tests.yaml
* add bobcat tests to osci.yaml
* update build-on and run-on bases
* drop kinetic
* update charmcraft_channel to 2.x/edge

Change-Id: I95ef12935e2ef0b48a45171fc7629e2680cfa1ed
2023-08-03 14:00:21 -04:00
Wong Hong Han 186cd47c26 Add allow-transfer option
The allow-transfer is disabled by default in this change.
This option enable allow-transfer in 'options' config.

Closes-Bug: #2003829
Change-Id: I7b45848d902550b75695f53b75d62b8ce73ad326
2023-06-16 08:30:01 +08:00
Corey Bryant 76088020aa Enable jammy-antelope voting and drop kinetic-zed tests
* Voting was turned on for jammy-antelope in the
  project-template for charm-functional-jobs in zosci-config
* Voting for jammy-antelope bundles with non-standard names
  is turned on in individual charms
* Kinetic-zed bundles/tests are removed

Change-Id: I08d5503b3d49f35c812c5e503e8775e8b27044ce
2023-03-29 21:01:48 +00:00
Corey Bryant d4578a8c8a Add Antelope support
* sync charm-helpers to classic charms
* change openstack-origin/source default to antelope
* align testing with antelope
* add new antelope bundles
* add antelope bundles to tests.yaml
* add antelope tests to osci.yaml and .zuul.yaml
* update build-on and run-on bases

Change-Id: Ib717ac6e3e82972b67bf89d1603176127eb1e5ec
2023-03-08 15:43:35 +00:00
Liam Young f33375073a Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I210cc3cd05f8f02d170a6b273aefcba51d0740f0
2023-01-17 14:55:34 +00:00
Felipe Reyes 490a302815 Drop 'source' config key from support charms
- mysql-innodb-cluster
- rabbitmq-server

Change-Id: I1a009cd083a22ba86ba2fd4aec660d7729a283f7
Func-Test-Pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/970
2022-10-26 22:45:21 -03:00
Corey Bryant 57539ec87d Build separately for each supported series and use binary builds
Charms for OpenStack Yoga supports both Ubuntu Focal and Jammy
which means Python 3.8 and Python 3.10.  Managing dependencies
across those two versions is non-trivial and we need to build
the charm on the series the charm is supposed to support.

Switch to using a binary build which allows pip's dependency
resolution to work.

Change-Id: If7ccdcaa900a3276c6e8eb124cdb0f605b20d6c3
2022-09-29 13:04:07 +00:00
Corey Bryant c2c174f539 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
* drop reactive plugin overrides
* move interface/layer env vars to charmcraft.yaml

Change-Id: I2c98ab0f82aa6d6d0a43365cee04d6da34a39ce4
2022-08-31 19:58:26 +01:00
Alex Kavanagh 315db68d18 Remove Jinja2/MarkupSafe from wheelhouse.txt
These were pins to cope with supporting python 3.4.  However,
layer-basic (as of [1]) now does the right thing in terms of getting the
correct versions of Jinja2 and MarkupSafe for the version of Ubuntu that
the charm is being built on:

1 - https://github.com/juju-solutions/layer-basic/pull/199

Change-Id: I29533d4794d6fb0e045893c934cb4920cacb408e
2022-07-08 11:37:04 +01:00
Martin Kalcok 4000b6ea72 Add functionality to configure virtual service IPs
Closes-Bug: #1804057
func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/685
Change-Id: I29f2eeca508048fdf8464193368cce5720559b9e
2022-04-12 13:46:23 -07:00
Alex Kavanagh bb172c5c03 Updates to enable jammy and finalise charmcraft builds
- Add 22.04 to charmcraft.yaml
- Update metadata to include jammy
- Remove impish from metadata
- Update osci.yaml to include py3.10 default job
- Modify tox.ini to remove py35,py36,py37 tox target and add py310
  target.
- ensure that the openstack-origin is yoga
- Pin setuptools < 50.0 in src/wheelhouse.txt

Change-Id: I29b80b1e4797eb794c0e2611e732c376d99c270f
2022-04-08 12:30:57 -04:00
Alex Kavanagh e7ada778b9 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

Change-Id: I1e798c9267085d50797b8988f50e99ac9184be33
2022-02-01 19:57:43 +00:00
Alex Kavanagh c2ff88d0f7 Migrate charm to charmhub latest/edge track
Change-Id: I83ddd59bb225539c640ba60fc7b65fe537b58b63
2022-01-27 20:13:16 +00:00
Zuul 7a0fbd1634 Merge "Additional test updates" 2021-11-18 14:32:03 +00:00
Corey Bryant 6f312a6c5d Additional test updates
* drop trusty/xenial metadata and function tests
* switch to release-specific zosci functional tests
* switch to yoga zosci unit test job
* add py39

Change-Id: Ie263f9a14edfe9d3ffdaaff996bbe6e34def21c5
2021-11-17 14:46:54 -05:00
Alex Kavanagh 89e0d5e708 Remove 'jammy' metadata - unblock gate
The charmstore doesn't accept charms with jammy metadata yet.

Change-Id: I65fe68feb8b5a2e78000bebd392905643f4f5c4d
2021-11-12 11:00:38 +00:00
Corey Bryant b2f0dda387 Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* pin pyparsing for aodhclient
* pin cffi for py35
* add non-voting focal-yoga bundle
* add non-voting jammy-yoga bundle
* add series metadata for jammy
* switch xena bundles to voting
* run focal-ussuri as smoke tests
* remove groovy bundles

Change-Id: Ibc20974155e5029047f753600f625567173744ec
2021-11-09 10:27:03 -05:00
Alex Kavanagh f8986150ab Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- remove groovy-victoria bundle
- align bundles and tests.yaml with designate charm mainly
  to allow test_nrpe_configured to be successful
- rebuild to pick up charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: I4ba5af13097661bbd4966891c6628abf8a425659
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2021-10-05 13:37:34 +01:00
Aurelien Lourot cfa81adfde 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: Ib0398e33f2c629208ccf7f3323ad92626d791942
2021-07-22 14:53:58 +02:00
Alex Kavanagh 5205bceedf Fix charm so that on focal it uses named service - 2
Pre-focal the service was called 'bind9'.  On focal+ it is called
'named'. A previous commit [1] (also be me) didn't actually catch all of
the uses of bind9 as a service, so this concludes the set.

[1] Ida65c620fa81715d37e468217aea28f160cf31ee

Change-Id: Ifb5adfbb5a69a9b12ef9fb7c214b192642d11344
Closes-Bug: #1929770
2021-07-06 15:21:39 +01:00
Zuul f232f45f3f Merge "Fix charm so that on focal it uses named service" 2021-06-08 09:00:40 +00:00
Aurelien Lourot 2f62f331c2 Add impish to metadata.yaml
Change-Id: I7d926cc09629b93dc92a50f809699fd0afafbc53
2021-06-03 11:11:37 +02:00
Alex Kavanagh ba7e3ac9e4 Fix charm so that on focal it uses named service
Pre-focal the service was called 'bind9'.  On focal+ it is called
'named'.  This patch introduces a number of changes to make this
possible:

 * Modify existing charm class "DesignateBindCharm" to include a check
   to see if the distro version is "focal" or higher; if so switch
   the service name to 'named'.

Change-Id: Ida65c620fa81715d37e468217aea28f160cf31ee
Closes-Bug: #1929770
2021-06-02 10:53:00 +01:00
Alex Kavanagh 9c6ea51484 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: I51d16d692b1456f157b54d35eec892c14946ea4d
2021-05-06 09:56:20 +00:00
Alex Kavanagh 6a625665b6 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: Ic5d0d994cc3cbf5247bfd355c41793ea0b90f6cd
2021-05-03 16:04:28 +01:00
Alex Kavanagh 2d0221fa60 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: Iec68b0bda37b2139a9c8a2acdd59b3725e11b4cd
2021-04-03 20:24:26 +01:00
Alex Kavanagh 641b271791 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: I61f14b54f8c9208b072d7e998103fa63fcf806ca
2021-03-02 20:55:15 +00:00
Billy Olsen 06ec11595b Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I74bedac7161c579bbcff367db420c86d08a75713
2021-02-19 17:01:06 -07:00
Zuul 1f16c4afa0 Merge "Updates for testing period for 20.01 release" 2021-01-14 09:41:24 +00:00
Alex Kavanagh 6fe492f9c0 Updates for testing period for 20.01 release
* 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: Ib9a01f611397ba6ba926cc8518e41f930b249fd7
2021-01-12 15:32:37 +00:00
Aurelien Lourot c505f739d1 Remove Disco and Eoan bits
Change-Id: I6b123ee75d688daaed0d12f4da806b589cb6476a
2021-01-12 13:54:59 +01:00
Aurelien Lourot bada862189 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: I3b00072df35f88cccb8d558f06666a67d5e506f6
2020-12-11 13:55:49 +01:00
Aurelien Lourot 2a2004096c Add Groovy to the test gate
Change-Id: I8c0a019a056e5decf53ef9652ece2c9ba10994a7
2020-11-05 12:46:25 +01:00
Aurelien Lourot fdd2f67c14 Add focal-victoria to the test gate
Change-Id: I811f0d1e26353c705a5767a51a7e8ecfaccc6f97
2020-08-28 14:25:36 +02:00
Alex Kavanagh c72f509c0c 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: Ia3edbe7fbf491218ecd3279179dd2c16ba390da0
2020-07-27 20:52:00 +01:00
James Page 57d034b729 Allow access from remote designate units
If allowed_nets is set ensure that the CIDR's for the remote
units on the dns-backend relation are also included in the
allow-query configuration stanza.

This ensures that designate can validate that zone updates
have been correctly transferred to all BIND servers.

Closes-Bug: 1806485
Depends-On: Icdb525c9886937597e35ab8126237a2850604832
Change-Id: I02ebe63ad2775a00eb0f2d0a9ff2499319940833
2020-07-21 10:04:11 +01:00
James Page 5174ce1201 Misc tidy of lint
Remove upper bound on flake8 and tidy misc lint on codebase.

Note that one of the warning messages signalled that a parameter
was not used in a format call. This may or may not be correct
but this commit sticks with the existing behaviour.

Change-Id: Ifa178694a97997f992afa88f4a8f3bead09ced3b
2020-07-21 09:12:11 +01:00
Aurelien Lourot c9b2fed85b Add Victoria test bundles
Change-Id: Ia7854253346b04f74771826ee14ef90167c15e0a
2020-07-08 14:33:59 +02:00
Zuul 6aefdbf561 Merge "Updates for 20.08 cycle start for groovy and libs" 2020-06-08 08:50:35 +00:00
Liam Young 02f667ac16 Update files used to seed new bind units
It looks like the focal version of named is compiled with lmdb
support where as the bionic version is not. This means that on
Focal+ zone information is stored in a nzd file rather than
nzf. This change ensure that nzd files are also used to seed new
units.

Change-Id: Ib1954ec01d78518da064b0912b91643c153d543e
Closes-Bug: #1881532
2020-06-03 08:45:59 +00:00
Alex Kavanagh b81d8d9bf8 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: Icede67a051fcd07f6b62df3d0b0401c6284e8e61
2020-06-02 14:30:20 +01:00
Zuul 3152ea204c Merge "Enable focal and ussuri as part of the gate tests" 2020-05-18 06:30:38 +00:00
Alex Kavanagh b6321a37cf Enable focal and ussuri as part of the gate tests
Add bionic-ussuri and focal-ussuri (with mysql8 support) bundles.

Change-Id: I5e835e3375a0209b53315a798c81e7f6ac8e53ff
2020-05-17 19:40:32 +00:00
Aurelien Lourot c43f159f37 Remove Amulet leftovers
Zaza tests are already implemented

Change-Id: I59b52f3736029e134856a2bee69dd2b5037e9d52
Closes-Bug: #1828424
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/257
2020-05-04 17:58:00 +00:00
Alex Kavanagh eab62bae85 Remove disco support from the charm
Change-Id: Ibde01ebe1618becfd14f51e2cf4eb9c06f616cf8
2020-02-18 18:25:13 +00:00
Adam Dyess 6b514da320 Migrate designate-bind tests to zaza
removing disco_stein as its EOL

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/170
Change-Id: Ia0ef2561364182ac017287a39328109846317279
Closes-Bug: #1828424
2020-02-10 09:03:09 -06:00
Corey Bryant 6fd8774d92 Pin Jinja2 for python 3.4 and drop disco test
Pin Jinja2 to the last versions supporting python 3.4 for trusty.
Drop disco functional test now that disco is EOL.

Change-Id: I5fa40b3e0f77d3ac1fc41d3787225563ddb5ed2c
2020-01-31 20:50:58 +00:00
Felipe Reyes ab4cd0f180 Set named severity logging to debug when needed
When setting debug=True configure the logging to debug level using syslog,
the default's definition is:

channel default_syslog {
        syslog daemon;
        severity info;
};

See http://www.zytrax.com/books/dns/ch7/logging.html

Change-Id: Ibd66195b580405cb88d2865b291ba8d868634124
2019-12-20 10:47:57 -03:00