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

Temporarily pull machine images from side repo #13220

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

baude
Copy link
Member

@baude baude commented Feb 11, 2022

Until podman4 is in the fcos trees, we need to pull the machine images
from a side repository. There is a hard coded bit that forces the
side repo download right now. Simple comment or removal of the bit will
revert to normal download behavior.

Signed-off-by: Brent Baude bbaude@redhat.com

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 11, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baude

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 11, 2022
@@ -142,7 +177,28 @@ func getFCOSDownload(imageStream string) (*fcosDownloadInfo, error) {
logrus.Error(err)
}
}()
if imageStream == podmanTesting {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand the need for this, the data we're getting should be...oh no, argh. Right, there's 3 levels of JSON (cosa meta, release json, and stream JSON), and we actually only got the second. I'm so sorry, I messed that up.

Well, it honestly doesn't matter - what matters is the binary can pull it, if we temporarily uglify this code I don't think it's a big deal.

For general context, Brent and I discussed this and I am firmly of the opinion we on CoreOS side (as well as elsewhere) should aim to ditch all our custom JSON long term in favor of OCI artifacts. For more on that, see coreos/fedora-coreos-tracker#828

Copy link
Member Author

Choose a reason for hiding this comment

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

wait, this is not pretty? I feel pretty.

Until podman4 is in the fcos trees, we need to pull the machine images
from a side repository.  There is a hard coded bit that forces the
side repo download right now.  Simple comment or removal of the bit will
revert to normal download behavior.

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
@mheon
Copy link
Member

mheon commented Feb 11, 2022

LGTM, but I kind of hate that we have no tests for machine so we can't validate this in CI.

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 14, 2022
@openshift-merge-robot openshift-merge-robot merged commit d366139 into containers:main Feb 14, 2022
@Luap99
Copy link
Member

Luap99 commented Feb 14, 2022

I just tried it and it works but there is one problem. Netavark is installed and selected as network backend which is good but aardvark is not installed so dns does not work.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants