Commit Graph

13 Commits

Author SHA1 Message Date
Clark Boylan e5c1790be7 Rollback to 1.28/stable microk8s in functional testing
We use latest/stable by default which very recently updated to
1.29/stable. Unfortunately it appears there are issues [0] with this
version on Debian Bookworm which also happens to be the platform we test
on. Our jobs have been consistently failing in a manner that appears
related to this issue. Update the job to collect logs so that we can
better confirm this is the case and rollback to 1.28 which should be
working.

Also update the AWS tests to handle a recent moto release which
requires us to use mock_aws rather than individual mock_* classes.

[0] https://github.com/canonical/microk8s/issues/4361

Change-Id: I72310521bdabfc3e34a9f2e87ff80f6d7c27c180
Co-Authored-By: James E. Blair <jim@acmegating.com>
Co-Authored-By: Jeremy Stanley <fungi@yuggoth.org>
2024-01-29 14:15:54 -08:00
James E. Blair 3a5db84a33 Switch to nox
Like Zuul, replace our usage of tox with nox.

Change-Id: I18e2dffaf737f0b57020d50c1c18397ee5dc1362
2023-01-10 10:30:14 -08:00
Ian Wienand fdb49bc029 Unpin microk8s
The dependent change has fixed up the issues with >1.23, unpin this.

Change-Id: Ia5be8397110ec1c8d79806a8fdca8ed1d86a382e
Depends-On: https://review.opendev.org/c/zuul/nodepool/+/867744
2023-01-10 10:30:14 -08:00
Ian Wienand 610443d04b nodepool-functional-k8s: switch to microk8s
Switch this job to use microk8s, which should be more stable than
minikube on our Ubuntu testing hosts.

Depends-on: https://review.opendev.org/c/zuul/zuul-jobs/+/866953
Change-Id: I8e76581ea5cf4a4241aec48bc59086d7f17cd72a
2023-01-10 10:29:55 -08:00
James E. Blair 4c5fa46540 Require TLS
Require TLS Zookeeper connections before making the 4.0 release.

Change-Id: I69acdcec0deddfdd191f094f13627ec1618142af
Depends-On: https://review.opendev.org/776696
2021-02-19 18:42:33 +00:00
Monty Taylor ae92b00aa8 Add ensure-tox to k8s and openshift jobs
We use tox to run the tests. Previously we were getting the
pre-installed tox from the opendev images. With the new images,
it's not there, so we need to run ensure-tox in our jobs.

Depends-On: https://review.opendev.org/735905
Change-Id: Ic1291eec079fbbd34ad69cf291f59219ed43e7d9
2020-06-16 07:59:09 -05:00
vass a0201a27a2 Use ensure-* roles
The install-* roles in zuul-jobs have been renamed to ensure-*, follow
the rename.

Change-Id: I94176c5753e4868f7d31d47f57aef0f47be1fa38
2020-04-06 20:17:50 +02:00
David Shrewsbury 3a9b3e194c Remove unused k8s log config
The entries being removed are not used for k8s functional testing
and resulted in an empty directory.

Change-Id: I3d86e2d0f49917299f1f332339382e57277820b4
2019-10-16 15:02:36 -04:00
David Shrewsbury 9405ea6a8e Pull minikube log data
This is needed to debug k8s failures.

Change-Id: I3ff21ba4358b7c9d8630295821752f27438a962d
2019-10-16 08:45:09 -04:00
James E. Blair fce2ffb502 Move k8s install to pre playbook
In the k8s integration job, run the install-kubernetes role in
the pre-playbook since it is not (generally) the thing under test.

Change-Id: Ib20cd12100f323f1eb262261394c4b180dc1f2cd
2018-11-13 16:39:06 +01:00
Ian Wienand 17d053cf94 Pin docker for k8s test
Docker 18.09 has released, but minikube currently fails with

 [ERROR SystemVerification]: unsupported docker version: 18.09.0

Although I'm sure this will be fixed quickly, pin to the prior release
for the moment.

Depends-On: https://review.openstack.org/616391
Change-Id: I4b7bd6a7ef016106808d95f37ba5caa2b4e0a9b3
2018-11-08 14:23:39 +11:00
David Shrewsbury 511ffd9c29
Add tox functional testing for drivers
Reorganizes the unit tests into a new subdirectory, and
adds a new functional test subdirectory (that will be further
divided into subdirs for drivers).

Change-Id: I027bba619deef9379d293fdd0457df6a1377aea8
2018-11-01 15:33:44 +01:00
Tristan Cacqueray 4295ff6870 Implement a Kubernetes driver
This changes implements a Kubernetes resource provider.
The driver supports namespace request and pod request to enable both
containers as machine and native containers workflow.

Depends-On: https://review.openstack.org/605823
Change-Id: I81b5dc5abe92b71cc98b0d71c8a2863cddff6027
2018-10-25 10:24:45 +00:00