Commit Graph

3785 Commits

Author SHA1 Message Date
Mohammed Naser 2a048267a0
chore: remove useless option
It seems the conductor_life_check_timeout option is not used in
the code entirely.  We can just remove it at this point.

Change-Id: Ie07ede20f55593041319b3a52de8fca9f3b9514b
2024-03-07 17:08:06 -05:00
Dale Smith 0fdec72128 Support Calico 3.26.x
* Renames calico script to match the version it was intended for: 3.21.
* Match calico_tag 3.26.* with the new manifest. All other versions will
  continue to use manifest intended for 3.21.*
* Calico manifest for 3.26[1] is tested for K8s versions v1.24 through v1.28[2].

[1] https://raw.githubusercontent.com/projectcalico/calico/v3.26.4/manifests/calico.yaml
[2] https://docs.tigera.io/calico/3.26/getting-started/kubernetes/requirements

Change-Id: I548e831c13be9b732303c945b2a7ba97a245b0df
2024-03-07 00:14:47 +11:00
Zuul 9d6eae72cc Merge "Drop k8s_fedora_atomic_v1 driver" 2024-03-06 10:14:19 +00:00
Zuul fcc398028c Merge "Add feature flag for beta drivers" 2024-03-06 10:09:03 +00:00
Zuul a69f8297f3 Merge "Move Helm client install to separate script" 2024-03-05 12:33:14 +00:00
Zuul 52f479c8ec Merge "Removing Tiller support" 2024-03-04 20:52:16 +00:00
Michal Nasiadka 38a0f41c94 SQLA 2.0 - Fix connection.execute
execute() in SQL Alchemy 2.x has different behaviour,
this patch adapts alembic scripts.
See [1].

[1]: https://docs.sqlalchemy.org/en/20/changelog/migration_20.html#execute-method-more-strict-execution-options-are-more-prominent

Change-Id: I597eed6f24f13f96f78f6596e16b6edcff989a90
2024-03-02 07:30:50 +00:00
Jakub Darmach b6e2aa8af7 Move Helm client install to separate script
To deploy Calico with Tigera Operator helm charts it was necessary
to move Helm client install to separate script for earlier execution.

Change-Id: Iab738b4120c0ac823b247b04f0cd750de0147779
2024-02-29 14:41:37 +00:00
Jakub Darmach e3aaa89376 Removing Tiller support
Removed Tiller support from Helm modules install kubernetes fragment.

Change-Id: I81db0055ae82c64218498ae3e2a4fcc802f8d0e4
2024-02-29 14:41:29 +00:00
Michal Nasiadka d544698fae Remove use of autocommit
Change-Id: I6e973935edf5e754ba054e724b6963b6d5fd795a
2024-02-29 11:54:28 +00: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
Michal Nasiadka ed699b0c9a Drop k8s_fedora_atomic_v1 driver
Change-Id: I3551ae244ecf99f67a9b142c964c020a5fae70a3
2024-02-27 16:35:35 +00:00
Zuul 05c2b170c0 Merge "Bugfix: Clean up trusts for all deleted clusters" 2024-02-27 15:03:36 +00:00
Jake Yip 34c82bdb96 Add feature flag for beta drivers
Change-Id: I9d0851e7f0c740f2a23c3ff935a21cff35769a78
2024-02-27 20:34:05 +11:00
Jakub Darmach fde7f8e73a Removing legacy calico v3.3
Removed legacy Calico v3.3 manifest and conditional.
 -

Change-Id: Ica52a670452e65c5ae012012895080c9c8d9abf7
2024-02-27 07:15:21 +00:00
Jake Yip 8a30ad3462 Add feature to specify driver explicitly
Allow ClusterTemplate to explicitly specify a driver to use for creating
Clusters.

This is initially sourced from the image property 'magnum_driver', but
may be improved to be specified via client in the future.

Falls back to old driver discovery using (coe, server_type, os) tuple to
keep existing behaviour.

Change-Id: I9e206b589951a02360d3cef0282a9538236ef53b
2024-02-26 14:50:18 +11:00
Dale Smith 1b00074c6a Bugfix: Clean up trusts for all deleted clusters
Cluster conductor creates trusts for all drivers, but does not clean
them up. The Heat driver has previously performed this action.

This change moves the lifecycle of trust and certificate creation
to the Conductor, so drivers do not need to clean up resources they
didn't create.

Change-Id: I2b3e99589d2d3069191d0727406601f0647a9722
2024-02-22 15:38:48 +13:00
Zuul c2567f202a Merge "Drop k8s_fedora_ironic_v1 driver" 2024-02-21 23:52:53 +00:00
Zuul 007c0cd73d Merge "Drop k8s_coreos_v1 driver" 2024-02-21 23:50:02 +00:00
Takashi Kajinami e149b8646b Remove six from unit tests (part 5)
This is part of the steps to remove usage of six library, which is no
longer needed since python 2 support was removed.

Change-Id: I675eff8634ce772839f086b2d07fa0a35cf759b1
2024-02-19 10:44:15 +00:00
Takashi Kajinami 3ec2b2b8a2 Remove six from unit tests (part 4)
This is part of the steps to remove usage of six library, which is no
longer needed since python 2 support was removed.

Change-Id: I820f22d7a905f35122ae11f5bbf5b93a9e13a353
2024-02-19 10:44:09 +00:00
Takashi Kajinami 51e0a2205d Remove six from unit tests (part 3)
This is part of the steps to remove usage of six library, which is no
longer needed since python 2 support was removed.

Change-Id: I683a86eeab858c3f57c587e653ae53aff052fe9c
2024-02-19 10:44:04 +00:00
Takashi Kajinami 26ec32c7be Remove six from unit tests (part 2)
This is part of the steps to remove usage of six library, which is no
longer needed since python 2 support was removed.

Change-Id: I2feca51d17d6c63f7984483cc656e9360450a4d0
2024-02-19 10:43:59 +00:00
Takashi Kajinami 766089b7be Remove six from unit tests (part 1)
This is part of the steps to remove usage of six library, which is no
longer needed since python 2 support was removed.

Change-Id: I1143918d70da51b53fbb8112ecafa412cd7d0770
2024-02-19 10:43:52 +00:00
Takashi Kajinami aea63db390 Remove six from functional tests
This is part of the steps to remove usage of six library, which is no
longer needed since python 2 support was removed.

Change-Id: Ic0b3687c47b6f3ac51858084bcf11a5c5a185759
2024-02-19 10:43:46 +00:00
Takashi Kajinami 627b9a8260 Remove six from common module
This is part of the steps to remove usage of six library, which is no
longer needed since python 2 support was removed.

Change-Id: I14ebd809b39079d06a8ecc8f747b6bb80d550acb
2024-02-19 10:43:31 +00:00
Takashi Kajinami 91f181e3ad Remove six from drivers module
This is part of the steps to remove usage of six library, which is no
longer needed since python 2 support was removed.

Change-Id: If6fb372f72a469e55e956e127c49863b5a557552
2024-02-19 10:43:24 +00:00
Takashi Kajinami 206d19ec52 Remove six from db module
This is part of the steps to remove usage of six library, which is no
longer needed since python 2 support was removed.

Change-Id: I529759167f960714ebf93be7b89ee849040361b2
2024-02-19 10:43:16 +00:00
Takashi Kajinami 41fa21d43c Remove six from conductor module
This is part of the steps to remove usage of six library, which is no
longer needed since python 2 support was removed.

Change-Id: I9a750de4f1ba7017c9dfd67dbf87be138421d017
2024-02-19 10:43:08 +00:00
Takashi Kajinami 52ee359f08 Remove six from api module
This is part of the steps to remove usage of six library, which is no
longer needed since python 2 support was removed.

Change-Id: I4c80bdf8f90a920a05f051a922dfb5db925f0649
2024-02-19 10:32:56 +00:00
Michal Nasiadka 68c8acba39 Remove execution bit on unnecessary files
Change-Id: Ia41b843fdf20154750b129a8ab5dd42f5c3989fb
2024-02-19 00:30:21 +00:00
Zuul de6796bd10 Merge "add cilium in the supported network driver list of k8s" 2024-02-15 07:42:12 +00:00
okozachenko1203 9c31886a80 add cilium in the supported network driver list of k8s
Change-Id: I67d879e4939d92c88641cb97ee2284afbf7359fe
2024-02-09 07:04:17 +01:00
Michal Nasiadka fa5aa8f625 Drop k8s_fedora_ironic_v1 driver
Change-Id: Ic7114e5923b74a4202a043388701826b4e47326e
2024-02-05 08:14:56 +00:00
Michal Nasiadka 5c0c27807a Drop k8s_coreos_v1 driver
Change-Id: I64884677cf05c59c64988dfbee9bf22e97a3466b
2024-02-05 07:04:05 +00:00
Zuul de47ae83a5 Merge "SQL Alchemy 2.x: Stop using deprecated API" 2024-02-03 03:22:31 +00:00
Zuul 39af658193 Merge "heat: Update addresses on CREATE_FAILED" 2024-02-02 10:31:53 +00:00
Michal Nasiadka 021293d8f8 SQL Alchemy 2.x: Stop using deprecated API
This patch fixes magnum/db/sqlalchemy/models.py:99: MovedIn20Warning:
Deprecated API features detected! errors.

See [1].

[1]: https://docs.sqlalchemy.org/en/20/changelog/migration_20.html#migration-orm-configuration

Change-Id: I397fc59fefab86149a023ff8102e0823fa5ab6a7
2024-02-01 12:10:07 +00:00
Michal Nasiadka 339a771587 heat: Update addresses on CREATE_FAILED
This is required for Tempest CI to fetch master/node addresses in order
to collect logs from them on cluster creation failure.

Change-Id: I24ac7ff632a8758bfefa5b66341a19eb9712dac6
2024-01-31 11:07:10 +00:00
Zuul a933e1f2ad Merge "Move the chmod function before the write and flush functions to prevent sensitive information leakage." 2024-01-31 09:23:24 +00:00
Zuul b7d4495fd6 Merge "Drop dependency on pytz" 2024-01-31 09:23:22 +00:00
Zuul 1cf1ba1761 Merge "Drop Swarm support" 2024-01-31 09:23:20 +00:00
Zuul b54977c0d1 Merge "Fix flakey validation tests." 2024-01-31 09:23:18 +00:00
Takashi Kajinami 90a82c4b19 Drop dependency on pytz
... because the current usage can be easily re-implemented using
the built-in datetime library.

Change-Id: Ic0c7919f0288fd61dd5bfa402c99d7080ffd9083
2024-01-27 19:50:06 +09:00
Zuul fd76e86a57 Merge "Update chart.metadata.version to reflect breaking change in helm v3.5.2" 2024-01-26 02:36:48 +00:00
Michal Nasiadka bc79012f46 Drop Swarm support
Label validator function has been left behind, although it's not
checking for anything right now - might be useful in future.

Change-Id: I74c744dc957d73aef7556aff00837611dadbada7
2024-01-24 13:20:21 +13:00
Dale Smith ab88ef3a5c Fix flakey validation tests.
These tests were causing side effects to class variables of
K8sValidator, and this was intermittently failing subsequent tests
if they ran in the same stestr executor.

This change uses mock.patch to change the class variables for the
duration of the test only.

Change-Id: I81095221fa45f7070bde22e2a4415345080ed1f1
2024-01-24 12:14:09 +13:00
lujie cb71d19382 Move the chmod function before the write and flush functions to prevent sensitive information leakage.
Closes-Bug: #2047690
Change-Id: I2b88a14cc67a4fba35fcfc187a91771e1d714844
2024-01-19 21:23:04 +08:00
Zuul 3ef20c2503 Merge "Migrate to importlib.metadata" 2024-01-11 09:09:38 +00:00
Zuul 547f25bca5 Merge "Add validator for fixed_subnet" 2024-01-10 12:35:25 +00:00