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

Can not run make containerized-test as rootless podman #1670

Closed
phlogistonjohn opened this issue Nov 5, 2020 · 1 comment · Fixed by #1813
Closed

Can not run make containerized-test as rootless podman #1670

phlogistonjohn opened this issue Nov 5, 2020 · 1 comment · Fixed by #1813
Assignees
Labels
bug Something isn't working component/build Issues and PRs related to compiling Ceph-CSI component/testing Additional test cases or CI work

Comments

@phlogistonjohn
Copy link
Contributor

Describe the bug

The way the container command is invoked from the cli fails with rootless podman (2.1.1).
This appears to be caused by the "CPUSET" variable in the Makefile. I do not believe regular users can make use of this option.

Environment details

  • Fedora 32 development environment

Steps to reproduce

Steps to reproduce the behavior:

  1. checkout ceph-ci master branch
  2. make containerized-tests

Error:

STEP 5: RUN source /build.env     && dnf -y install     git     make    golang  gcc       librados-devel  librbd-devel    rubygems        ShellCheck      yamllint npm       python3-prettytable       pylint     && dnf -y update     && dnf -y clean all     && gem install mdl     && curl -sf "https://install.goreleaser.com/github.com/golangci/golangci-lint.sh"        | bash -s -- -b ${GOPATH}/bin "${GOLANGCI_VERSION}"     && curl -sfL "https://raw.githubusercontent.com/securego/gosec/master/install.sh"        | sh -s -- -b $GOPATH/bin "${GOSEC_VERSION}"     && curl -L https://git.io/get_helm.sh | bash -s -- --version "${HELM_VERSION}"     && mkdir /opt/commitlint && pushd /opt/commitlint     && npm init -y     && npm install @commitlint/cli     && popd     && true
2020-11-05T18:47:52.000009928Z: opening file `cpuset.cpus` for writing: Permission denied

The output is a tad confusing because it looks like the long line of commands triggers the error, but it must just be that podman tries to access the cpuset.cpus knob right after printing that line.

Expected behavior

It would be good to not have to read the makefile source and then learn that if I unset CPUSET I can run the checks.
Perhaps the makefile should only set this option when run in particular environments (the ceph-csi CI?) or only if running as uid 0?

@nixpanic nixpanic added component/testing Additional test cases or CI work component/build Issues and PRs related to compiling Ceph-CSI bug Something isn't working labels Nov 9, 2020
@Madhu-1 Madhu-1 assigned Yuggupta27 and yati1998 and unassigned Yuggupta27 Nov 30, 2020
@nixpanic
Copy link
Member

nixpanic commented Dec 21, 2020

I am hitting this now as well. On Fedora 32 I seem to have downgraded podman to work around this (or something else), but on Fedora 33 this is (probably) not easily possible.

the requested cgroup controller `cpuset` is not available

nixpanic added a commit to nixpanic/ceph-csi that referenced this issue Dec 22, 2020
@mergify mergify bot closed this as completed in #1813 Dec 23, 2020
mergify bot pushed a commit that referenced this issue Dec 23, 2020
nixpanic added a commit to nixpanic/ceph-csi that referenced this issue Mar 2, 2021
mergify bot pushed a commit that referenced this issue Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component/build Issues and PRs related to compiling Ceph-CSI component/testing Additional test cases or CI work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants