Focal fails to add repo before key

I'm not sure why this isn't failing in the gate, but locally I get
100% fail if I don't add the release key before the apt-add-
repository. This seems to be a change in focal as it worked fine
for me before upgrade.

This moves the key fetch/add before the repo.

Change-Id: I50d840986d630af033a7a3e47bb1e9c52e889791
This commit is contained in:
Dan Smith
2020-11-09 13:56:00 -08:00
parent 76496e8234
commit 75523680ce

View File

@@ -953,8 +953,8 @@ function configure_repo_ceph {
local distro_release="$3"
if is_ubuntu; then
sudo apt-add-repository -y "deb https://download.ceph.com/debian-${ceph_release}/ ${distro_release} main"
wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key add -
sudo apt-add-repository -y "deb https://download.ceph.com/debian-${ceph_release}/ ${distro_release} main"
sudo ${package_manager} -y update
elif is_fedora; then
dnf_add_repository_ceph ${ceph_release} ${distro_release}