Commit Graph

59 Commits

Author SHA1 Message Date
Michal Nasiadka c8fbc0ca35 CI: Switch from rbac to normal job
We enforced new defaults in [1], these jobs are identical.

[1]: https://review.opendev.org/c/openstack/magnum/+/876823

Needed-By: https://review.opendev.org/c/openstack/magnum-tempest-plugin/+/911095
Change-Id: Iebfef3c3454307358dfafd3250a484440f2ee565
2024-03-05 13:26:47 +01:00
Jake Yip a41c884463 Update cloud-provider-openstack registry
cloud-provider-openstack has changed their image repo. To use the
plugins matching later versions of k8s, this needs to be updated.

Also update tags for CI test to match version being tested.

[1] https://github.com/kubernetes/cloud-provider-openstack/pull/2169

Change-Id: I9390db5e1aa357c17a39a7c208d837befafd3820
2024-02-28 18:57:55 +11:00
Jake Yip 48fbd62374 Update containerd in CI to 1.6.28
1.6 is the LTS version and is supported longer than 1.7 [1]. 1.6.28
contain a fix for the CVE-2024-21626 [2].

[1] https://containerd.io/releases/
[2] https://github.com/containerd/containerd/releases/tag/v1.6.28

Change-Id: I5eb46a097b0dbd67a597c79f4c971ee734decc33
2024-02-06 23:10:36 +11:00
Michal Nasiadka 692c97c00e Add kubernetes fedora coreos v1 jobs
Add 1.28 and 1.27 jobs

Currently those jobs do not test load balancing and do not run
sonobuoy conformance tests, it will be improved in future.

Depends-On: https://review.opendev.org/c/openstack/magnum-tempest-plugin/+/893131
Change-Id: I75afbbf80207bf5b7e581cfef0ff4ed0f65b64a3
2024-02-02 09:38:34 +00:00
Michal Nasiadka 537e69aeb8 CI: Bump container publish to 7200
Seems the previous bump was not enough

Change-Id: I3cae21842e36e1e34acbd1466a98122862e65f65
2023-11-14 11:51:05 +01:00
Michal Nasiadka 2af613d354 CI: bump container publish job timeout
After adding newer versions of cluster-autoscaler the build
job timeout was bumped, but publish job timeout was not.

Change-Id: I5f385b0c6e28ce8cde585f998c825ad22506dc2e
2023-11-14 09:15:54 +01:00
Michal Nasiadka 4eef6e8290 Add newer cluster-autoscaler versions to Docker Hub
Updated golang version since it's required for 1.26+
Removing builds for 1.24 and below - since those are long time
end of life
Bumping build job timeout to 3600s since it's timing out now

Change-Id: I1a40f10d438281c2cbd9a0c73c24d311f7c57b3f
2023-11-13 14:48:42 +00:00
ricolin a48df816cb Enable secure rbac
This setting policies (RBAC) new defaults and scope to ``True`` by default.
Note: This should only merged, after at least a cycle gap to allow
operators to adopt new changes.

Depends-On: https://review.opendev.org/c/openstack/magnum-tempest-plugin/+/877086

Change-Id: I6db4eaa64e2efd455dc3d37ccc74ebd8e7a5dbb2
2023-10-26 13:20:40 +08:00
OpenStack Release Bot 4b6bbd3a99 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I001bfe42fe8eeb6121defe3a152d19d2880c188f
2022-09-26 13:27:19 +00:00
karolinku fd6f2d5238 Fix compatibility with oslo.db 12.1.0
oslo.db 12.1.0 has changed the default value for the 'autocommit'
parameter of 'LegacyEngineFacade' from 'True' to 'False'. This is a
necessary step to ensure compatibility with SQLAlchemy 2.0. However, we
are currently relying on the autocommit behavior and need changes to
explicitly manage sessions. Until that happens, we need to override the
default.

Also squashed change: [CI] move queue setting to project level

Jobs are currently not running. Fix as described in [1][2]

[1] https://lists.opendev.org/pipermail/service-announce/2022-September/000044.html
[2] https://lists.zuul-ci.org/pipermail/zuul-discuss/2022-May/001801.html

Story: 2010296
Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>
Co-Authored-By: Jake Yip <jake.yip@ardc.edu.au>
Change-Id: I625500d9e6670a429c70a0f6d582d0865ce78fd1
2022-09-20 12:35:28 +00:00
OpenStack Release Bot 36b38d18e9 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ie4dc224d88beb0b29ed057c19a40ec6dcb63413d
2022-04-13 02:00:14 +00:00
Zuul 4d71b98bd1 Merge "Remove temporal workaround to increase quota in Glance" 2022-03-02 08:09:27 +00:00
OpenStack Release Bot 9e200806a7 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I39ca6e889af922fcbff135ef2b71df6fcd644fb5
2022-01-20 15:44:58 +00:00
Takashi Kajinami f77a437db6 Remove temporal workaround to increase quota in Glance
... because now it is fixed in the base job definition.

Depends-on: https://review.opendev.org/802539
Change-Id: Iab6ed407ce8ca35dbfc171411339884df08b094b
2021-07-28 07:47:40 +09:00
Takashi Kajinami 67acf2c5e9 Use Block Storage API v3 instead of API v2
Block Storage API v2 was deprecated during Pike cycle and is being
removed during Xena cycle, and current v3 API should be used instead.

Additional Zuul config for Devstack allows CI to pass which can be
reverted later [1].

[1] https://bugs.launchpad.net/glance/+bug/1938151

Change-Id: Ib66b754f4a0854a0d62d62047a69b04a24434634
2021-07-27 20:41:52 +00:00
Spyros Trigazis 1843ad1b00 Drop lower constraints testing
Projects like oslo are dropping lower constraints
testing. There is also discussion to drop it until
we find a proper setup. For details, please follow
the ML thread. TC will have updates soon.

http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019679.html

story: 2008482
task: 41565

Change-Id: Ifd57405d72ed6c1406bc9cecca3a412507bb8a02
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2021-01-11 12:07:06 +01:00
Spyros Trigazis 2b5a451222 ci: Update dockerhub password
Change-Id: I829b2077eb77e6b69c383068621eb100d86a11d3
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2020-11-05 10:44:51 +00:00
Zuul 2ca82cf549 Merge "[ci] Use stestr for coverage and fail if below 90%" 2020-08-25 12:48:38 +00:00
Zuul 94c18cc515 Merge "Remove zuul legacy jobs" 2020-08-25 10:20:31 +00:00
Thomas George Hartland 79c4b72f6e Increase container-publish timeout
The magnum-container-publish job first
has to run the container-build job,
so it doesn't make sense for the publish job
timeout to be shorter than the build job timeout.

Change-Id: I7f8b1b91eba733ecda01dc385c594d04f238a30b
2020-08-04 15:18:24 +02:00
Bharat Kunwar 4fbf965187 [ci] Use stestr for coverage and fail if below 90%
Additionally remove non-voting status of coverage job. 1% toleration is
enabled for allowed_extra_missing lines. If we need to lower the 90%
threshold for coverage in the future, this can be decided then.

Change-Id: I7bc80c34dc6e6e054c61181410d88e7b747310c9
2020-07-31 14:56:40 +00:00
Bharat Kunwar 463a0185ae Remove zuul legacy jobs
As part of the Victoria cycle, all legacy jobs need to either be
converted or dropped. Since we no longer use these jobs that have been
parked in the experimental queue, it makes sense to drop them.

Change-Id: I16f15d8fb6887ff9076b20d473d9d39cec455b96
2020-07-28 08:59:42 +00:00
OpenStack Release Bot 4446f61504 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Id9ddd06758e69a8397c052da7df653b8ab71d339
2020-04-30 08:04:30 +00:00
Bharat Kunwar 76502dd57d [ci] Use magnum-tempest-plugin-tests-api
This commit drops magnum-functional-api (which uses legacy-dsvm-base due
to be removed in the V cycle) in favour of
magnum-tempest-plugin-tests-api defined in the magnum-tempest-plugins
repo (which uses the new devstack-tempest job recommended for running
Tempest tests in Zuul v3) for API Tempest tests.

Story: 2007561
Task: 39443

Depends-On: https://review.opendev.org/#/c/721077/

Change-Id: I91446f8773ecec1286c9913c3fff688bd8d9a087
2020-04-21 19:52:32 +00:00
Bharat Kunwar 9fedb8fe43 [ci] Use Fedora CoreOS image for devstack plugin
Story: 2007561
Task: 39478

Depends-on: https://review.opendev.org/#/c/721213/

Change-Id: I05caa60fd0180e20003f876fd439b6f421e50ff3
2020-04-21 19:52:14 +00:00
Andreas Jaeger a4190dc9d0 Remove buildimage jobs
Remove buildimage jobs, they have been disabled in April 2019 and the
project uses upstream images now.

Remove them so that the legacy parent job can be removed, this repo
is one of the final users.

Change-Id: Ieb4fe3e6122270b4e9114012dee5af747d88d539
2020-02-26 08:46:50 +01:00
Diogo Guerra 3d17c6eb49 Drop python2 tests
OpenStack is dropping the py2.7 support in ussuri cycle.
magnum is ready with python 3 and ok to drop the
python 2.7 support.

https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html#completion-criteria

Depends-On: https://review.opendev.org/693631

Change-Id: I2ce19b3f976619853117231ae0dae24ebe68601f
Signed-off-by: Diogo Guerra <diogo.filipe.tomas.guerra@cern.ch>
2019-11-21 15:58:32 +01:00
Thomas Hartland 25c0f46169 Build cluster autoscaler container images
Add Dockerfile and CI config for building cluster autoscaler
container images specifically for magnum.
The autoscaler is built with the build tag "magnum" so that
only the magnum provider is included in the binary. This cuts
the size of the image in half compared to building with all
cloud providers.
The container-build job in .zuul.yaml has to have its timeout
increased, as the build time was already close to the timeout.

Change-Id: Iecbae5866278afe1687a4533b71af60fce537a4a
2019-10-16 08:05:23 +00:00
Andreas Jaeger 997497d8f4 Remove unneeded Zuul branch matcher
We have implicit branch matchers, so there's no need to add a check for
not-ocata, this job is only run for the branch it's on - like master
now.

Remove it to not confuse Zuul when multiple branches matches and the job
is different.

Also fix heat-container-agent to make linking of /usr/bin/python to python3
conditional on whether it already exists.

Change-Id: I1fec9d19cd14cf2fe2473b7610870e8d669021b9
2019-09-13 10:10:00 +00:00
Corey Bryant 5823054627 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I0ddfd7fde55302809a98bb8a6d745de4079b9a87
Story: #2005924
Task: #34219
2019-07-19 10:48:58 -04:00
Spyros Trigazis d7035775c6 ci: Rotate dockerhub password
Depends-On: https://review.opendev.org/666196
Change-Id: I4f913bc06a68cf0f3d61d836ab8a7acae54d50f7
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-06-19 01:01:59 +00:00
Andreas Jaeger 42c75c4d3d Disable broken image building
The periodic jobs for building images are all failing, add some
low-hanging fruits for fixing:

1) Remove usage of own Fedora image build tools, they were removed as
   part of change Ie6a8496c202ff0bf330dd0f434cff8777e5ef112.
2) Add openstack/tripleo-image-elements and
   openstack/heat-templates as required-repo for the build
   jobs, they are requirements.

Still, these are still failing, let's disable the periodic jobs.
They have been broken since ages without fixing. There's no
record of a successful run under Zuul v3.
Last images at http://tarballs.openstack.org/magnum/images/ are from
2017.

Change-Id: I01122fa029b4124d912e80ea43bca07b8f2ebe5c
2019-04-30 15:26:02 +02:00
Andreas Jaeger ef0678ec98 Fix container-build job
Fix container-build variable due to move from git.openstack.org to
opendev.org.

Also, rename the job following the naming guidelines [1]. We have a
shared namespace and job names need to start with the repo name.

[1] https://docs.openstack.org/infra/manual/drivers.html#consistent-naming-for-jobs-with-zuul-v3

Change-Id: Ieed605c8e6d020b224cacf377b5a6178669ecf1a
2019-04-30 15:25:55 +02:00
OpenDev Sysadmins 79e7931e6e OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:44:16 +00:00
Ghanshyam Mann 0d3ad907a6 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: Id530578688faf2e97165b40abe18b863126cf89f
2019-04-14 23:05:06 +00:00
Zuul f1f96e5835 Merge "add python 3.7 unit test job" 2019-03-22 17:24:41 +00:00
Zuul 342023e870 Merge "Migrate legacy jobs to Ubuntu Bionic" 2019-03-20 08:15:57 +00:00
ghanshyam b5a6ee1dc1 Migrate legacy jobs to Ubuntu Bionic
We have migrated the zuulv3 job to Bionic during Dec/Jan month.
 - http://lists.openstack.org/pipermail/openstack-discuss/2018-December/000837.html
 - https://etherpad.openstack.org/p/devstack-bionic
But that effort does not move all gate job to Bionic as there are
large amount of jobs are still legacy jobs. All the legacy jobs still
use Xenial as nodeset.

As per the decided runtime for Stein, we need to test everything on openstack
CI/CD on Bionic - https://governance.openstack.org/tc/reference/runtimes/stein.html

Below patch move the legacy base jobs to bionic which will move the derived jobs
automatically to bionic. These jobs are modified with branch variant so that they will use
Bionic node from stein onwards and xenial for all other stable branches
until stable/rocky.
- https://review.openstack.org/#/c/639096

This commit remove the overridden nodeset from magnum legacy jobs
so that it will start using the nodeset defined in parent job.

More Details: 
- https://etherpad.openstack.org/p/legacy-job-bionic
- http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003614.html

Depends-On: https://review.openstack.org/#/c/641886/
Change-Id: Ia5f037432f4c5925f916e19cbe8a3253869674d9
2019-03-13 01:24:50 +00:00
Spyros Trigazis 16c2a4cfe3 ci: Disable functional tests
We currently run only vexxhost with nested
virtualization. Due to a kernel change all
functional jobs are failing.

Change-Id: I9ab45da36dbc5618587b4795658b4f4bb264f2c8
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-03-11 20:20:22 +01:00
Corey Bryant 41cdb489ce add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: I07bc642685409ec269b264e3e33fb2e355222ab4
Story: #2004073
Task: #27426
2019-02-15 14:01:17 -05:00
Erik Olof Gunnar Andersson 82344703ca Fixing container-build job
When the base zuul job moved from openstack-infra to
opendev the role openstack-zuul-jobs which we depend
on for the swap was removed.

This patch manually imports that repo.

Change-Id: I90acaf010014664879f5c0d2f1a1ef660baf498f
2019-02-10 17:31:17 -08:00
Spyros Trigazis 9f3719674b Use python3 for functional tests
* Run by default with python3.
* Add python2 functinal-api job.

Change-Id: Ic5c3c4ef57284767665d3c5dc92c59671218ebe1
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-01-18 12:12:16 +00:00
Spyros Trigazis 60c996d2b4 Changes in container builder
* do not log the login command
* change dockerhub creds
* fix reference of tag in the push images task
* add retries
* remove repository parameter
* pull fedora from docker.io
* name docker_image tasks for each kubernetes and magnum images
* drop async logs

Change-Id: Iead202bdf9d7d42d0b7e21bea73a298678be714b
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2018-12-15 22:28:49 +01:00
Spyros Trigazis 20d965c864 Build images in the ci
Use docker.io/openstackmagnumtest initially.

Change-Id: Idfb5ba636df2928e2e3e5248fdcaabd63160a4a4
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2018-12-14 16:56:40 +01:00
Mohammed Naser 2e2ebaf679 functional: use vexxhost-specific nodes with nested virt
This patch changes the intergration jobs to use nodes which are
at VEXXHOST that come with supported nested virtualization in
order to allow for the functional jobs to finish on-time.

Change-Id: Ie275caac1a40fb3f10a0653b66611d2ba9d1c470
Story: #2002589
Task: #28341
2018-12-08 22:16:42 -05:00
Andreas Jaeger 36c99a5129 Make cover jobs non-voting
This job is not ready to be voting yet.

Change-Id: I2f1a2ba5d1fa501ead403f94243f45f8da100097
2018-09-19 10:24:22 +02:00
qingszhao bdeed363b2 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Depends-On: https://review.openstack.org/596861
Change-Id: I5a361dc3b651399042174f183c5c2f46bc26aea1
Story: #2002586
Task: #24308
2018-09-12 20:37:54 +02:00
qingszhao 37231f18b2 switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I3672dad9be3d60d243af9f7bb422f86d9ce87ad4
Story: #2002586
Task: #24308
2018-09-12 20:29:12 +02:00
Andreas Jaeger 4a1a4be0d3 Use templates for cover and lower-constraints
Use openstack-tox-cover template, this runs the cover job
in the check queue only.

Use openstack-lower-constraints-jobs template

Remove jobs that are part of the templates.

Change-Id: Ibc271ef9ac9a47b585a7099bfcdbc6f9884227fe
2018-09-07 12:53:29 +02:00
qingszhao 772aab2819 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I4145c393efa3e8734301c8f541518a8e46101ea2
Story: #2002586
Task: #24308
2018-08-29 18:11:09 +00:00