Project

General

Profile

Actions

Bug #49032

closed

cephadm: prepare-host fails after podman install on ubuntu

Added by Michael Fritch over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
cephadm (binary)
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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
Actions #1

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.
Actions #2

Updated by Michael Fritch over 3 years ago

  • Pull request ID set to 39106
Actions #3

Updated by Michael Fritch over 3 years ago

  • Status changed from New to Fix Under Review
Actions #4

Updated by Kefu Chai over 3 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF