Conversation
DaanHoogland
left a comment
There was a problem hiding this comment.
the changes look good but they are in a 225 lines method that should be restructured to contain scheme handlers for different schemes with init and prep methods.
|
What does this add? Librados/RBD already handles this by creating a Round Robin DNS name pointing to all three IPs. There is no need to try and hack this into the URL. Redundancy can already be achieved with DNS. |
@wido libvirt also supports multiple monitors. this provides another option. |
|
|
||
| URI uri = null; | ||
| try { | ||
| if (url != null && url.startsWith("rbd://")) { |
There was a problem hiding this comment.
in case the url scheme is not case sensitive, can use:
| if (url != null && url.startsWith("rbd://")) { | |
| if (url != null && url..toLowerCase().startsWith("rbd://")) { |
(or)
| if (url != null && url.startsWith("rbd://")) { | |
| if (StringUtils.startsWithIgnoreCase(url, "rbd://")) { |
|
The PR currently only contains one commit and just a few changes. This seems incomplete to me. Where do we generate the Libvirt XML? |
@wido this does not require any other code changes in kvm plugin. |
|
closed this ticket. I do not have a ceph testing env for now. |
|
@weizhouapache I've verified this, it works but not in the syntax you've shared but: https://libvirt.org/storage.html#StorageBackendRBD DNS is good solution @wido but some people including me may like this solution. |
|
re-work on this feature and created a pull request |
Description
Types of changes
Screenshots (if appropriate):
details
How Has This Been Tested?