Commit Graph

174 Commits

Author SHA1 Message Date
Alex Kavanagh 007f302ed6 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: I6f8bd495a2078b5683a05a63124d7902d0a86f74
2024-02-24 19:57:42 +00:00
Corey Bryant 3ace19e601 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: I6886c96797784c3b98b965ebe1b4a99de22d84a0
2023-08-02 14:16:54 -04:00
Corey Bryant 0d34b8725d 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: I367b12d6919747d987f30020575a467f1c473fef
2023-03-29 21:01:50 +00:00
Corey Bryant 05efc621c4 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: I70cadc739d692cf442aef8012477e89a9601c06f
2023-03-07 20:07:40 +00:00
Corey Bryant f9206facde 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: I8f2c34f3a4a0601ee19aa694b323cc0f9ee65616
2022-08-26 18:40:41 +00:00
Alex Kavanagh 1c7f320cb6 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: I7c695c77c67f43f02c72c3b50d949c451be53bc3
2022-02-19 15:17:08 -07:00
Alex Kavanagh edbb0ff0a2 Migrate charm to charmhub latest/edge track
Change-Id: If8e32b398183c0ef28346dc1c40fed6167f5d15f
Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
2022-01-28 17:16:01 +01:00
Liam Young 7cb930a1dc Remove sync AZ test from queens
The sync_compute_availability_zones test was incorrectly enabled
for bionic queens in  commit e0a38a63 . This looks to have been
a simple typo while working on thee tests.yaml. The
sync_compute_availability_zones action is only supported on
stein or greater.

Change-Id: I64df5b4e9742d2a8c17042a7909277c5e9aa46a4
2021-11-29 08:55:55 +00:00
Corey Bryant e0a38a6393 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: I8f7e9ee598a5fc218ccd68f4af36ea323af08bbb
2021-11-19 14:28:42 -05:00
Alex Kavanagh 222530b515 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: I1dadd96087714bf5a88f324d615d2c3126f66690
2021-09-27 15:51:23 +01:00
Alex Kavanagh 156e3022b1 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: Ia1a6def97294cf3e8435de3d6e8492027c8e761a
2021-05-05 09:52:24 +01:00
Ionut Balutoiu b56572cf6b Add sync-compute-availability-zones Juju action
This action should be used to sync the Juju availability zones,
from the nova-compute units, with the OpenStack availability zones.
The action is meant to be used post-deployment by the operator.

It will setup OpenStack aggregates for each availability zone, and
add the proper compute hosts to them.

Co-Authored-By: Billy Olsen <billy.olsen@canonical.com>
Change-Id: Ibd71cd61e51b04599eadf21b3ef46e47544b8814
2021-04-22 19:54:36 -07:00
Billy Olsen 9e2a72a881 Prune gate tests
Prune gate tests and move tests to dev_bundles.

Change-Id: I187aabc474c42b6ef11bfdc3fea766387fd05df0
2021-02-19 17:03:54 -07:00
Aurelien Lourot 92eb1e0543 Add Groovy to the test gate
Change-Id: Ia7b8ea4cf40f1aeb77b11fb3c5201ffcdfae59cb
2021-01-19 10:45:17 +01:00
Frode Nordahl 93efd6e81d
Fix CA certificate on cloud-compute relation
Note that part of this fix belongs in c-h, but let's add it here
as a tactical measure given we are practically frozen.

Enable TLS in the functional test for focal-ussuri and onwards.

Also switch to focal-ussuri as target for smoke.

Drop Trusty/Mitaka as it currently does not pass with symptoms
like https://bugs.launchpad.net/charm-nova-compute/+bug/1861094

Closes-Bug: #1911902
Change-Id: I7b12479ce3afb94a0fb21c26b1ac78736b81aba2
2021-01-18 13:57:24 +01:00
Aurelien Lourot c1b2ce0f0a Add focal-victoria to the test gate
Also reduce chances of spurious mysql-innodb-cluster "super-read-only"
failures.

Change-Id: Idbee09f4949dbf64dc09b86cc1c7e9b1b97722cf
Partial-Bug: #1882205
2020-09-15 15:26:04 +02:00
Aurelien Lourot 2060af3941 Add Victoria test bundles
Change-Id: I5a78ae64131e83af43ba8b38d9a8acf0328fad8d
2020-07-08 14:28:23 +02:00
Alex Kavanagh 82448485b8 Enable focal and ussuri for the charm
The charm requires a bundle force override for the focal bundle.  This
patch adds test bundles for bionic-ussuri and focal-ussuri to the charm.

Change-Id: I6e6cbb30fe7b525a49b7c79181b5aaeb2e129cca
2020-04-27 17:53:48 +01:00
Aurelien Lourot c4eaed25f2 Migrate functional tests from Amulet to Zaza
Change-Id: Ief33e4bebff904778df18fafb77c318ec212677b
Closes-Bug: #1828424
Func-Test-PR: https://github.com/openstack-charmers/zaza-openstack-tests/pull/233
2020-04-19 17:02:22 +02:00
Hemanth Nakkina 793daaef3e Fix zuul/CI failures
Zuul check openstack-tox-py35 fails with the following error
ERROR: Package 'python-heatclient' requires a different
Python: 3.5.2 not in '>=3.6'

openstack client packages in test-requirements are only
required for func-smoke tests. Also func-smoke tests are
executed on python 2.7 environment. So the fix pins the
exact versions of openstack client packages for python 2.7.

Keystone config parameter admin-token is removed from latest
keystone charm. Remove the param from the bundle generator.

Change-Id: I657e221c43ec9807fb1886089d7068727ffb9ed9
2020-03-31 11:43:06 +05:30
Frode Nordahl ad3f230e64
tests: Remove admin_token from ks relation introspection
Change-Id: Ided7811b4e859159f9fc0b514b1a63b9b2a9deba
2020-03-16 12:08:19 +01:00
Alex Kavanagh 6063399515 Remove disco support from the charm
Also remove defunct comic dev test as cosmic is no longer supported.
Change-Id: I59977413bfe688959ee05ef7f7d249ecf1f6cae5
2020-02-18 18:44:01 +00:00
Corey Bryant a7c2e49fcf Sync charm-helpers for Ussuri/Focal release and version details
Also drop the gate-basic-disco-stein test now that Disco is EOL.

Change-Id: Iee0566e743e3453e43709941bdc11bc10b2c87aa
2020-01-21 19:10:38 +00:00
Alex Kavanagh 11483d5efb Patch basic_deploymeny.py for juju 2.7 compat
Essentially, Juju 2.7 changed the semantics of "juju run" in a way that
breaks Amulet.  Amulet is no longer supported, and this charm will have
its tests migrated to zaza in the near future.  This patch just
monkey-patches the file_contents() method of Amulet's Sentry() class so
that the memcache verify test can pass.

Change-Id: I046d9ee5fda4ca15a5824650d8aceb5d24741d94
2019-11-22 11:27:09 +00:00
Corey Bryant d565a0204b Enable functional tests for bionic-train
This patch also updates the smoke test to run bionic-train.

Change-Id: I6c063ca760a9d48f632d6cac095f4b12cd66db3c
2019-10-22 15:17:40 -04:00
Corey Bryant 81860afeca Disable nova placement API
The placement project has split from nova into its own project
in Train. This patch disables the nova placement API as of Stein
when the placement charm relatation joins, and discontinues
nova placement installation as of Train for new installs.

Change-Id: If7c37ef8936e418b5afd21d83c9322563348cbcf
Needed-By: https://review.opendev.org/#/c/687915/
Partial-Bug: 1811681
2019-10-11 20:00:38 +00:00
Camille Rodriguez b103ab19dd Add disco-stein bundle to gate tests
The bundle disco-stein was in the dev bundles because
a bug with the Python 3.7 syntax prevented the success of
the deployment of HA clusters. This bug is fixed, we can
reintegrate disco-stein in the gate bundles.

Other small additions:
- 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.

LP Related-Bug: #1823718
Change-Id: Iaeca60d35c3f849fd69f7b3798d3a791c8635bae
2019-09-05 12:14:58 -04:00
Chris MacNaughton 764b8027b3 Sync charm-helpers
Change-Id: I7436d0d90b90fb1b6f97259387d11d879eee3a1c
2019-07-16 07:06:03 +00:00
Rodrigo Barbieri a51efaf640 Propagate vendor_data from nova-cloud-controller
When using DVR and L3HA neutron deployment options,
Nova API Metadata requests are served from compute nodes,
instead of from neutron-gateway nodes.

This change allows nova-cloud-controller to send vendor_data
configuration values to nova-compute charm relation so it
can write to nova-compute's nova.conf appropriately.

Replaced the existing context logic with inheritance
from a new context created in charm-helpers, so the
logic can be shared across several charms that write
vendor metadata to nova.conf and vendor_data.json.

Also, small fix in the vendor-data and vendor-data-url
descriptions, where it was incorrectly stating that such
configuration would be effective in nova-cloud-controller
on Queens release.

The values set in vendor-data and vendor-data-url config
options will always be propagated to nova-compute regardless
of the OpenStack release. Those values will continue to only
be effective in nova-cloud-controller nodes on Rocky release
or later.

Included sync of charm-helpers code in order to inherit
the refactored vendor metadata contexts.

Change-Id: If8373fc6b2d04dbc29ed07896d385ac920cae3f4
Depends-On: I0c79e1bfac9fbe7009a7e862ad010cfa2de8cfda
Closes-Bug: #1777714
2019-06-05 10:22:56 -03:00
Frode Nordahl bd3d84cfcd
Enable bionic/stein and disco/stein functional tests
Drop service check for ``glance-registry``.  The service is
removed as of Stein, and it really is not this charm functional
tests job of checking this anyway.  Any such detail should
be deferred to the ``charm-glance`` functional tests.

Change-Id: I10ff155730875fbc47f77bb900e30791e9bfdef0
2019-04-10 07:21:49 +02:00
Chris MacNaughton 370e4b8380 Add security-checklist action
Change-Id: I717ddc16d29d4e45e374c98e6e0f7913c9583522
2019-03-13 10:33:15 +01:00
Frode Nordahl fe0ba3b883
Adjust default of ``ram-allocation-ratio`` configuration option
In modern hyper-converged architectures the upstream default of
1.5 does not really fit.

Set to 0.98 to give some headroom on the compute nodes and add
a note about the potential need to adjust this value further.

Change-Id: I64e3379686128dd7f222bdfae133a6c90e8f3ef0
Closes-Bug: #1818234
2019-03-01 22:56:29 +01:00
Ryan Beisner 3585885f07
Update functional test definitions
Remove trusty-icehouse test combo from gate, leaving trusty-mitaka
if/where it exists.

Change-Id: I31c5b959bb977aa4928b77792a741ceba9fcf5cf
2019-02-06 14:49:32 -06:00
Sahid Orentino Ferdjaoui 13eca55803 service: updates nova-api-os-compute service to use apache wsgi
Due to an issue in python3 oslo_cache+eventlet when using
memcached. As workaroud for Rocky it has been decided to run service
nova-api-os-compute from systemd to apache2.

Closes-Bug: #1812672
Depends-On: https://review.openstack.org/#/c/633218
Depends-On: https://review.openstack.org/#/c/633482
Change-Id: I3bf279638c5decf1020345f3d2e876e379144997
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
2019-02-01 16:32:28 -05:00
Syed Mohammad Adnan Karim 95cd9bfd10 Add default project quota configuration for compute
Prior to this, the charm config did not support default quota
configurations for compute (ie. instances, compute, ram, etc.).
Default quota configuration changes will not impact existing
projects with modified quotas. Only new projects and projects with
unmodified quotas will adopt the defaults in the configuration file.

The following default quota settings were added:
instances
cores
ram
metadata_items
injected_files
injected_file_content_bytes
injected_file_path_length
key_pairs
server_groups
server_group_members

The functional test added checks that nova.conf quotas are set in
the correct section of the file.

Change-Id: Iae8c84dbfec97e1879d51963125f7674ea20ba22
Closes-Bug: 1386911
2018-12-17 20:29:03 +00:00
Liam Young 630a07013f Accept lists in pci-alias charm config
Allow json lists to be passed in via the pci-alias charm config
option so that multiple aliases can be set.

Increase amulet timeout due to gate failures

Change-Id: I3b5ea70224536f8d40f9c04482fa676c2b230bdd
Partial-Bug: #1735205
2018-10-05 10:07:51 +00:00
Corey Bryant d5c5cccb0a py3: Switch to using Python 3 for rocky or later
Switch package install to Python 3 for OpenStack Rocky or later.

When upgrading, remove any python-* packages that were explicitly
installated and then autoremove --purge any dependencies that are
no longer required.

Change-Id: I87ee4a0a854f88b931093f6245a3a1057bf56c57
2018-10-04 11:19:06 +01:00
Liam Young e20db83c7d Add nova-metadata service
Add a service for handling nova metadata api services. This was
previously handled by the neutron-gateway and still is for
deployemnts up to and including Pike, For the neutron metadata
service and the nova service to communicate they need a shared
secret. To achieve this, the change includes:

* A charmhelper sync to get support for multiple wsgi vhosts
* Rendering new wsgi vhost and corresponding haproxy config.
* Setting a shared-secret down the relation with the neutron
  gateway.
* Remove fragile keystone authtoken checks as they are failing
  after a ch sync and any issues will be caught by the instance
  launch functional test.

Change-Id: I5ad15ba782cb87b6fdb3c0941a6482d201670bff
2018-10-03 07:24:05 +00:00
Liam Young 9cdf1baccd Get glance v1 client for icehouse.
Previously the image virt type was qemu and the compute node virt
type was kvm. This works for deployments prior to rocky but in
rocky this causes the image type filter to return no valid hosts.
An update to charmhelpers has removed the default behaviour of
setting the virt type to 'qemu' by default.

Due to a bug in icehouse updating glance image properties using
the v2 api fails (See Bug #1371559) so for icehouse deploys
get a v1 client.

Change-Id: I20548118092a4480f37c7ab7e9d60e72e299989b
2018-09-26 09:38:50 +00:00
Frode Nordahl 1ee5ce6b55 Sync charm helpers and enable Rocky func test
Change-Id: Id2784943aa3cd5fbaec451dde735de9574013dc1
2018-08-29 09:02:23 -05:00
Ryan Beisner b283aa0a7a Update functional test definitions
Change-Id: If845fc59aec3bca713ec9243102e037e3f6b903f
2018-07-18 18:37:32 -04:00
Chris MacNaughton 4e7dfc3714 Remove old nova-compute / mysql relation
Change-Id: I1a90043581bc5845df19538f1fd9d307863cf22f
Closes-Bug: #1713807
2018-07-18 10:29:18 +02:00
Ryan Beisner 927528b7f0 Update series metadata
Ensure that EOL releases are removed from metadata
and tests, and that the current dev release is enabled
in metadata.  Dev release tests are enabled separately
because of chickens and eggs.

Change-Id: Ied8bebd941d9a8b023a070605fba7994e08d15f3
2018-07-11 14:06:42 -05:00
Liam Young 21b17020d8 Remove support for nova cells v1
This change removes support for nova cells v1.

Change-Id: Id86697b6a2e893e023769ea214671e958e7166ca
2018-06-15 05:57:52 +00:00
David Ames f03ccf02b7 Enable Bionic as a gate test
Change bionic test from dev to gate for 18.05.

Change-Id: I5a82ac79b29181fabec41570cd5aa003d2bfb8ea
2018-05-11 16:12:20 -07:00
Ryan Beisner d6cf5285c1 Remove deprecated functional test targets
Change-Id: I4887e897a1ae5e4a181f6bdbc148fdb31a82655d
2018-05-09 16:37:04 -05:00
Liam Young 1cd062efde Fix up amulet for queens
Switch to use Keystone v3 clients for Queens

Change-Id: Ic93b430fa12f9d283c507a51a58e0468b7d4a850
2018-02-27 09:01:48 +00:00
Liam Young 0a9b1a21a7 Add amulet test for pci-alias
Add an amulet test to check pci-alias setting is propagated
properly into nova.conf. This is a prerequisite for work to support
setting multiple aliases.

Depends-On: I6ac49b0a2782df2ebc8f3d1fe299dec3cc078d7c
Change-Id: Ic8d51dfb3130670cd6810ca80378d6ef8c0d0346
2018-01-15 12:52:01 +00:00
James Page 0f14eac672 Remove deploy from source support
Drop support for deployment from Git repositories, as deprecated
in the 17.02 charm release.  This feature is unmaintained and has
no known users.

Change-Id: I2fe15b648d485e5b03965a00dee6324669ebe9fa
2018-01-12 10:42:50 +00:00
Liam Young c837c1412f Update amulet tests for new s3/ec2/nova username
Keystone now orders the elements of the username when constructing
a username for multiple services. Update amulet to expect the
new username (only actually affects icehouse).

Change-Id: I6ac49b0a2782df2ebc8f3d1fe299dec3cc078d7c
Closes-Bug: #1739409
Depends-On: I0f857d7c2d5c4abf4843bc3fe1a9848164048fe2
2018-01-03 13:00:53 +00:00