]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Always set auth_supported for Ceph disks.
authorWido den Hollander <wido@widodh.nl>
Mon, 25 Jun 2012 15:44:01 +0000 (17:44 +0200)
committerDaniel Veillard <veillard@redhat.com>
Thu, 5 Jul 2012 09:01:56 +0000 (17:01 +0800)
Recently the Ceph project defaulted auth_supported from 'none' to 'cephx'.

When no auth information was set for Ceph disks this would lead to librados defaulting to
'cephx', but there would be no additional authorization information.

We now explicitly set auth_supported to none when passing down arguments to Qemu.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
src/qemu/qemu_command.c

index 528b18935247b07b28e02a09d83d867ae71c088e..94b2919f52d52c14e364aac44fe130e9dbaf97ae 100644 (file)
@@ -1782,6 +1782,8 @@ qemuBuildRBDString(virConnectPtr conn,
                             disk->auth.username);
             goto error;
         }
+    } else {
+        virBufferAddLit(opt, ":auth_supported=none");
     }
 
     if (disk->nhosts > 0) {