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

[release-1.51] Backport ignore chown errors in additionalimagestore #1990

Conversation

TomSweeneyRedHat
Copy link
Member

Backports parts of #1828 and also #1784 to address:
https://issues.redhat.com/browse/ACCELFIX-244

instead of removing the "merged" directory, replace it with a fresh
empty directory so that we can assume "merged" is always present and
there is no need to recreate it.

Signed-off-by: Giuseppe Scrivano <[email protected]>
ignore errors creating and chowning the diffDiff if it is in an
additional image store.

Signed-off-by: Giuseppe Scrivano <[email protected]>
if _, err := os.Stat(mergedDir); err != nil && os.IsNotExist(err) {
if err := idtools.MkdirAs(mergedDir, 0o700, rootUID, rootGID); err != nil && !os.IsExist(err) {
return "", err
}
Copy link
Member Author

Choose a reason for hiding this comment

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

@giuseppe please eyeball this. In the picked commit, it uses dir instead of workDirBase as listed here in line 1682. I think this is OK, but would like your verification.

@TomSweeneyRedHat
Copy link
Member Author

Hold for now. If tests pass, I'll add another commit to bump the version, then work on getting a release out.

giuseppe and others added 2 commits June 27, 2024 14:47
Bump lint in the test area to 1.55.2 and then address an
append that's causing lint heartache.

Signed-off-by: tomsweeneyredhat <[email protected]>
@TomSweeneyRedHat
Copy link
Member Author

TomSweeneyRedHat commented Jun 27, 2024

@giuseppe PTAL, if it LGTY, I'll add a version bump so we can move forward with this. I'll also backport to the release-1.45 branch.

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

Copy link
Contributor

openshift-ci bot commented Jun 28, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: giuseppe, TomSweeneyRedHat

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 [TomSweeneyRedHat,giuseppe]

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

As the title says.  In preparation for
https://issues.redhat.com/browse/ACCELFIX-244

Signed-off-by: tomsweeneyredhat <[email protected]>
@TomSweeneyRedHat
Copy link
Member Author

Happy green test buttons here, and this is for a customer hot fix. Can I get a merge please?

@mheon
Copy link
Member

mheon commented Jul 11, 2024

LGTM on my end

@rhatdan
Copy link
Member

rhatdan commented Jul 11, 2024

/lgtm

@TomSweeneyRedHat
Copy link
Member Author

Given this has a couple of LGTM's and an /lgtm, I'm going to press the manual merge button.

@TomSweeneyRedHat TomSweeneyRedHat merged commit d270930 into containers:release-1.51 Jul 11, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants