Actions
Bug #49032
closedcephadm: prepare-host fails after podman install on ubuntu
% Done:
0%
Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
cephadm prepare-host will install podman, but then later fail to detect the installation of podman
root@ubuntu:/home/ubuntu# ./cephadm prepare-host Verifying podman|docker is present... Unable to locate any of ['podman', 'docker'] Setting up repo for podman... Installing repo GPG key from https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04//Release.key... Installing repo file at /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list... Attempting podman install... Installing packages ['podman']... Verifying lvm2 is present... Verifying time synchronization is in place... Unit systemd-timesyncd.service is enabled and running Repeating the final host check... systemctl is present lvcreate is present Unit systemd-timesyncd.service is enabled and running ERROR: Unable to locate any of ['podman', 'docker']
and running a check-host shows after the prepare-host failure claims podman is actually installed:
root@ubuntu:/home/ubuntu# ./cephadm check-host podman|docker (/usr/bin/podman) is present systemctl is present lvcreate is present Unit systemd-timesyncd.service is enabled and running Host looks OK
Updated by Michael Fritch over 3 years ago
root cause is using the apt binary for install/update of packages when we should use the lower level apt-get instead:
apt: stderr WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Updated by Michael Fritch over 3 years ago
- Status changed from New to Fix Under Review
Updated by Kefu Chai over 3 years ago
- Status changed from Fix Under Review to Resolved
Actions