Skip to content
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

Rebase devel on peer pods #311

Merged
merged 12 commits into from May 16, 2023
Merged

Conversation

gkurz
Copy link
Member

@gkurz gkurz commented May 16, 2023

- Description of the problem which is fixed/What is the use case

The peer-pods-tech-preview and devel branches aren't currently in sync. They haven't diverged too much but we'd like them to stay as much as sync as possible until OSC 1.4.0 is released.

- What I did

git rebase --ff peer-pods-tech-preview

- How to verify it

PR branch should be just one patch ahead from peer-pods-tech-preview, i.e. HEAD^ of the PR branch == HEAD of peer-pods-tech-preview

- Description for the changelog

Pull all changes from peer-pods-tech-preview to devel. Next step will be to merge devel into peer-pods-tech-preview so that they are identical.

Pavel Mores and others added 10 commits May 11, 2023 19:19
The return value ('foundMcp') was never used.  The same retrieval happens
again further down the function with an identical error handling which
however also handles the success case.

Signed-off-by: Pavel Mores <pmores@redhat.com>
The function will be useful in processKataConfigDeleteRequest() as well
so we factor it out of processKataConfigInstallRequest().

Signed-off-by: Pavel Mores <pmores@redhat.com>
This is the central commit of this series.  It replaces several arbitrary
60 seconds waits and node-counting conditionals which have proved fragile
in practice with a straightened-out flow that's identical to what
installation uses: first, change MCO resources (here by unlabeling nodes
and deleting the extension MC), then wait for the MCO to notice the changes
and start processing them, then wait for the MCO to finish processing the
changes, and finally finish up the OSC part of the operation by deleting
the custom pool if applicable, the Daemonset and the Scc, and then
KataConfig itself.

Signed-off-by: Pavel Mores <pmores@redhat.com>
This fixes a long-standing omission.

Signed-off-by: Pavel Mores <pmores@redhat.com>
All of the other resource removals at the bottom of
processKataConfigDeleteRequest() are removed by separate functions.  Also,
the new function is a logical counterpart to the already existing
addFinalizer().

Signed-off-by: Pavel Mores <pmores@redhat.com>
'r.Client.Status().Update()' was called right after updateStatus() call,
basically duplicating the same catch-all call performed after
processKataConfigDeleteRequest() return.

The processKataConfigDeleteRequest() call site was modified to ensure that
the status update is always performed, even if a deletion reconciliation
ends in an error.  This seems to make sense, no matter how reconciliation
ends it might well have updated the status, and if not the update is just
a no-op.

Signed-off-by: Pavel Mores <pmores@redhat.com>
The problem and the fix are described in more detail in a code comment,
please see the diff.

Signed-off-by: Pavel Mores <pmores@redhat.com>
Fixes: #KATA-2165

Signed-off-by: Pradipta Banerjee <pradipta.banerjee@gmail.com>
Bump up peerpod-ctrl and peerpodconfig-ctrl deps
cloud providers

Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
@openshift-ci openshift-ci bot requested review from littlejawa and pmores May 16, 2023 13:49
add image creation jobs for aws and azure
@littlejawa
Copy link
Contributor

I think it needs another rebase now that #306 is merged :-(

@pmores
Copy link
Contributor

pmores commented May 16, 2023

Yes, apparently. Otherwise it looks good.

`make test` is leaking the kube-apiserver and etcd processes.
When unoticed, this causes `make test` to fail with weird
errors like failing to open a file because of rlimit.

Investigation leads to commit 053f866 which was added
to work around the very same problems at the time according to
Pradipta. Reverting this commit fixes the issue.

It seems that updates to the controller-runtime and deps might
have changed something and we no longer need the workaround.

Let's just revert 053f866.

Fixes https://issues.redhat.com/browse/KATA-2168

Signed-off-by: Greg Kurz <groug@kaod.org>
@gkurz gkurz force-pushed the rebase-devel-on-peer-pods branch from 319fd38 to a604fed Compare May 16, 2023 14:17
Copy link
Contributor

@littlejawa littlejawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm
Thanks @gkurz

@gkurz
Copy link
Member Author

gkurz commented May 16, 2023

Forced push because of #306 just being merged into peer-pods-tech-preview.

Copy link
Contributor

@pmores pmores left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks @gkurz !

@gkurz gkurz merged commit 8e5e157 into openshift:devel May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants