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

Allow podman machine to download from oci registry #21602

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

baude
Copy link
Member

@baude baude commented Feb 10, 2024

this pr represents a shift in how we download podman machine images. these images will now be stored in oci registry and will replace the default method of downloading an image. you can still use a reference to a disk image as a path or url too with the --image-path switch.

the final registry and location of the images has not been determined; and will need to be updated in podman as well.

i dont think we need to allow --image-path to accept a registry/image for the podman 5.0 release. i do think there will be demand for this.

upgrades also need to be plumbed. for example, updating from an oci registry.

once we make decisions on final image locations/registrties as well as some behaviors of init and the oci pull, we must update the machine-init documentation.

Does this PR introduce a user-facing change?

None

@openshift-ci openshift-ci bot added release-note-none approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 10, 2024
Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

LGTM

artifactVersion := getVersion()
switch runtime.GOARCH {
case "amd64":
arch = "x86_64"
Copy link
Member

Choose a reason for hiding this comment

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

Why are you switching arch and not just using runtime.GOARCH?

Copy link
Member Author

Choose a reason for hiding this comment

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

because fcos "arch" and go "arch" are different... nothing there is normalized.

Copy link
Member

@rhatdan rhatdan left a comment

Choose a reason for hiding this comment

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

A few questions.

Copy link
Contributor

openshift-ci bot commented Feb 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baude, giuseppe, rhatdan

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:
  • OWNERS [baude,giuseppe,rhatdan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rhatdan
Copy link
Member

rhatdan commented Feb 12, 2024

@nalind PTAL

@rhatdan
Copy link
Member

rhatdan commented Feb 12, 2024

Should the location of the podman machine be listed in containers.conf, or are we going to rely on Mirroring for disconnected environments?

@baude
Copy link
Member Author

baude commented Feb 12, 2024

Should the location of the podman machine be listed in containers.conf, or are we going to rely on Mirroring for disconnected environments?

I have a number of behaviors that need to be discussed as a team; this is one. I think this is good enough as is and a couple of clean up PRs will solidify things.

@mheon
Copy link
Member

mheon commented Feb 12, 2024

Code LGTM aside from existing comments

@baude
Copy link
Member Author

baude commented Feb 12, 2024

fixed up

@baude baude force-pushed the ociartdisk branch 3 times, most recently from 1a98a67 to 42e2691 Compare February 12, 2024 18:35
Copy link

Ephemeral COPR build failed. @containers/packit-build please check.

this pr represents a shift in how we download podman machine images.
these images will now be stored in oci registry and will replace the
default method of downloading an image.  you can still use a reference
to a disk image as a path or url too with the --image-path switch.

the final registry and location of the images has not been determined;
and will need to be updated in podman as well.

i dont think we need to allow --image-path to accept a registry/image
for the podman 5.0 release.  i do think there will be demand for this.

upgrades also need to be plumbed.  for example, updating from an oci
registry.

once we make decisions on final image locations/registrties as well as
some behaviors of init and the oci pull, we must update the machine-init
documentation.

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

rhatdan commented Feb 12, 2024

/lgtm
/hold

@openshift-ci openshift-ci bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Feb 12, 2024
@baude
Copy link
Member Author

baude commented Feb 13, 2024

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 13, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit c88c689 into containers:main Feb 13, 2024
86 checks passed
@stale-locking-app stale-locking-app bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label May 14, 2024
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators May 14, 2024
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. machine release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants