Skip to content

varlink endpoint for containerstats requires root#3753

Merged
openshift-merge-robot merged 1 commit into
containers:masterfrom
baude:varlinkrequiresroot
Aug 12, 2019
Merged

varlink endpoint for containerstats requires root#3753
openshift-merge-robot merged 1 commit into
containers:masterfrom
baude:varlinkrequiresroot

Conversation

@baude
Copy link
Copy Markdown
Member

@baude baude commented Aug 7, 2019

obtaining containerstats requires the use of cgroups. at present,
rootless users do not have privileges to create cgroups. add an error
message that catches this for the varlink endpoint and return a proper
error.

Fixes: #3749

Signed-off-by: baude bbaude@redhat.com

@openshift-ci-robot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: baude

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 Aug 7, 2019
@baude baude force-pushed the varlinkrequiresroot branch from 1fe7009 to d6eae67 Compare August 7, 2019 14:57
Comment thread pkg/varlinkapi/containers.go Outdated
Comment thread API.md Outdated
Comment thread API.md Outdated
Comment thread cmd/podman/varlink/io.podman.varlink Outdated
@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Aug 8, 2019

Make it work with cgroupsV2 check and then we can merge.
@giuseppe PTAL

@baude baude force-pushed the varlinkrequiresroot branch 2 times, most recently from 31281f5 to 0710176 Compare August 9, 2019 01:05
@baude
Copy link
Copy Markdown
Member Author

baude commented Aug 11, 2019

merge me

Comment thread pkg/varlinkapi/containers.go Outdated
@giuseppe
Copy link
Copy Markdown
Member

LGTM after fixing the issue @mheon pointed out

obtaining containerstats requires the use of cgroups. at present,
rootless users do not have privileges to create cgroups.  add an error
message that catches this for the varlink endpoint and return a proper
error.

Fixes: containers#3749

Signed-off-by: baude <bbaude@redhat.com>
@baude
Copy link
Copy Markdown
Member Author

baude commented Aug 12, 2019

fixed

@baude baude force-pushed the varlinkrequiresroot branch from 0710176 to 55cc80d Compare August 12, 2019 18:09
@rhatdan
Copy link
Copy Markdown
Member

rhatdan commented Aug 12, 2019

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 12, 2019
@openshift-merge-robot openshift-merge-robot merged commit 3cf4567 into containers:master Aug 12, 2019
@baude baude deleted the varlinkrequiresroot branch December 22, 2019 19:16
@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 25, 2023
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 25, 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.

Cannot call GetContainerStats through varlink for rootless containers

6 participants