New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New way of showing kata nodes in kataconfig status #329
Merged
pmores
merged 6 commits into
openshift:devel
from
pmores:new-way-of-showing-kata-nodes-in-kataconfig-status
Jul 4, 2023
Merged
New way of showing kata nodes in kataconfig status #329
pmores
merged 6 commits into
openshift:devel
from
pmores:new-way-of-showing-kata-nodes-in-kataconfig-status
Jul 4, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All predicates take the same arguments describing a node and figure out if kata on the node is Installed, Installing, WaitingToInstall, FailedToInstall, NotInstalled, Uninstalling, WaitingToUninstall or FailedToUninstall. Signed-off-by: Pavel Mores <pmores@redhat.com>
This is a preparation for the next commit where this functionality will be needed. Signed-off-by: Pavel Mores <pmores@redhat.com>
pmores
force-pushed
the
new-way-of-showing-kata-nodes-in-kataconfig-status
branch
from
June 30, 2023 14:05
597ab70
to
e393a19
Compare
gkurz
reviewed
Jul 3, 2023
gkurz
reviewed
Jul 3, 2023
gkurz
approved these changes
Jul 3, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement. Thanks @pmores !
The first part computes inputs for the kata status predicates, the rest runs the predicates. For now, the result of classification is just logged. Signed-off-by: Pavel Mores <pmores@redhat.com>
A list of nodes is added to KataConfig.status for each of Installed, Installing, WaitingToInstall, FailedToInstall, Uninstalling, WaitingToInstall and FailedToInstall kata installation statuses. There's no list for NotInstalled as that's left implicit (the NotInstalled status is still logged though). putNodeOnStatusList() is also changed to actually fill the lists. Signed-off-by: Pavel Mores <pmores@redhat.com>
This is basically a counterpart of putNodeOnStatusList(), to be called before the lists can start being populated by putNodeOnStatusList(). Signed-off-by: Pavel Mores <pmores@redhat.com>
The new functionality runs alongside of the existing status reporting for the time being. Signed-off-by: Pavel Mores <pmores@redhat.com>
pmores
force-pushed
the
new-way-of-showing-kata-nodes-in-kataconfig-status
branch
from
July 4, 2023 09:26
e393a19
to
e52e051
Compare
This was referenced Jul 4, 2023
gkurz
added a commit
to gkurz/sandboxed-containers-operator
that referenced
this pull request
Dec 7, 2023
The list of nodes where kata is deployed is part of the status of the KataConfig. It is expected that the controller ensures this list is up-to-date during all reconcile runs. Changes to this list usually happen during installation/deinstallation of kata on some nodes. But it is also possible that reconcile is called and the status is lacking the list of nodes for some reason, e.g. KataConfig was edited externally or KataConfig predates PR openshift#329. Stop restricting the regeneration of this list to only happen when kata is being deployed or removed. This might result in some more trafic between the client and server but idempotency should prevail. Signed-off-by: Greg Kurz <groug@kaod.org>
beraldoleal
pushed a commit
to beraldoleal/sandboxed-containers-operator
that referenced
this pull request
Jan 4, 2024
The list of nodes where kata is deployed is part of the status of the KataConfig. It is expected that the controller ensures this list is up-to-date during all reconcile runs. Changes to this list usually happen during installation/deinstallation of kata on some nodes. But it is also possible that reconcile is called and the status is lacking the list of nodes for some reason, e.g. KataConfig was edited externally or KataConfig predates PR openshift#329. Stop restricting the regeneration of this list to only happen when kata is being deployed or removed. This might result in some more trafic between the client and server but idempotency should prevail. Signed-off-by: Greg Kurz <groug@kaod.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new section to
KataConfig.status
calledkataNodes
which lists cluster nodes grouped by the status of kata installation on them which can be one of installed, installing, waiting to install, failed to install, not installed, uninstalling, waiting to uninstall and failed to uninstall.By way of example, when applying a KataConfig that selects both nodes of a two-worker cluster, the newly added section might show
for a brief period of time, then something like
Once
worker-1
is installed the other worker starts installingand finally
The new addition runs alongside the existing status reporting for now.