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

[v5.0] Fix machine volumes with long path and paths with dashes #22568

Merged
merged 2 commits into from
May 3, 2024

Conversation

ashley-cui
Copy link
Member

AppleHV accepts a max 36 bytes for mount tags. Instead of using the fully qualified path for the mount tag, SHA256 the path, and truncate the shasum to 36 bytes. Also correctly escape dashes in mounted paths.

Fixes: #22226
Fixes: #22505

Does this PR introduce a user-facing change?

Fixed a bug where podman machine start would fail if the machine had a volume with a long target path. 
Fixed a bug where  podman machine mounted paths that included dashes in the wrong location.

@ashley-cui
Copy link
Member Author

Backport of #22288

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 1, 2024
Copy link

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

@Luap99
Copy link
Member

Luap99 commented May 2, 2024

@ashley-cui I think you have to apply 41145d7 here as well to get the bud tests passing

cevich and others added 2 commits May 2, 2024 09:24
This is a RHEL release-branch, with test failing for unknown reason,
not currently worth effort to debug.

Signed-off-by: Chris Evich <cevich@redhat.com>
AppleHV accepts a max 36 bytes for mount tags. Instead of using the fully qualified path for the mount tag, SHA256 the path, and truncate the shasum to 36 bytes.
Also correctly escape dashes in mounted paths.

Signed-off-by: Ashley Cui <acui@redhat.com>
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

openshift-ci bot commented May 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ashley-cui, Luap99

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

@AnasAlamin
Copy link

please merge this already :)

@ashley-cui
Copy link
Member Author

@containers/podman-maintainers PTAL and merge :)

@mheon
Copy link
Member

mheon commented May 3, 2024

LGTM

@mheon
Copy link
Member

mheon commented May 3, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 3, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit a6f64a5 into containers:v5.0 May 3, 2024
87 of 91 checks passed
@ashley-cui ashley-cui deleted the cherrypmounts branch June 17, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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. machine release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants