-
Notifications
You must be signed in to change notification settings - Fork 247
MGMT-20369: retrieve stream-coreos image instead of rhel-coreos when installing OKD #7534
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
MGMT-20369: retrieve stream-coreos image instead of rhel-coreos when installing OKD #7534
Conversation
|
@rccrdpccl: This pull request references MGMT-20369 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.19.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/cc @jianzzha |
|
@rccrdpccl: GitHub didn't allow me to request PR reviews from the following users: jianzzha. Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
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-sigs/prow repository. |
|
/retest |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7534 +/- ##
==========================================
- Coverage 67.30% 67.30% -0.01%
==========================================
Files 334 335 +1
Lines 42299 42486 +187
==========================================
+ Hits 28470 28595 +125
- Misses 11257 11306 +49
- Partials 2572 2585 +13
🚀 New features to boost your workflow:
|
|
/hold |
bfab14b to
bc0632d
Compare
|
/unhold |
|
/retest |
internal/oc/release.go
Outdated
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.
Is this consistent with how we're checking for OKD in other places? I remember seeing a check somewhere but I don't know how it's implemented.
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 cannot find any other parts where we check for OKD, apart from the OKD-RPMS image (which I think it's not really equivalent to this). Alternatively we could just try both and pick the first that works and not make it dependant on the release image (name). WDYT?
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 actually think that is how we use that function. The problem is that we end up running it all the time which isn't great but ... I suppose it depends on how confident we are in the release image naming.
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.
@Prashanth684 would you have any recommendation on how to detect reliably OKD release image?
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.
unfortunately, there is no easy way to detect if release image is OKD outside of doing what oc does which is read the release image, parse the metadata and maybe check the componentversion to see if there is centos stream coreos string present there. The only way today is like you suggest to check for both and see which one works.
internal/oc/release.go
Outdated
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.
this is checking the pullspec string right? so if a pullspec with digest is provided, this won't work?
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.
Yes, what you say is correct - this should be changed.
Currently we check for the image tagged okd-rpms within the release image (oc adm release info --image-for=okd-rpms --insecure=false <release image>) - however this seems that it's not working any longer from release 4.16 onward. This would mean OKD assisted installs for OCP > 4.15 are not working properly. Could you please confirm that this method is no longer valid?
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.
right...we don't build the okd-rpms image anymore. The openshift binaries are pulled from ART's mirror (for now).
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.
you could check for stream-coreos instead as that is specific to OKD.
Signed-off-by: Riccardo Piccoli <[email protected]>
…fail Signed-off-by: Riccardo Piccoli <[email protected]>
bc0632d to
9a1128d
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: carbonin, rccrdpccl The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Looks like the OKD-specific job has been failing for quite a while now so it's unlikely that it's a problem with this PR |
|
@rccrdpccl: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
20e7243
into
openshift:master
|
[ART PR BUILD NOTIFIER] Distgit: ose-agent-installer-api-server |
OKD doesn't use rhel-coreos, it uses stream-coreos instead
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs, README, etc)Reviewers Checklist