all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH] drive: use the storage daemon for a tpmstate on rbd with krbd disabled
@ 2026-10-07 14:03 Davíð Steinn Geirsson
  0 siblings, 0 replies; only message in thread
From: Davíð Steinn Geirsson @ 2026-10-07 14:03 UTC (permalink / raw)
  To: pve-devel; +Cc: Davíð Steinn Geirsson

With a Ceph cluster where min-compat-client is too new for krbd, vTPM
fails if its image is stored on rbd with:

  rbd: sysfs write failed
  libceph: RADOS feature set mismatch: server's required > my supported

Fix by using the FUSE path when krbd is disabled for the storage.

Signed-off-by: Davíð Steinn Geirsson <david@dsg.is>
---
 src/PVE/QemuServer/Drive.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/PVE/QemuServer/Drive.pm b/src/PVE/QemuServer/Drive.pm
index 0b57371..d6e4b3e 100644
--- a/src/PVE/QemuServer/Drive.pm
+++ b/src/PVE/QemuServer/Drive.pm
@@ -1227,6 +1227,12 @@ sub drive_uses_qsd_fuse {
         my $path = PVE::Storage::path($storecfg, $drive->{file});
         return 1 if $path =~ m!^iscsi://!;
 
+        # The RBD plugin maps a volume with the kernel client, which may not
+        # speak the cluster's feature set; with krbd disabled, reach the
+        # volume through librbd like every other drive.
+        my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
+        return 1 if $scfg->{type} eq 'rbd' && !$scfg->{krbd};
+
         my $format = checked_volume_format($storecfg, $drive->{file});
         return $format ne 'raw';
     }
-- 
2.55.0




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-07 14:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-07 14:03 [PATCH] drive: use the storage daemon for a tpmstate on rbd with krbd disabled Davíð Steinn Geirsson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal