Project

General

Profile

Actions

Bug #56667

open

cephadm install fails: apt:stderr E: Unable to locate package cephadm

Added by Brian Woods over 1 year ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
cephadm
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

I am creating a new case as the original by another user was closed without resolution:
https://tracker.ceph.com/issues/46073

Reproduction of the issue is fairly strait forward.

Steps to re-produce on a clean install:

#Install Ubuntu 18.04.
#Patch system.

#Install docker and docker-compose
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
sudo docker run hello-world

curl --silent --remote-name --location https://github.com/ceph/ceph/raw/quincy/src/cephadm/cephadm
chmod +x cephadm
sudo ./cephadm add-repo --release quincy
sudo apt update
sudo ./cephadm install

The last command returns:

Installing packages ['cephadm']...
Non-zero exit code 100 from apt-get install -y cephadm
apt-get: stdout Reading package lists...
apt-get: stdout Building dependency tree...
apt-get: stdout Reading state information...
apt-get: stderr E: Unable to locate package cephadm
Traceback (most recent call last):
  File "./cephadm", line 9304, in <module>
    main()
  File "./cephadm", line 9292, in main
    r = ctx.func(ctx)
  File "./cephadm", line 7853, in command_install
    pkg.install(ctx.packages)
  File "./cephadm", line 7482, in install
    call_throws(self.ctx, ['apt-get', 'install', '-y'] + ls)
  File "./cephadm", line 1738, in call_throws
    raise RuntimeError(f'Failed command: {" ".join(command)}: {s}')
RuntimeError: Failed command: apt-get install -y cephadm: E: Unable to locate package cephadm

I confirmed this on a physical box that is fairly old, then a new clean box, and then a VM. All three have the same issue.

Actions #1

Updated by Brian Woods over 1 year ago

It looks like there is no bionic distro in the repo:
https://download.ceph.com/debian-quincy/dists/

Using Ubuntu's docs (Not Cephs's) it looks like 17.2 (quincy) is not supported on 18.04:
https://ubuntu.com/ceph/docs/supported-ceph-versions

Switching to octopus for the release resolved the problem. So this issue should be considered a documentation problem at a minimum.

There should be a compatibility matrix listed here:
https://docs.ceph.com/en/latest/cephadm/install/

Adding an enhancement to the installer should warning the user to the list would be good, but it would be better to have that list built in and report compatibility errors.

Thanks!

Actions #2

Updated by Patrick Donnelly over 1 year ago

  • Target version changed from v17.2.2 to v18.0.0
Actions

Also available in: Atom PDF