Skip to content

cephadm: require podman >= 2.0.2#39007

Merged
sebastian-philipp merged 4 commits intoceph:masterfrom
mgfritch:cephadm-podman-2.0
Jan 29, 2021
Merged

cephadm: require podman >= 2.0.2#39007
sebastian-philipp merged 4 commits intoceph:masterfrom
mgfritch:cephadm-podman-2.0

Conversation

@mgfritch
Copy link
Contributor

Fixes: https://tracker.ceph.com/issues/47139
Signed-off-by: Michael Fritch mfritch@suse.com

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@mgfritch mgfritch requested a review from a team as a code owner January 21, 2021 17:53
@mgfritch
Copy link
Contributor Author

mgfritch commented Jan 21, 2021

Tested on ubuntu bionic, openSUSE tumbleweed, and CentOS 8.0.

Most cephadm commands will require podman >= 2.0:

root@ubuntu:/home/ubuntu# ./cephadm ls
ERROR: podman version 2.0.0 or later is required

check-host will also verify the version:

root@ubuntu:/home/ubuntu# ./cephadm check-host
systemctl is present
lvcreate is present
Unit systemd-timesyncd.service is enabled and running
ERROR: podman version 2.0.0 or later is required

A subsequent run of cephadm prepare-host should pull in the newer version of podman.

@github-actions
Copy link

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@smithfarm
Copy link
Contributor

In ceph.spec.in we have

Recommends:      podman

and in debian/control we have

Recommends: podman | docker.io

Would it be a good idea for this PR to change that to:

Recommends:    podman >= 2

and

Recommends: podman (>= 2) | docker.io

?

@smithfarm
Copy link
Contributor

smithfarm commented Jan 22, 2021

RATIONALE: It seems weird for the package manager to install podman as a dependency, only for cephadm to refuse to work with it because the podman version is too old.

@sebastian-philipp sebastian-philipp removed the wip-swagner-testing My Teuthology tests label Jan 22, 2021
consolidate the logic for making a container engine selection

Signed-off-by: Michael Fritch <mfritch@suse.com>
Fixes: https://tracker.ceph.com/issues/47139
Signed-off-by: Michael Fritch <mfritch@suse.com>
remove technical debt related to podman < 2.0.0

Signed-off-by: Michael Fritch <mfritch@suse.com>
Signed-off-by: Michael Fritch <mfritch@suse.com>
@sebastian-philipp
Copy link
Contributor

@sebastian-philipp sebastian-philipp merged commit 46188c4 into ceph:master Jan 29, 2021
@mgfritch mgfritch deleted the cephadm-podman-2.0 branch January 29, 2021 18:08
@mgfritch mgfritch changed the title cephadm: require podman >= 2.0.0 cephadm: require podman >= 2.0.2 Apr 28, 2021
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.

4 participants