Commit Graph

1189 Commits

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

Change-Id: Ib5d0b909970754dac7ea1b274fdf72fc9b257455
2024-02-24 20:12:04 +00:00
Alex Kavanagh a893940450 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: I6ac828e0784ae4466a6e5cbc85acd666c9c2f75c
2024-02-12 18:20:43 +00:00
Alex Kavanagh 94cedb6840 Improve platform mocking
Patch out charmhelpers.osplatform.get_platform() and
charmhelpers.core.host.lsb_release() globally in the unit tests to
insulate the unit tests from the platform that the unit tests are being
run on.

Change-Id: I2cc91999ccad52c8e42797a3d5ffbf65f9cb36d2
2023-10-24 18:09:00 +01:00
Corey Bryant a6c5567354 Drop hyperv mechanism driver and package
The networking-hyperv project is no longer maintained and
has been removed from Ubuntu in Mantic.

Closes-Bug: #2036953

Change-Id: Ib8e861377c9f691f31de0f707823dbf8ac0fde52
2023-10-05 11:51:17 -04:00
Alex Kavanagh 7a0925af7b 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/824
Closes-Bug: #2028683

Change-Id: Ia03446f08c38057985f895fed2a5cdd78004aec8
2023-08-14 10:25:45 +01:00
Corey Bryant d90b45c295 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/stable

Change-Id: I8050b03c9e4a1f801a60de516000467860a1a47a
2023-08-02 14:20:50 -04:00
Jadon Naas 3141e839a1 Add docs key and point at Discourse
Add the 'docs' key and point it at a Discourse topic
previously populated with the charm's README contents.

When the new charm revision is released to the Charmhub,
this Discourse-based content will be displayed there. In
the absense of the this new key, the Charmhub's default
behaviour is to display the value of the charm's
'description' key.

Change-Id: Idb7ec6357e2ef7449cc77bff48d12102da72d822
2023-07-11 15:19:31 -04:00
Corey Bryant f402430353 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: I78b2e454009869b79cb27cfc15712a6b8ef8e286
2023-03-29 21:01:49 +00:00
Zuul 4dd4294a0f Merge "Add support for HAProxy L7 checks" 2023-03-29 08:03:06 +00:00
Gabriel Cocenza 7330c5badf Add support for HAProxy L7 checks
This change add several configuration options to enable HTTP checks
to the HAProxy configuration, instead of the default TCP connection
checks (which continue to be the default). It also enables /healthcheck
endpoint for neutron-api.

Closes-Bug: #1880610

Change-Id: Ia820d8c2ca709d6b358b1c80d770624568d9a85b
2023-03-27 18:29:06 -03:00
Corey Bryant 7bf6281b92 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: Id40cf30dcbd7467c3dc39ae0d7fbcc3a7a2899bb
2023-03-07 22:17:35 +00:00
Liam Young 25711a290b Fix charm for tox4 compatibility
Related-Bug: 2002788
Change-Id: I32a1ee9fc60c1089d367619f386bdbfeee060918
2023-01-16 13:42:01 +00:00
Corey Bryant 8e708a76b7 Ensure openstack-release package is correct after install hook
The linked bug shows the install of the charm with openstack-origin set
to zed.  This happens because configure_installation_source() causes the
openstack-release package to be installed *before* the zed cloud archive
sources are configured into /etc/apt and an apt update done. This means
that the openstack-release package says "yoga" despite the zed packages
actually being installed.

Then, on the config-changed hook, it sees that the installed version is
showing as yoga and tries to do an upgrade.  This fails, as the charm
hasn't yet bootstrapped, and the charm tries to bootstrap after
upgrading the packages.

There's a few bugs here which are exposed, but the tactical fix is to
force the openstack-release to match the installed packages.

Closes-Bug: #1989538
Change-Id: Icaa2303d2dbbcfc883ea1cd44ce0a77af1ef7250
2022-10-04 19:38:01 +00:00
Aliaksandr Vasiuk 1fa4576232 Update key for reverse DNS lookup in README
The configuration key is renamed some time ago
https://charmhub.io/neutron-api/configure?channel=edge#reverse-dns-lookup
Updating README.md to have it consistent.

Change-Id: I0c2bce037144d441b61c0d5549611dc3dd7e4b3e
2022-09-20 14:53:20 +02:00
Alex Kavanagh fd47d723a9 Ensure that kinetic/22.10 is enabled
This patch adds kinetic to the metadata.yaml and ensures
that a run-on base for 22.10 is added in the
charmcraft.yaml

Change-Id: I84b915dd3b6896984fab40cdc93a5f0da9040491
2022-08-31 20:18:28 +01:00
Corey Bryant e9f077c28b 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: I5b04cd5a9d1dd8d62b129592bf8ae1339e9af58b
2022-08-26 18:40:39 +00:00
Alex Kavanagh 88c3c9d5a4 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
- charmhelpers sync

Change-Id: I9e03f8032c4e66586feec2bbf5f07e93b89355cc
2022-04-07 12:20:45 +01:00
Zuul c435106722 Merge "Remove the charm artifact from the repository" 2022-03-21 09:58:53 +00:00
Nobuto Murata c411b90d2d Option to enable network-segment-range support
To let operators add an additional and optional service plugin into the
deployment configuration as "network_segment_range".
https://docs.openstack.org/neutron/latest/admin/config-network-segment-ranges.html

Closes-Bug: #1965229
Change-Id: Id0ac7c397874ad2c51935e8c0eab64f1ef4f6fd3
2022-03-17 18:38:01 +09:00
Alex Kavanagh d810a844e5 Remove the charm artifact from the repository
Change-Id: I9cdbd0433f9723b0af96668f24ce2e4c1870f3aa
2022-03-16 11:15:01 +00:00
Alex Kavanagh 1c88770e9b Update to classic charms to build using charmcraft in CI
This update is to ensure that the Zuul Canonical CI builds the charm
before functional tests and ensure that that artifact is used for the
functional tests.  This is to try to ensure that the charm that gets
landed to the charmhub is the same charm that was tested with.

Change-Id: I0febbbf7da990026b9578a3512c99539eb03bbc0
2022-02-15 16:39:54 +00:00
Alex Kavanagh 2079a9f02b Migrate charm to charmhub latest/edge track
Change-Id: Ib851928504cd2032848202f9dd57551801aedbb6
2022-01-29 12:45:10 -07:00
Corey Bryant 59ce3d96ce Re-enable voting for wallaby tests
The pgrep behavior in test_901_pause_resume has been fixed in
zaza-openstack-tests.

func-test-pr: https://github.com/openstack-charmers/zaza-openstack-tests/pull/686
Closes-Bug: #1933338
Change-Id: I6e5a1384939e25f9bec4a019be6788432cea6b34
2021-12-17 16:34:19 -05:00
Hervé Beraud 48cdd1a86c 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: I25d6d26f2a4169ddc30d8eeac193d768aa345058
2021-12-15 14:05:35 +00:00
Billy Olsen 1561529e12 Use configure_installation_source instead of add_source
Use the configure_installation_source method from
ch.contrib.openstack.utils instead of add_source since it understands
the various openstack-origin permutations.

Change-Id: I3c0d8392c4b0c68687a36c9455fc7991fda215f1
Closes-Bug: 1928727
2021-12-14 13:35:05 +00:00
Aurelien Lourot e18b89a3f0 Fix removing fwaas when upgrading from Ussuri to Victoria
Without this fix, upgrading from Ussuri to Victoria won't
fully remove fwaas everywhere, leading to broken floating
IPs.

Fixes https://github.com/openstack-charmers/charmed-openstack-tester/issues/57

Change-Id: I959e8f8cafc6d4040895762c21f8ad8b6f190a3b
2021-11-29 11:21:30 +01:00
Diko Parvanov 3e387d5918 Adding uplink_status_propagation option
Add charm option uplink-status-propagation, which for releases >= stein
will add the ml2 plugin uplink_status_propagation, that enabled ports to
have the propagate_uplink_status attribute to allow instance VF to see the PF
link state change for SR-IOV ports.

Change-Id: I4f1ace630c74363057b0bbdbc759c482125ad015
Closes-Bug: 1949491
2021-11-25 11:03:22 +00:00
Corey Bryant 15b3a72786 Add yoga bundles and release-tool syncs
* charm-helpers sync for classic charms
* sync from release-tools
* switch to release-specific zosci functional tests
* run focal-ussuri as smoke tests
* remove trusty, xenial, and groovy metadata/tests
* drop py35 and add py39

Change-Id: I97d4131670ae024b8bc84d5a13b1034e47d39445
2021-11-22 10:55:20 -05:00
Alex Kavanagh f7d248e6e6 Add xena bundles
- add non-voting focal-xena bundle
- add non-voting impish-xena bundle
- charm-helpers sync for new charm-helpers changes
- update tox/pip.sh to ensure setuptools<50.0.0

Change-Id: Iace3419aa0cc1791d4642f15aa5e4826d3629c59
2021-09-30 16:35:36 +00:00
Hemanth Nakkina c7d8ee4c86 add internal endpoints to neutron-plugin-api relation data
The change [1] syncs the charmhelpers that has additional
context data to IdentityServiceContext - internal_host,
internal_port, internal_protocol.

This patch adds the internal_host, internal_port,
internal_protocol to neutron-plugin-api relation data.
Without this patch, any relations over neutron-plugin-api
will be incomplete if the charm holding the other end of
the relation has charmhelpers synced.

[1] https://review.opendev.org/c/openstack/charm-neutron-api/+/806676

Change-Id: Ic4abbd0a408949c0c752a1701db161e1cd5c4ff7
2021-09-08 11:32:22 +05:30
Hemanth Nakkina 69af89a615 Add enable-fwaas to relation data
Add enable-fwaas to neutron-plugin-api relation data so
that neutron-openvswitch updates neutron-l3-agent
configuration accordingly.

Synced charmhelpers to get related changes
https://github.com/juju/charm-helpers/pull/635

Partial-Bug: #1934129
Change-Id: I5019c5ed3b8ab556d4900f1fe46dee69f5f09ee7
2021-09-07 06:51:52 +05:30
James Troup 3f0855a8d3 Replace reference to 'juju set' with 'juju config'.
Change-Id: Id63e4f21c36299588364eb6de7806c8c753318ef
2021-08-06 18:29:51 +01:00
Edward Hope-Morley 2e0896c737 Fixes disabling fwaas
Commit 00e7c8b added support for disabling fwaas but
forgot to remove the firewall plugin from service_plugins
once the fwaas package has been removed. This patch fixes
that.

Change-Id: I75fdd192144138fa5bf09c278d5507ca8c5366d1
Closes-Bug: #1934129
2021-07-28 13:20:08 +02:00
Aurelien Lourot b189536ff9 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: I09ec4bef59ea95f833093220e41ddd728daa347b
2021-07-22 14:57:35 +02:00
Edward Hope-Morley 00e7c8b6ad Remove neutron-fwaas for >= V
Also adds config option enable-fwaas which defaults to
True to allow disabling fwaas for releases earlier than
Victoria.

Change-Id: Ic9251c5290f777f544a150a92702566474b264b8
Closes-Bug: 1934129
2021-07-07 10:12:20 +01:00
Aurelien Lourot 0d4c5e139a Add impish to metadata.yaml
Change-Id: I8baece928d4545c8849c9b69648cb154ad15f052
2021-06-22 09:09:55 +00:00
Zuul 546ef56740 Merge "c-h sync - restore proxy env vars for add-apt-repository" 2021-06-21 09:56:45 +00:00
Zuul 3415c5e7da Merge "setup.cfg: Replace dashes with underscores" 2021-05-26 09:43:52 +00:00
Corey Bryant cf1d22f582 c-h sync - restore proxy env vars for add-apt-repository
Change-Id: I1716adb376414077f128c23c286e968dff57793e
2021-05-13 08:46:54 -04:00
Cornellius Metto 2c6e8255d1 Add upgrade-charm symlink in hooks directory
Closes-Bug: #1915724
Change-Id: I8ca9e0c49d789921b2782ab95d0fc22483c09653
2021-05-12 17:34:54 +03:00
Alex Kavanagh 48f87deff3 Test bundles for focal-wallaby and hirsute-wallaby
These are the test bundles (and any associated changes) for
focal-wallaby and hirsute-wallaby support.

Libraries sync

hisute-wallaby test is disabled (moved to dev) due to [1] as bundle may
reference a reactive charm.

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

Change-Id: If5d64191925c5b568c0224c59b0c851e3c8f3e50
2021-05-06 10:25:50 +00:00
YuehuiLei 4625fcfcd5 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Ic682234b64c313cc09a6471f30f20dc1a7d49f37
2021-05-04 15:47:26 +08:00
Alex Kavanagh 5a7dfeac7f 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: I4c38f3db7c7bcdbb993ffb27b8bf1473f8f0f3a6
2021-05-03 16:07:58 +01:00
Alex Kavanagh 9442c0445d 21.04 sync - add 'hirsute' in UBUNTU_RELEASES
The 'hirsute' key in c-h/core/host_factory/ubuntu.py:
UBUNTU_RELEASES had been missed out, and is needed for
hirsute support in many of the charms.  This sync is to
add just that key.  See also [1]

Note that this sync is only for classic charms.

[1] https://github.com/juju/charm-helpers/pull/598

Change-Id: I65d1d790f902d928cd0c4dc848121b1c7fd65071
2021-04-11 16:56:59 +01:00
Alex Kavanagh ab2d2152b0 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: Ice0f02ee3724b1cf9f59efb59ef8b33e1bf54968
2021-04-03 20:29:30 +01:00
Nobuto Murata b65eea5864 Update worker-multiplier config description
Based on the change in charm-helpers:
https://github.com/juju/charm-helpers/pull/553

Related-Bug: #1843011
Change-Id: I36fbd881fd6c805699f51cf9d52181e39ea8d8f2
2021-03-30 11:23:56 +09:00
Alex Kavanagh 5bc7a321fd 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: I3ccae204adce2a0d0d2b2ef8d937b712bd7816d7
2021-03-02 20:59:43 +00:00
Zuul 3383832a7b Merge "Add new osci.yaml" 2021-03-02 10:45:03 +00:00
Billy Olsen 6de997d8e9 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I7e0098ba588fbdb8cabd10fab18d048f8b779c8d
2021-02-19 17:02:50 -07:00
Chris MacNaughton 17df071cb2 Add new osci.yaml
This change is preparatory to migration Ubuntu OpenStack CI
from Jenkins to Zuul

Change-Id: I1eb9a89d875539371357681d2b2b0ec7d8b8c3cf
2021-02-18 08:46:51 +01:00