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

varlink endpoint for containerstats requires root #3753

Merged
merged 1 commit into from
Aug 12, 2019

Conversation

baude
Copy link
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 [email protected]

@openshift-ci-robot
Copy link
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

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
pkg/varlinkapi/containers.go Outdated Show resolved Hide resolved
API.md Outdated Show resolved Hide resolved
API.md Outdated Show resolved Hide resolved
@rhatdan
Copy link
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
Member Author

baude commented Aug 11, 2019

merge me

pkg/varlinkapi/containers.go Outdated Show resolved Hide resolved
@giuseppe
Copy link
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 <[email protected]>
@baude
Copy link
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
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