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

Set log-level immediately, before rootless setup #4124

Merged
merged 1 commit into from Sep 27, 2019

Conversation

mheon
Copy link
Member

@mheon mheon commented Sep 26, 2019

If we don't do this, we print WARN level messages that we should not be printing by default.

Up one WARN message to ERROR so it still shows up by default.

Fixes: #4115
Fixes: #4012

If we don't do this, we print WARN level messages that we should
not be printing by default.

Up one WARN message to ERROR so it still shows up by default.

Fixes: containers#4115
Fixes: containers#4012

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mheon

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-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S labels Sep 26, 2019
@mheon
Copy link
Member Author

mheon commented Sep 26, 2019

@giuseppe PTAL. I think this is safe to do before rootless setup happens.

@edsantiago
Copy link
Collaborator

Tentative LGTM! I hand-built this on my f30 laptop, copied the binary over to an f31 vm, played around with it in nonroot mode. Warning messages are gone! Lots of cgroups failures, but I'm guessing that's because my build didn't have the right tags. Thanks, @mheon!

@baude
Copy link
Member

baude commented Sep 26, 2019

yeah lgtm here

@TomSweeneyRedHat
Copy link
Member

LGTM, nice catch/fix @mheon

@TomSweeneyRedHat
Copy link
Member

Happy green test buttons here too

@baude
Copy link
Member

baude commented Sep 27, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 27, 2019
@openshift-merge-robot openshift-merge-robot merged commit 92e1b66 into containers:master Sep 27, 2019
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, just an online comment

@@ -365,7 +365,7 @@ func GetConfiguredMappings() ([]idtools.IDMap, []idtools.IDMap, error) {
}
mappings, err := idtools.NewIDMappings(username, username)
if err != nil {
logrus.Warnf("cannot find mappings for user %s: %v", username, err)
logrus.Errorf("cannot find mappings for user %s: %v", username, err)
} else {
Copy link
Member

Choose a reason for hiding this comment

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

Would it be a problem for people using a single ID mapped to get always the error?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's what was happening before, so I kept it. We can swap it back if folks complain, I think.

@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 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 26, 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.

1.6 rc2, fc30, rootless: warnings about missing crun rawhide, rootless: spurious warning messages
7 participants