Skip to content

Modify container/ software to support release containers and the promotion of prerelease containers - #60755

Merged
dmick merged 9 commits into
ceph:mainfrom
dmick:wip-release-container
Dec 4, 2024
Merged

dmick merged 9 commits into
ceph:mainfrom
dmick:wip-release-container

Conversation

@dmick

@dmick dmick commented Nov 16, 2024

Copy link
Copy Markdown
Member

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)

jenkins skip ci

@dmick

dmick commented Nov 16, 2024

Copy link
Copy Markdown
Member Author

jenkins run make check

@dmick
dmick requested review from guits and zmc November 16, 2024 05:33
@dmick

dmick commented Nov 16, 2024 •

Copy link
Copy Markdown
Member Author

a thing I want to check: is there evidence of the packages having come from a 'prerelease' area left behind. I think not; I think the ceph.repo file is gone (edit: no, it wasn't, but it is now, because it's got the secret left in it, so it's removed before the end of the build), and that the package db doesn't have a trace of the path, but...I want to search more carefully. (edit: I can't find anything.)

A difference from past container releases: we will not have arch-specific containers in quay.io/ceph/ceph{amd,arm}64. I don't think this should be an issue, but we may want to ponder, and perhaps document it.

@dmick

dmick commented Nov 16, 2024

Copy link
Copy Markdown
Member Author

jenkins test make check

1 similar comment
@dmick

dmick commented Nov 16, 2024

Copy link
Copy Markdown
Member Author

jenkins test make check

Comment thread container/Containerfile Resolved
Comment thread container/make-manifest-list.py Resolved
Comment thread container/make-manifest-list.py Resolved
Comment thread container/make-manifest-list.py Resolved
Comment thread container/Containerfile Resolved
Comment thread container/Containerfile Resolved
@dmick

dmick commented Nov 21, 2024

Copy link
Copy Markdown
Member Author

I think I've gotten to everything we've discussed so far @zmc

@ktdreyer ktdreyer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I had no idea https://download.ceph.com/prerelease is a thing now. That is a lot of effort to do that.

ceph-jenkins and others added 5 commits December 3, 2024 12:32
- don't print command failure in worker; let the caller print them
  if desired (allow silent failure)
- allow for empty tags list
- look for CEPH_SHA1.  GIT_COMMIT was the sha1 of the ceph-container.git
  commit
- change default paths to prerelease
- add --dry-run to avoid final push
- rename 'HOST' to 'CONTAINER_HOST'
- Use ARCH_SPECIFIC_HOST instead of CONTAINER_HOST (which is used by podman)

Signed-off-by: Dan Mick <[email protected]>
- change repo path to prerelease
- remove image id arg for release push
- include 'v' in version name for release push

Signed-off-by: Dan Mick <[email protected]>
Used for accessing download.ceph.com

Signed-off-by: Dan Mick <[email protected]>
The promote function finds the latest image on the prerelease repo,
finds all its tags, and copies them all to the release repo.

Signed-off-by: Dan Mick <[email protected]>
@dmick
dmick force-pushed the wip-release-container branch from a4cd04f to 59a7ae6 Compare December 3, 2024 20:32
dmick added 4 commits December 3, 2024 16:38
Existing syntax was just wrong.

Signed-off-by: Dan Mick <[email protected]>
ceph.repo had creds in it for download.ceph.com/prerelease.
Remove the .repo files we construct, since they're not necessary
once the container is built (no one should be dnf'ing anything
in the container).

Signed-off-by: Dan Mick <[email protected]>
curl doesn't actually fail unless -f is used; also, add
some sh -e flags.

Signed-off-by: Dan Mick <[email protected]>
Use podman's build --secret mechanism to pass credentials for
download.ceph.com

Signed-off-by: Dan Mick <[email protected]>
@dmick
dmick force-pushed the wip-release-container branch from 59a7ae6 to 4b3c0cb Compare December 4, 2024 00:38
@dmick
dmick merged commit aff43ad into ceph:main Dec 4, 2024
@dmick
dmick deleted the wip-release-container branch December 4, 2024 06:32
@dmick

dmick commented Dec 4, 2024

Copy link
Copy Markdown
Member Author

https://tracker.ceph.com/issues/69116 opened after merge to handle backporting to prior branches

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.

4 participants