Skip to contentSkip to conversation

Qemu fails to open RBD image when auth_supported is not set to 'none'

DISCUSSION Wido den Hollander 1 participant 4 messages Jun 25, 2012 – Jul 5, 2012

lore
Share & tools
lore
#0 lore raw

Hi,

I just tried to start a VM with libvirt with the following disk:

<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source protocol='rbd' name='rbd/8489c04f-aab8-4796-a22a-ebaa7be247a7'>

    <host name='31.25.XX.XX' port='6789'/>

</source>
<target dev='vda' bus='virtio'/>
</disk>

That fails with: "Operation not supported"

I tried qemu-img:

qemu-img info rbd:rbd/8489c04f-aab8-4796-a22a-ebaa7be247a7:mon_host=31.25.XX.XX\\:6789

Same result.

I then tried:

qemu-img info rbd:rbd/8489c04f-aab8-4796-a22a-ebaa7be247a7:mon_host=31.25.XX.XX\\:6789:auth_supported=none

And that worked :)

This host does not have a local ceph.conf, all the parameters have to come from the command line.

I know that recently auth_supported defaults to "cephx", but that now break the libvirt integration since it doesn't set auth_supported to explicitly none when no auth section is present.

Should this be something that gets fixed in librados or in libvirt?

If it's libvirt, I'll write a patch for it :)

Wido

#1 lore raw
Quoted 29 lines · Wido den Hollander

Hi,

I just tried to start a VM with libvirt with the following disk:

<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source protocol='rbd' name='rbd/8489c04f-aab8-4796-a22a-ebaa7be247a7'>

     <host name='31.25.XX.XX' port='6789'/>

</source>
<target dev='vda' bus='virtio'/>
</disk>

That fails with: "Operation not supported"

I tried qemu-img:

qemu-img info rbd:rbd/8489c04f-aab8-4796-a22a-ebaa7be247a7:mon_host=31.25.XX.XX\\:6789

Same result.

I then tried:

qemu-img info rbd:rbd/8489c04f-aab8-4796-a22a-ebaa7be247a7:mon_host=31.25.XX.XX\\:6789:auth_supported=none

And that worked :)

Quoted 8 lines

This host does not have a local ceph.conf, all the parameters have to come from the command line.

I know that recently auth_supported defaults to "cephx", but that now break the libvirt integration since it doesn't set auth_supported to explicitly none when no auth section is present.

Should this be something that gets fixed in librados or in libvirt?

Thought about it, this is something in libvirt :)

Quoted 2 lines

If it's libvirt, I'll write a patch for it :)

Just did so, very simple patch: https://www.redhat.com/archives/libvir-list/2012-June/msg01119.html

Wido

Quoted 6 lines

Wido
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 41 lines · Wido den Hollander
Quoted 31 lines · Wido den Hollander

Hi,

I just tried to start a VM with libvirt with the following disk:

<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source protocol='rbd'
name='rbd/8489c04f-aab8-4796-a22a-ebaa7be247a7'>

     <host name='31.25.XX.XX' port='6789'/>

</source>
<target dev='vda' bus='virtio'/>
</disk>

That fails with: "Operation not supported"

I tried qemu-img:

qemu-img info rbd:rbd/8489c04f-aab8-4796-a22a-ebaa7be247a7:mon_host=31.25.XX.XX\\:6789

Same result.

I then tried:

qemu-img info rbd:rbd/8489c04f-aab8-4796-a22a-ebaa7be247a7:mon_host=31.25.XX.XX\\:6789:auth_supported=none

And that worked :)

Quoted 8 lines

This host does not have a local ceph.conf, all the parameters have to come from the command line.

I know that recently auth_supported defaults to "cephx", but that now break the libvirt integration since it doesn't set auth_supported to explicitly none when no auth section is present.

Should this be something that gets fixed in librados or in libvirt?

Quoted 7 lines

Thought about it, this is something in libvirt :)

Quoted 2 lines

If it's libvirt, I'll write a patch for it :)

Just did so, very simple patch:
https://www.redhat.com/archives/libvir-list/2012-June/msg01119.html

libvirt 0.9.13 just got out. The good news is that the RBD storage pool is in this release, but the patch above did not make it in time.

We'll have to wait for 0.9.14 to get that one in.

Quoted 15 lines

Wido

Quoted 6 lines

Wido
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 48 lines · Wido den Hollander
Quoted 45 lines · Wido den Hollander
Quoted 32 lines · Wido den Hollander

Hi,

I just tried to start a VM with libvirt with the following disk:

<disk type='network' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source protocol='rbd'
name='rbd/8489c04f-aab8-4796-a22a-ebaa7be247a7'>

     <host name='31.25.XX.XX' port='6789'/>

</source>
<target dev='vda' bus='virtio'/>
</disk>

That fails with: "Operation not supported"

I tried qemu-img:

qemu-img info rbd:rbd/8489c04f-aab8-4796-a22a-ebaa7be247a7:mon_host=31.25.XX.XX\\:6789

Same result.

I then tried:

qemu-img info rbd:rbd/8489c04f-aab8-4796-a22a-ebaa7be247a7:mon_host=31.25.XX.XX\\:6789:auth_supported=none

And that worked :)

Quoted 8 lines

This host does not have a local ceph.conf, all the parameters have to come from the command line.

I know that recently auth_supported defaults to "cephx", but that now break the libvirt integration since it doesn't set auth_supported to explicitly none when no auth section is present.

Should this be something that gets fixed in librados or in libvirt?

Thought about it, this is something in libvirt :)

Quoted 1 line
Quoted 7 lines
Quoted 4 lines
Quoted 1 line

If it's libvirt, I'll write a patch for it :)

Just did so, very simple patch:
https://www.redhat.com/archives/libvir-list/2012-June/msg01119.html

libvirt 0.9.13 just got out. The good news is that the RBD storage pool is in this release, but the patch above did not make it in time.

The patch just made it into libvirt: http://libvirt.org/git/?p=libvirt.git;a=commit;h=ccb94785007d33365d49dd566e194eb0a022148d

You will need this libvirt patch if you are going to run RBD without cephx enabled

Wido

Quoted 23 lines

We'll have to wait for 0.9.14 to get that one in.

Quoted 11 lines

Wido

Quoted 6 lines

Wido
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html