diff --git a/PVE/API2/Subscription.pm b/PVE/API2/Subscription.pm index 49286a05..838d1bc0 100644 --- a/PVE/API2/Subscription.pm +++ b/PVE/API2/Subscription.pm @@ -103,6 +103,9 @@ sub write_etc_subscription { $ceph_auth .= "machine enterprise.proxmox.com/debian/ceph-${ceph_release}" ." login $info->{key} password $info->{serverid}\n" } + # add a generic one to handle the case where a new ceph release was made available while + # the subscription info was not yet updated, and as per APT_AUTH.CONF(5) start-with matches. + $ceph_auth .= "machine enterprise.proxmox.com/debian/ceph login $info->{key} password $info->{serverid}\n" PVE::Tools::file_set_contents("/etc/apt/auth.conf.d/ceph.conf", $ceph_auth); } }