* Update kuryr-kubernetes from branch 'master'
to 1211d7e2b5b1aad0dd496903b6bec679d9cec39c
- Merge "reno: Update master for unmaintained/victoria"
- reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.
Change-Id: I3dd1a0cd2ebf2e5bee2e72d0702417c5d63d1062
* Update kuryr-kubernetes from branch 'master'
to df0b1fcac7c9fa6af60c51e74eec975d0543f79a
- Merge "reno: Update master for unmaintained/wallaby"
- reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.
Change-Id: Id4d9fd047ee07f97719eb3a6a8f0f0b33234e3ef
* Update kuryr-kubernetes from branch 'master'
to 69c1a6af028fa61bf811da911309a323e6f62dc8
- reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.
Change-Id: I321e110f652ed7ad3d7f07ec679cbad7dcfc3ea6
* Update kuryr-kubernetes from branch 'master'
to d92cee17f0e2718de81da8d1f09cb433d24cf890
- Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.1.
Sem-Ver: feature
Change-Id: I800219473effc1cbd0d2c801a7d70abcc259aa2a
* Update kuryr-kubernetes from branch 'master'
to 9540c87b3f05b416b3239f3bbc50c925a88d27d3
- Merge "Drop dependency on pytz"
- Drop dependency on pytz
Current usage of pytz can be easily replaced by the built-in datetime
library and this allows reducing dependency on 3rd party libraries.
Change-Id: I74c5b8ebce7600cc5986f48a9874ab1882a49ed4
* Update kuryr-kubernetes from branch 'master'
to fd1bacf738e46124de0fb6a131a15354574dc159
- Remove deprecated [pod_vif_nested] worker_nodes_subnet
This option was deprecated in 4.0.0[1] in favor of the new subnet"s"
option. The latest release is 9.0.0, so we can assume enough times has
been given to users so that they can switch to the new option.
[1] b3814a33d60315186640fd3383841d747007a9ad
Change-Id: Ie86c019bbb560cca9b5a3a77319ed639a2245a2d
* Update kuryr-kubernetes from branch 'master'
to a3095c048548966076bc96b061a51d96c47b858f
- Added pytz to requirements.
Change-Id: Ife9e645d6d9dbf298f08201366a2075d74f80258
* Update kuryr-kubernetes from branch 'master'
to 15125a46a1f84f10d9576714897737c132f57c4e
- Update RDO_REPO used to build CNI
Closes-Bug: #2054376
Change-Id: Ie92017f9be0b6c528fe1e1e8ce41b0c194553c16
* Update kuryr-kubernetes from branch 'master'
to c85513970f12fd4366c9956e48af946e5ca57ea8
- reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.
Change-Id: If09ac6b0a50bccc8574056dff6dcb001a48637d7
* Update kuryr-kubernetes from branch 'master'
to 02492ad31412acb6b8fe7ebfbcd3d6430226ca55
- Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg
Change-Id: I98bddf58600c7e616fcf89a16064277695f10a65
* Update kuryr-kubernetes from branch 'master'
to 88b47f30d48a02884c17738c3f606b02706740a2
- Kubeadm installation for CentOs.
Kubernetes repo added for CentOs and installed kubeadm using yum.
Closes-Bug: #2041844
Change-Id: I08e591d616ebea772bd8d87b3c8ab194bce7fb5b
* Update kuryr-kubernetes from branch 'master'
to 071b5f323686b74833ce8a65134de6e81e5cdda6
- Merge "Bump kubernetes version to 1.28"
- Bump kubernetes version to 1.28
Change-Id: I921b165092c9bf81d7223933c508eda6c9eae935
Depends-On: https://review.opendev.org/c/openstack/kuryr-kubernetes/+/896008
* Update kuryr-kubernetes from branch 'master'
to 18c81d8bfe98df6e4ae76613b8f168daae67e7fb
- Merge "Update RDO used to build CNI"
- Update RDO used to build CNI
Change-Id: I07b11d4d4ecb5a1a461edcb1e2ea2bc4ff5189c9
* Update kuryr-kubernetes from branch 'master'
to 2b628fd1ad048f4233edc517df5e3e42b529439a
- Merge "Bump jobs base to Ubuntu 22.04 Jammy"
- Bump jobs base to Ubuntu 22.04 Jammy
DevStack stopped accepting Ubuntu 20.04 Focal, so we need to bump the
version we use to Jammy. This commit does so.
Change-Id: I7b227dfb29b49ff6a561209938a2c263f5dd2f90
* Update kuryr-kubernetes from branch 'master'
to e38195790436f5a324304a701787d9cb1541563f
- Merge "Cleanup py27 support"
- Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
Change-Id: Ie5cc629e38d8c6a0045ed436468d67317cbe6853
* Update kuryr-kubernetes from branch 'master'
to 4f130a301820ee0f8cb6ed9fc79a6ea29d13f261
- Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.
Sem-Ver: feature
Change-Id: Iedde80a136f94cd740956f34b3efe14c9f6c303d
* Update kuryr-kubernetes from branch 'master'
to 4993c7a4b2d7e4b053832bf39602f2573fad6266
- Merge "Bump kubernetes to version 1.27."
- Bump kubernetes to version 1.27.
Change-Id: I7876322b48ca28edf54629dc27551c2dd00f921b
* Update kuryr-kubernetes from branch 'master'
to cf560896e3678d1348b5a260670e5f926dcad946
- Cleanup hyperkube leftovers.
We've switched to the kubernetes binaries from kubernetes project itself
a while ago. There are still some of the mentions in the sample
local.conf about it and a wrapper shell script for the kubectl. In this
commit it will be removed.
Change-Id: Id2ea00db502a9a77c7686c1f2c60637f37bd72df
* Update kuryr-kubernetes from branch 'master'
to 430ae62e4f5cd53627508e6ad954b97773c3cf25
- Bump Kubernetes and cri-o version to 1.26
Change-Id: I477f1bb1fefd211b4f5e43ec4182967c89d0f106
* Update kuryr-kubernetes from branch 'master'
to 74b41a9846d77ddc2dda22f9423aad0237b00da0
- Update CNI to v0.8.1
Change-Id: I686cbd62020139d64dcf00a07c89e53d53d0eab2
* Update kuryr-kubernetes from branch 'master'
to 4030f2706a34c2c5ff4bd3997ec6b1ea40bbccfc
- Skip retry of Network Policy event
When attempting to Handle a Network Policy and one Namespace
which is affected by it is in the process of getting handled
by Kuryr, the Network Policy event would be often retried.
This commit removes the retry to make sure the Network Policy
gets updated only once the Namespace handling has finsihed.
Change-Id: I73c9488dca21f73070ca84352e3ba3780ea7298f
* Update kuryr-kubernetes from branch 'master'
to 2141dba99c753c7f94f30335982701ea0cd82957
- KuryrPort cleanup: Fix issue of subport not found
It can happen that during the cleanup of KuryrPort when Pod is already
gone we'll fail trying to find the parent port ID. We have a bug that in
this case finalizing of KuryrPort fails.
This commit changes the way we look for the hostIP of the pod to
actually look up a node using the info from KuryrPort CRD. If this fails
(node removed?) we try querying OpenStack API to get this information.
If this fails too, we just don't pass hostIP to mocked Pod.
Change-Id: I72aea5713f90c8df2f5d0269fa83b8fdd5220c59
* Update kuryr-kubernetes from branch 'master'
to 2b69e039a8002c24e50e2ff1a947573951e9c1e2
- Fix value ValueError when Pod has no IP address
In case the Pod has no IP address we shouldn't attempt to
convert it to a Python address. Instead, we should skip that
operation and expect it to be retried later.
Change-Id: I1eb9c2f51fd792405cbb87742645518a00fdc890
* Update kuryr-kubernetes from branch 'master'
to 9cd15b6d3775956fc3505998a058988d25681bbc
- Revert "Nit: Change from dict to object notation"
This reverts commit feec91cec10ff080f124cfbb8ff7274bfb25ba8b. Turns out
this wasn't okay, sub_ports property on Trunk objects is a list of
dictionaries.
This also fixes unit tests to account for that.
Change-Id: I17f217a6f2bfc833019ba407c248564e74b663d2
* Update kuryr-kubernetes from branch 'master'
to 6b4992e585b66b49070c8544623aa1f461a69fb8
- Turn on pod security context on master.
Change-Id: If982af87ddd1fe41670a42fe23a8e11490f4a100
* Update kuryr-kubernetes from branch 'master'
to 8aaa92c6df999373b5356538078f8636f660cc45
- Added devstack option to turn on pod security on tempest.
Change-Id: I037eb8122b768ac986b3d9b66212bb03a680f529
* Update kuryr-kubernetes from branch 'master'
to 116886347387ca2b1998ab36901141418d667859
- Make Amphora jobs non-voting
For a long time gate jobs with Amphora are unstable due to LBs being
unstable due to Amphora somehow not working as expected. The gates with
OVN Octavia provider are much more stable for the same cases. This
commit makes all the jobs with Amphora non-voting to fight constant
rechecks that we're forced to do.
Change-Id: I94a7403fa1dd038b7f9f8a922a4f635ed5816067
* Update kuryr-kubernetes from branch 'master'
to f3cef8fdd90c39d017df9a54e5c3e001cc2d2bf1
- Merge "Remove network policy tests from zuul."
- Remove network policy tests from zuul.
Network Policy e2e tests are broken for some time now. It doesn't bring
any value to run them at current state. This patch will disable those
tests.
Change-Id: I8ce459edddf6f8307376eae68bbc75d173f0d19a
* Update kuryr-kubernetes from branch 'master'
to feec91cec10ff080f124cfbb8ff7274bfb25ba8b
- Nit: Change from dict to object notation
Looks like we have one last occurrence of usage of dictionary notation
to access properties of the openstacksdk object. This commit replaces it
with object notation.
Change-Id: I033e6166ecfbccd5e05dba4f7d66422212bc15c9
* Update kuryr-kubernetes from branch 'master'
to efd3e63b178b75a1d9e2bab900a7425455f39257
- Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.
Sem-Ver: feature
Change-Id: I8577a0324694d23962fd5b6f3795929694f898b2
* Update kuryr-kubernetes from branch 'master'
to 6f2a8daf3627adbd994e6a0c63ecc09ac99eb77d
- Remove munch
openstacksdk no longer uses this and we don't need to either. Instead,
create fake version of the actual resources openstacksdk would return.
This is more realistic and let's us remove munch entirely.
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I4549340611cf4da74d525e2adaf724c3cb749f57
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
* Update kuryr-kubernetes from branch 'master'
to 3f80fc43a3e48c6d3c7df7cb0d9eca01f3f7c602
- Use new registry for all the kubernetes images.
Turns out, that all the images has been moved from k8s.gcr.io to
registry.k8s.io, so that there is no need to distinguish between those
two locations for older version of k8s (especially the one which we are
relaying on for docker gate). In this patch we switch over to the
registry.k8s.io for all of the supported kubernetes versions.
To make it work it is also requires to bump kubernetes 1.23 to latest
minor version, otherwise there will be issues with pulling coredns
image.
Change-Id: I7ed0ae76108a409bc72bc61ab7c12164e8277257
Depends-On: https://review.opendev.org/c/openstack/devstack-plugin-container/+/874573
* Update kuryr-kubernetes from branch 'master'
to ed9f348e87b149827daba850706a021b816e3b5e
- Fix VIF revert on KuryrPort status update error
There's argument number mismatch on release_vif() call while reverting
port association. This commit fixes that.
Change-Id: I54816e86910d9328d703fd7e7010d95995085cbf
* Update kuryr-kubernetes from branch 'master'
to e849734c4e8fb686098b647165d087b7bdb13249
- Fix tox4 error.
tox.ini started failing with Tox 4.x which introduce different
interpretation for 'skipsdist' option. If set to true, application will
not be installed in the tox virtualenv, while on previous version (3.x)
it will be installed, if usedevelop is set to true.
Change-Id: I7716c14a3f18d78a3da15c8e27e60b740c659ef6
* Update kuryr-kubernetes from branch 'master'
to ba4cc2b8f0ae28538529d56ebea559268e7d3e88
- Use either subnet name or id for Machines.
Currently, we support only subnet id for primarySubnet field for
OpenShift Machines. Even though it's possible to create objects in
OpenStack with the same name, it is more natural to use names instead of
id especially in OpenShift world. In this patch we introduce support
for using names as well.
Change-Id: Ib21646b4b7cf0e3c07ddef15b3569a0fb4539e8a
* Update kuryr-kubernetes from branch 'master'
to 5fb8104abf21e05e0b34aea665bcd7faa0f606f2
- Bump cri-o version.
We recently bumped Kubernetes version to 1.25.x, but we forgot to do
this on cri-o as well.
Change-Id: If57888d6f48fad904bf4c7cdd5bc6c70233b95be
Depends-On: https://review.opendev.org/c/openstack/devstack-plugin-container/+/866130
* Update kuryr-kubernetes from branch 'master'
to a874180b946d6506b49b3f338016d03a6cf1e95a
- Bumb Kubernetes version to 1.25
Change-Id: I49d9502db2a83eb52d42289054bb021eb7eaa027
* Update kuryr-kubernetes from branch 'master'
to de73800ae35db490b26bda4ba93f2157d85f31d0
- Pin docker gate to Kubernetes 1.23
1.23 version of Kubernetes is the last one, which supports
dockershim[1], therefore it needs to be pinned to that version to make
it work with docker. Any upcoming Kubernetes version bump will be
ignored for this particular gate, and it will be removed when Kubernetes
makes it EOL[2].
[1] https://kubernetes.io/blog/2022/02/17/dockershim-faq/
[2] https://kubernetes.io/releases/patch-releases/#1-23
Change-Id: Ia509264ad45ef5321412ba244b160dffc1c5cc60
* Update kuryr-kubernetes from branch 'master'
to 45d8b5fbad6b5b22e90302adc392ffaa1a540158
- Support for kubernetes version >1.24.
Starting from 1.24 kubernetes started to use different registry for it's
images. That results with inability for kuryr to use the newer versions.
In this commit support for both registry is added.
Closes-Bug: #1991757
Change-Id: I3576159e5afbeb788369519fee12788260b0555f
* Update kuryr-kubernetes from branch 'master'
to d300cb65e6534256c9377aa918ed6dcbb47fba08
- Pin kubectl to the installed kubernetes version.
During devstack deployment it can happen, that changing desired version
of the kubernetes, kubectl will be intalled with different version. This
patch make sure, that all of the installed kubernetes components are
coherent.
Closes-Bug: #1991773
Change-Id: Ied04e93bbe16e7a40213c35f0c6775bbcbf514ac
* Update kuryr-kubernetes from branch 'master'
to 624a106fe25bfd25e446e64dea9daa4ee5c27053
- Merge "Cleanup KuryrPort when Pod is missing"
- Cleanup KuryrPort when Pod is missing
We can easily imagine an user frustrated by his pod not getting deleted
and opting to remove the finalizer from the Pod. If the cause of the
deletion delay was the kuryr-controller being down, we end up with an
orphaned KuryrPort. At the moment this causes crashes, which obviously
it shouldn't. Moreover we should figure out how to clean up the Neutron
port if that happens. This commit does so as explained below.
1. KuryrPort on_present() will trigger its deletion when it detects that
Pod does not longer exist.
2. Turns out security_groups parameter passed to release_vif() was never
used. I removed it from drivers and got rid of get_security_groups()
call from on_finalize() as it's no longer necessary.
3. When we cannot get the Pod in KuryrPort on_finalize() we attempt to
gather info required to cleanup the KuryrPort and "mock" a Pod
object. A precaution is added that any error from release_vif() is
ignored in that case to make sure failed cleanup is not causing the
system to go down.
Change-Id: Iaf48296ff28394823f68d58362bcc87d38a2cd42
* Update kuryr-kubernetes from branch 'master'
to 0501b798bd4e9467811d2d2c03809951e88ff859
- Merge "Switch to 2023.1 Python3 unit tests and generic template name"
- 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: I86154b8c7db90ac6fd5467c1b0d29c0b84528ee4
* Update kuryr-kubernetes from branch 'master'
to 3a49d4bf344f63a0e0ce07e58ef58eb918361546
- Merge "Update master for stable/zed"
- Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.
Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.
Sem-Ver: feature
Change-Id: I26d76b9aa4fadfe3dbf806d8ffbcdae1375a4e8f
* Update kuryr-kubernetes from branch 'master'
to 608dde9d605403c1861eba5297a66872b4ec9085
- Merge "LoadBalancer Members Reconciliation"
- LoadBalancer Members Reconciliation
This patchset implements the members reconciliation to
ensure that members in pools in OpenStack are matching that of
the respective Kubernetes Endpoints.
Implements: blueprint reconcile-openstack-resources-with-k8s
Depends-On: https://review.opendev.org/c/openstack/ovn-octavia-provider/+/854764
Change-Id: Id7df1d13ca80a08e7a4b33949a3584845403d9ba
* Update kuryr-kubernetes from branch 'master'
to 5215643b470381d33f31e79d1970e9c493a43702
- Replace base64.decodestring with decodebytes
Base64.decodestring has been deprecated since 3.1 and removed
in python 3.9, Replace it with base64.decodebytes from python3.1[1].
[1]https://docs.python.org/3.9/library/base64.html?highlight=deprecated#base64.decodebytes
Change-Id: Ic5ae225d5cd8fefd70d3620518f19f16147135df
* Update kuryr-kubernetes from branch 'master'
to 553ca961a6178b7940e70e2e9ccd3ccd09b255cd
- Merge "Replace abc.abstractproperty with property and abc.abstractmethod"
- Replace abc.abstractproperty with property and abc.abstractmethod
Replace abc.abstractproperty with property and abc.abstractmethod,
as abc.abstractproperty has been deprecated since python3.3[1]
[1]https://docs.python.org/3.8/whatsnew/3.3.html?highlight=deprecated#abc
Change-Id: I24f62b02f292ce7a0bc21d4a39fc7787c87098ca