qemu: Always set auth_supported for Ceph disks.

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>
(cherry picked from commit ccb9478500)

(crobinso: Add Wido to AUTHORS)
This commit is contained in:
Wido den Hollander 2012-06-25 17:44:01 +02:00 committed by Cole Robinson
parent b1b449b3e2
commit ca2765a2a0
2 changed files with 3 additions and 0 deletions

View File

@ -240,6 +240,7 @@ Patches have also been contributed by:
Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Thang Pham <thang.pham@us.ibm.com>
Eiichi Tsukata <eiichi.tsukata.xh@hitachi.com>
Wido den Hollander <wido@widodh.nl>
[....send patches to get your name here....]

View File

@ -1775,6 +1775,8 @@ qemuBuildRBDString(virConnectPtr conn,
disk->auth.username);
goto error;
}
} else {
virBufferAddLit(opt, ":auth_supported=none");
}
if (disk->nhosts > 0) {