Project

General

Profile

Bug #48471

Cephadm fails to update repo if gnupg is present

Added by Stephen Longofono over 3 years ago. Updated over 2 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
cephadm
Target version:
% Done:

0%

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

Description

Probably related to https://tracker.ceph.com/issues/45009.

If gnupg is installed on the bootstrap node, running cephadm to add and update the repository will complete successfully but silently fail to add the repository to apt sources.

Downloading the repo key manually illustrates the problem (on a fresh install of Ubuntu 18.04 server):

$>  wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key add -
OK
W: The key(s) in the keyring /etc/apt/trusted.gpg.d/ceph.release.gpg are ignored as the file has an unsupported filetype.

$> sudo ./cephadm install
Installing packages ['cephadm']...
Non-zero exit code 100 from apt install -y cephadm
Reading package lists...
Building dependency tree...
Reading state information...

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

E: Unable to locate package cephadm
Traceback (most recent call last):
  File "/home/blue/cephadm", line 6040, in <module>
    r = args.func()
  File "/home/blue/cephadm", line 4912, in command_install
    pkg.install(args.packages)
  File "/home/blue/cephadm", line 4629, in install
    call_throws(['apt', 'install', '-y'] + ls)
  File "/home/blue/cephadm", line 1037, in call_throws
    raise RuntimeError('Failed command: %s' % ' '.join(command))
RuntimeError: Failed command: apt install -y cephadm

This is resolved by removing gnupg from the bootstrap host, but this should be stated somewhere in the installation instructions if this won't be fixed.

History

#1 Updated by Sebastian Wagner about 3 years ago

  • Tags changed from cephadm,documentation to low-hanging-fruit

#2 Updated by Sebastian Wagner over 2 years ago

  • Status changed from New to Can't reproduce

Also available in: Atom PDF