-
Notifications
You must be signed in to change notification settings - Fork 413
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
Create PoC for booting from in-cluster built image #2886
Conversation
Skipping CI for Draft Pull Request. |
/cc @cgwalters |
Right now I'm using env variables for kubeadm password, which I'll fix once we set up authentication properly |
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 work on this! I had been thinking of this e2e as just a shell script basically running oc
but having this in Go is going to greatly help migrating this code into the MCD and MCO and also correctly handle state reconciliation/monitoring etc.
test/e2e/layering_test.go
Outdated
changesQueued := "Changes queued for next boot. Run \"systemctl reboot\" to start a reboot" | ||
require.Contains(t, rebase, changesQueued) |
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.
I know this is just a test, but I would like the ability to change the English text output from rpm-ostree without breaking the MCO's test suite.
I think we can probably just drop this chunk. But if we do want to be explicit, we can use rpm-ostree status --json
and check for a queued pending deployment. The MCD has code for this already. See also coreos/rpm-ostree#2389
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.
Kinda feels like overkill but added something to call rpm-ostree status --json
both here and after rollback
ce2ac1a
to
2fd8ebd
Compare
@mkenigs do you want to rebase this? Why didn't we get it in before? CI flow problems? |
I updated it to use the MCD service account but never tested that flow because I was waiting for the newer rpm-ostree |
Ah got it, that should be available now |
/test all |
/approve |
@cgwalters the test added by this PR is failing with: |
OK right. This is because while we plumbed the options up to the ostree(ext) CLI, we didn't into I think per discussion, what we really want is config files anyways. So I did With that, the MCO can just write |
@mkenigs can you apply this:
? |
I've updated |
Applied it! Should I go ahead and squash everything? |
#2921 |
/test e2e-gcp-op |
One node is still unschedulable, logs:
|
We had a realtime chat on this, it's not clear to me if the failure is really related, but it may be that we need to have the e2e test here revert the node (via e.g. Another better pattern I think we should prototype out more here is using machine API to spawn a new worker VM that is allocated per each destructive test. (This would cost more money per PR, but be more reliable) |
/test e2e-gcp-op |
It looks like the failure for |
We can bump the test timeout; won't be the first time. But we have a longer term problem with the e2e tests - I think we need to parallelize them. And I also think we should consider not running them less often - a ton of PRs to this repo have low-to-zero chance to break our e2es. For example, all the PRs to the OVS scripts. |
Do I need to do any of that before merging this? Or just bump the timeout for now? How would I do that? |
Nah let's just try bumping the timeout, it looks like #2474 |
Add e2e test that 1. creates image stream and pushes build to that image stream 2. uses that build with rpm-ostree rebase 3. successfully reboots into that image Closes https://issues.redhat.com/browse/MCO-127
Otherwise e2e tests fail with "panic: test timed out after 1h30m0s"
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, mkenigs The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@mkenigs: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Add e2e test that
Closes https://issues.redhat.com/browse/MCO-127