Bug 1314099 - virsh requires secret key and mon ip for rbd disk for ceph client
Summary: virsh requires secret key and mon ip for rbd disk for ceph client
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Peter Krempa
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-02 23:04 UTC by Vasu Kulkarni
Modified: 2016-03-24 13:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-24 13:22:39 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Vasu Kulkarni 2016-03-02 23:04:25 UTC
Description of problem:

when defining a RBD disk option using virsh one needs to add monitor_ip and secret key, this option is not required when starting the vm using qemu-kvm cli on ceph client, Also sometimes mon ip's can change, I believe this option should be simplified and one should just provide the rbd disk image name in case of ceph clients.

<disk type='network' device='disk'>
        <source protocol='rbd' name='libvirt-pool/new-libvirt-image'>
                <host name='{monitor-host}' port='6789'/>
        </source>
        <target dev='vda' bus='virtio'/>
</disk>

</source>
<auth username='libvirt'>
        <secret type='ceph' uuid='9ec59067-fdbc-a6c0-03ff-df165c0587b8'/>
</auth>
<target ...

Version-Release number of selected component (if applicable):
1.2.17

How reproducible:
n/a

Comment 2 Peter Krempa 2016-03-24 13:22:39 UTC
I think that would not be a desired thing to do.

Allowing to use the defaults for ceph that are taken from the system-wide config file will make configurations unstable when the config file changes or the machines are migrated to a different host with a different config. Keeping the data in libvirt enforces that the configuration of a VM is stable in regard to external influence.

I'm closing this as WONTFIX.


Note You need to log in before you can comment on or make changes to this bug.