docs: Add CloudStack documentation
PATCH 1/1 docs: Add CloudStack documentation
The basic documentation about how you can use RBD with CloudStack
--- doc/rbd/rbd-cloudstack.rst | 49 ++++++++++++++++++++++++++++++++++++++++++++ doc/rbd/rbd.rst | 2 +- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 doc/rbd/rbd-cloudstack.rst
doc/rbd/rbd-cloudstack.rst new file +49 -0
@@ -0,0 +1,49 @@ +=================== + RBD and Apache CloudStack +=================== +You can use RBD to run instances on in Apache CloudStack. + +This can be done by adding a RBD pool as Primary Storage. + +There are a couple of prerequisites: +* You need to CloudStack 4.0 or higher +* Qemu on the Hypervisor has to be compiled with RBD enabled +* The libvirt version on the Hypervisor has to be at least 0.10 with RBD enabled + +Make sure you meet this requirements before installing the CloudStack Agent on the Hypervisor(s)! + +.. important:: To use RBD with CloudStack, you must have a running Ceph cluster! + +Limitations +------------- +Running instances from RBD has a couple of limitations: + +* An additional NFS Primary Storage pool is required for running System VM's +* Snapshotting RBD volumes is not possible (at this moment) +* Only one monitor can be configured + +Add Hypervisor +------------- +Please follow the official CloudStack documentation how to do this. + +There is no special way of adding a Hypervisor when using RBD, nor is any configuration needed on the hypervisor. + +Add RBD Primary Storage +------------- +Once the hypervisor has been added, log on to the CloudStack UI. + +* Infrastructure +* Primary Storage +* "Add Primary Storage" +* Select "Protocol" RBD +* Fill in your cluster information (cephx is supported) +* Optionally add the tag 'rbd' + +Now you should be able to deploy instances on RBD. + +RBD Disk Offering +------------- +Create a special "Disk Offering" which needs to match the tag 'rbd' so you can make sure the StoragePoolAllocator +chooses the RBD pool when searching for a suiteable storage pool. + +Since there is also a NFS storage pool it's possible that instances get deployed on NFS instead of RBD.
doc/rbd/rbd.rst +1 -1
@@ -31,7 +31,7 @@ the Ceph FS filesystem, and RADOS block devices simultaneously. QEMU and RBD <qemu-rbd> libvirt <libvirt> RBD and OpenStack <rbd-openstack> - + RBD and CloudStack <rbd-cloudstack>
Signature · 1 line
1.7.9.5
Finally applied this one. Great work, Wido!
sage
Quoted 86 lines · Wido den Hollander
The basic documentation about how you can use RBD with CloudStack
Signed-off-by Wido den Hollander <[email protected]>--- doc/rbd/rbd-cloudstack.rst | 49 ++++++++++++++++++++++++++++++++++++++++++++ doc/rbd/rbd.rst | 2 +- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 doc/rbd/rbd-cloudstack.rstdoc/rbd/rbd-cloudstack.rst new file +49
-0@@ -0,0 +1,49 @@ +=================== + RBD and Apache CloudStack +=================== +You can use RBD to run instances on in Apache CloudStack. + +This can be done by adding a RBD pool as Primary Storage. + +There are a couple of prerequisites: +* You need to CloudStack 4.0 or higher +* Qemu on the Hypervisor has to be compiled with RBD enabled +* The libvirt version on the Hypervisor has to be at least 0.10 with RBD enabled + +Make sure you meet this requirements before installing the CloudStack Agent on the Hypervisor(s)! + +.. important:: To use RBD with CloudStack, you must have a running Ceph cluster! + +Limitations +------------- +Running instances from RBD has a couple of limitations: + +* An additional NFS Primary Storage pool is required for running System VM's +* Snapshotting RBD volumes is not possible (at this moment) +* Only one monitor can be configured + +Add Hypervisor +------------- +Please follow the official CloudStack documentation how to do this. + +There is no special way of adding a Hypervisor when using RBD, nor is any configuration needed on the hypervisor. + +Add RBD Primary Storage +------------- +Once the hypervisor has been added, log on to the CloudStack UI. + +* Infrastructure +* Primary Storage +* "Add Primary Storage" +* Select "Protocol" RBD +* Fill in your cluster information (cephx is supported) +* Optionally add the tag 'rbd' + +Now you should be able to deploy instances on RBD. + +RBD Disk Offering +------------- +Create a special "Disk Offering" which needs to match the tag 'rbd' so you can make sure the StoragePoolAllocator +chooses the RBD pool when searching for a suiteable storage pool. + +Since there is also a NFS storage pool it's possible that instances get deployed on NFS instead of RBD.doc/rbd/rbd.rst +1
-1@@ -31,7 +31,7 @@ the Ceph FS filesystem, and RADOS block devices simultaneously. QEMU and RBD <qemu-rbd> libvirt <libvirt> RBD and OpenStack <rbd-openstack> - + RBD and CloudStack <rbd-cloudstack>Signature · 6 lines
1.7.9.5 -- 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
I saw the limitations section references only being able to configure a single monitor. Some followup questions for someone interested in using RBD with Cloudstack 4:
Is it that you can only specify a single monitor to connect to within Cloudstack 4 (but can still have a 3 monitor configuration) ... or must you only have a single monitor for some reason?
If you have a ceph.conf on the kvm nodes with more monitors, will it pick up on the additional monitors?
Is it possible to use a "floating" ip address resource in a pacemaker configuration for the CloudStack "monitor" IP address? Is there any other way around a single-monitor point of failure?
Thanks for your hard work and any guidance you can provide!
Calvin
Quoted 94 lines · Wido den Hollander
The basic documentation about how you can use RBD with CloudStack
Signed-off-by Wido den Hollander <[email protected]>--- doc/rbd/rbd-cloudstack.rst | 49 ++++++++++++++++++++++++++++++++++++++++++++ doc/rbd/rbd.rst | 2 +- 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 doc/rbd/rbd-cloudstack.rstdoc/rbd/rbd-cloudstack.rst new file +11
-0@@ -0,0 +1,49 @@ +=================== + RBD and Apache CloudStack +=================== +You can use RBD to run instances on in Apache CloudStack. + +This can be done by adding a RBD pool as Primary Storage. + +There are a couple of prerequisites: +* You need to CloudStack 4.0 or higher +* Qemu on the Hypervisor has to be compiled with RBD enabled +* The libvirt version on the Hypervisor has to be at least 0.10 with RBDenabled
doc/rbd/rbd-cloudstack.rst new file +2
-0+ +Make sure you meet this requirements before installing the CloudStackAgent on the Hypervisor(s)!
+
+.. important:: To use RBD with CloudStack, you must have a running Ceph cluster!doc/rbd/rbd-cloudstack.rst new file +6
-0+ +Limitations +------------- +Running instances from RBD has a couple of limitations: + +* An additional NFS Primary Storage pool is required for running SystemVM's
doc/rbd/rbd-cloudstack.rst new file +8
-0+* Snapshotting RBD volumes is not possible (at this moment) +* Only one monitor can be configured + +Add Hypervisor +------------- +Please follow the official CloudStack documentation how to do this. + +There is no special way of adding a Hypervisor when using RBD, nor is anyconfiguration needed on the hypervisor.
doc/rbd/rbd-cloudstack.rst new file +17
-0+ +Add RBD Primary Storage +------------- +Once the hypervisor has been added, log on to the CloudStack UI. + +* Infrastructure +* Primary Storage +* "Add Primary Storage" +* Select "Protocol" RBD +* Fill in your cluster information (cephx is supported) +* Optionally add the tag 'rbd' + +Now you should be able to deploy instances on RBD. + +RBD Disk Offering +------------- +Create a special "Disk Offering" which needs to match the tag 'rbd' soyou can make sure the StoragePoolAllocator
doc/rbd/rbd-cloudstack.rst new file +3
-0+chooses the RBD pool when searching for a suiteable storage pool. + +Since there is also a NFS storage pool it's possible that instances getdeployed on NFS instead of RBD.
doc/rbd/rbd.rst +0
-0@@ -31,7 +31,7 @@ the Ceph FS filesystem, and RADOS block devicessimultaneously.
QEMU and RBD <qemu-rbd>
libvirt <libvirt>
RBD and OpenStack <rbd-openstack>doc/rbd/rbd.rst +1
-2- + RBD and CloudStack <rbd-cloudstack> --1.7.9.5
--
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 8 lines · Calvin Morrow
I saw the limitations section references only being able to configure a single monitor. Some followup questions for someone interested in using RBD with Cloudstack 4:
Is it that you can only specify a single monitor to connect to within Cloudstack 4 (but can still have a 3 monitor configuration) ... or must you only have a single monitor for some reason?
You can only specify one monitor in CloudStack, but your cluster can have multiple.
This is due to the internals of CloudStack. It stores storage pools in a URI format, like: rbd://admin:[email protected]/rbd
In that format there is no way of storing multiple monitors.
Quoted 3 lines
If you have a ceph.conf on the kvm nodes with more monitors, will it pick up on the additional monitors?
That is a good question, I'm not sure, but I wouldn't recommend it. It could confuse you.
With CloudStack two components are involved:
* libvirt with a storage pool
* Qemu connecting to RBD
Both could read the ceph.conf since librbd does it, but I don't know if it will pick up any additional monitors.
Quoted 4 lines
Is it possible to use a "floating" ip address resource in a pacemaker configuration for the CloudStack "monitor" IP address? Is there any other way around a single-monitor point of failure?
Your Virtual Machines will not stop functioning if that monitor dies. As soon as librbd connects it receives the full monitor map and it functions.
You won't be able to start instances or do any RBD operations as long as that monitor is down.
I don't know if you can use VRRP for a monitor, but it wouldn't put all the effort in it.
It's on my roadmap to implement RBD layering in a upcoming CloudStack release, since the whole storage layer is getting a make-over.
This should enable me to also tune caching settings per pool and probably sqeeuze in a way to use multiple monitors as well.
I'm aiming for CloudStack 4.1 or 4.2 for this to be implemented.
Quoted 2 lines
Thanks for your hard work and any guidance you can provide!
You're welcome!
Wido
Quoted 102 lines
Calvin
Quoted 90 lines · Wido den Hollander
The basic documentation about how you can use RBD with CloudStack
Signed-off-by Wido den Hollander <[email protected]>--- doc/rbd/rbd-cloudstack.rst | 49 ++++++++++++++++++++++++++++++++++++++++++++ doc/rbd/rbd.rst | 2 +- 2 files changed, 50 insertions(+), 1 deletion(-)create mode 100644
doc/rbd/rbd-cloudstack.rstdoc/rbd/rbd-cloudstack.rst new file +11
-0@@ -0,0 +1,49 @@ +=================== + RBD and Apache CloudStack +=================== +You can use RBD to run instances on in Apache CloudStack. + +This can be done by adding a RBD pool as Primary Storage. + +There are a couple of prerequisites: +* You need to CloudStack 4.0 or higher +* Qemu on the Hypervisor has to be compiled with RBD enabled +* The libvirt version on the Hypervisor has to be at least 0.10 with RBDenabled
doc/rbd/rbd-cloudstack.rst new file +2
-0+ +Make sure you meet this requirements before installing the CloudStackAgent on the Hypervisor(s)!
+
+.. important:: To use RBD with CloudStack, you must have a running Ceph cluster!doc/rbd/rbd-cloudstack.rst new file +6
-0+ +Limitations +------------- +Running instances from RBD has a couple of limitations: + +* An additional NFS Primary Storage pool is required for running SystemVM's
doc/rbd/rbd-cloudstack.rst new file +8
-0+* Snapshotting RBD volumes is not possible (at this moment) +* Only one monitor can be configured + +Add Hypervisor +------------- +Please follow the official CloudStack documentation how to do this. + +There is no special way of adding a Hypervisor when using RBD, nor is anyconfiguration needed on the hypervisor.
doc/rbd/rbd-cloudstack.rst new file +17
-0+ +Add RBD Primary Storage +------------- +Once the hypervisor has been added, log on to the CloudStack UI. + +* Infrastructure +* Primary Storage +* "Add Primary Storage" +* Select "Protocol" RBD +* Fill in your cluster information (cephx is supported) +* Optionally add the tag 'rbd' + +Now you should be able to deploy instances on RBD. + +RBD Disk Offering +------------- +Create a special "Disk Offering" which needs to match the tag 'rbd' soyou can make sure the StoragePoolAllocator
doc/rbd/rbd-cloudstack.rst new file +3
-0+chooses the RBD pool when searching for a suiteable storage pool. + +Since there is also a NFS storage pool it's possible that instances getdeployed on NFS instead of RBD.
doc/rbd/rbd.rst +0
-0@@ -31,7 +31,7 @@ the Ceph FS filesystem, and RADOS block devicessimultaneously.
QEMU and RBD <qemu-rbd>
libvirt <libvirt>
RBD and OpenStack <rbd-openstack>doc/rbd/rbd.rst +1
-2- + RBD and CloudStack <rbd-cloudstack> --1.7.9.5
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
Quoted 10 lines · Wido den Hollander
Quoted 8 lines · Calvin Morrow
I saw the limitations section references only being able to configure a single monitor. Some followup questions for someone interested in using RBD with Cloudstack 4:
Is it that you can only specify a single monitor to connect to within Cloudstack 4 (but can still have a 3 monitor configuration) ... or must you only have a single monitor for some reason?
Quoted 7 lines
You can only specify one monitor in CloudStack, but your cluster can have multiple.
This is due to the internals of CloudStack. It stores storage pools in a URI format, like: rbd://admin:[email protected]/rbd
In that format there is no way of storing multiple monitors.
What if you use a dns name with multiple A records? The ceph bits are all smart enough to populate the monitor search list with all A and AAAA records...
sage
Quoted 152 lines
Quoted 3 lines
If you have a ceph.conf on the kvm nodes with more monitors, will it pick up on the additional monitors?
That is a good question, I'm not sure, but I wouldn't recommend it. It could confuse you.
With CloudStack two components are involved:
* libvirt with a storage pool
* Qemu connecting to RBDBoth could read the ceph.conf since librbd does it, but I don't know if it will pick up any additional monitors.
Quoted 4 lines
Is it possible to use a "floating" ip address resource in a pacemaker configuration for the CloudStack "monitor" IP address? Is there any other way around a single-monitor point of failure?
Your Virtual Machines will not stop functioning if that monitor dies. As soon as librbd connects it receives the full monitor map and it functions.
You won't be able to start instances or do any RBD operations as long as that monitor is down.
I don't know if you can use VRRP for a monitor, but it wouldn't put all the effort in it.
It's on my roadmap to implement RBD layering in a upcoming CloudStack release, since the whole storage layer is getting a make-over.
This should enable me to also tune caching settings per pool and probably sqeeuze in a way to use multiple monitors as well.
I'm aiming for CloudStack 4.1 or 4.2 for this to be implemented.
Quoted 2 lines
Thanks for your hard work and any guidance you can provide!
You're welcome!
Wido
Quoted 93 lines
Calvin
Quoted 90 lines · Wido den Hollander
The basic documentation about how you can use RBD with CloudStack
Signed-off-by Wido den Hollander <[email protected]>--- doc/rbd/rbd-cloudstack.rst | 49 ++++++++++++++++++++++++++++++++++++++++++++ doc/rbd/rbd.rst | 2 +- 2 files changed, 50 insertions(+), 1 deletion(-)create mode 100644
doc/rbd/rbd-cloudstack.rstdoc/rbd/rbd-cloudstack.rst new file +11
-0@@ -0,0 +1,49 @@ +=================== + RBD and Apache CloudStack +=================== +You can use RBD to run instances on in Apache CloudStack. + +This can be done by adding a RBD pool as Primary Storage. + +There are a couple of prerequisites: +* You need to CloudStack 4.0 or higher +* Qemu on the Hypervisor has to be compiled with RBD enabled +* The libvirt version on the Hypervisor has to be at least 0.10 with RBDenabled
doc/rbd/rbd-cloudstack.rst new file +2
-0+ +Make sure you meet this requirements before installing the CloudStackAgent on the Hypervisor(s)!
+
+.. important:: To use RBD with CloudStack, you must have a running Ceph cluster!doc/rbd/rbd-cloudstack.rst new file +6
-0+ +Limitations +------------- +Running instances from RBD has a couple of limitations: + +* An additional NFS Primary Storage pool is required for running SystemVM's
doc/rbd/rbd-cloudstack.rst new file +8
-0+* Snapshotting RBD volumes is not possible (at this moment) +* Only one monitor can be configured + +Add Hypervisor +------------- +Please follow the official CloudStack documentation how to do this. + +There is no special way of adding a Hypervisor when using RBD, nor is anyconfiguration needed on the hypervisor.
doc/rbd/rbd-cloudstack.rst new file +17
-0+ +Add RBD Primary Storage +------------- +Once the hypervisor has been added, log on to the CloudStack UI. + +* Infrastructure +* Primary Storage +* "Add Primary Storage" +* Select "Protocol" RBD +* Fill in your cluster information (cephx is supported) +* Optionally add the tag 'rbd' + +Now you should be able to deploy instances on RBD. + +RBD Disk Offering +------------- +Create a special "Disk Offering" which needs to match the tag 'rbd' soyou can make sure the StoragePoolAllocator
doc/rbd/rbd-cloudstack.rst new file +3
-0+chooses the RBD pool when searching for a suiteable storage pool. + +Since there is also a NFS storage pool it's possible that instances getdeployed on NFS instead of RBD.
doc/rbd/rbd.rst +0
-0@@ -31,7 +31,7 @@ the Ceph FS filesystem, and RADOS block devicessimultaneously.
QEMU and RBD <qemu-rbd>
libvirt <libvirt>
RBD and OpenStack <rbd-openstack>doc/rbd/rbd.rst +1
-2- + RBD and CloudStack <rbd-cloudstack> --1.7.9.5
Quoted 9 lines
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--
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 5 lines · Wido den Hollander
You can only specify one monitor in CloudStack, but your cluster can have multiple.
This is due to the internals of CloudStack. It stores storage pools in a URI format, like: rbd://admin:[email protected]/rbd
You know, for a custom scheme like "rbd:", any generic URI parser has no business dictating what's allowed and what's not. Just don't use "//" and you're not forced to follow those rules.
For example, rbd:?id=admin&secret=s3kr1t&mon=1.2.3.4&mon=5.6.7.8&pool=rbd is perfectly legal.
Whether some Java library fails to implement generic URIs is another concern..
Quoted 7 lines · Tommi Virtanen
Quoted 5 lines · Wido den Hollander
You can only specify one monitor in CloudStack, but your cluster can have multiple.
This is due to the internals of CloudStack. It stores storage pools in a URI format, like: rbd://admin:[email protected]/rbd
Quoted 9 lines
You know, for a custom scheme like "rbd:", any generic URI parser has no business dictating what's allowed and what's not. Just don't use "//" and you're not forced to follow those rules.
For example, rbd:?id=admin&secret=s3kr1t&mon=1.2.3.4&mon=5.6.7.8&pool=rbd is perfectly legal.
Whether some Java library fails to implement generic URIs is another concern..
It is indeed a Java library in this case: http://docs.oracle.com/javase/6/docs/api/java/net/URI.html
But Sage's suggestion about using Round-Robin DNS seems great as well. Didn't know that was supported.
Wido
Quoted 6 lines
http://tools.ietf.org/html/rfc3986#section-3
--
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 7 lines · Wido den Hollander
Quoted 5 lines
For example, rbd:?id=admin&secret=s3kr1t&mon=1.2.3.4&mon=5.6.7.8&pool=rbd is perfectly legal.
Whether some Java library fails to implement generic URIs is another concern..
It is indeed a Java library in this case:
http://docs.oracle.com/javase/6/docs/api/java/net/URI.html
I don't see anything on that page to prevent you from doing u.getQuery() and using the fields from that (and then living with Java lack of good stdlib and using something like
http://stackoverflow.com/questions/1667278/parsing-query-strings-in-java
to actually parse the string into key=value pairs).
Or, use *exactly* what the QEmu RBD code is doing, by getting the data our of the URI with getSchemeSpecificPart -- that'll work as long as you don't start the part with a slash ("rbd:/").
I see no reason here why the rbd:poolname/devicename[@snapshotname][:option1=value1[:option2=value2...]] syntax from QEmu wouldn't work, just as is.
Quoted 6 lines · Tommi Virtanen
Quoted 5 lines · Wido den Hollander
Quoted 5 lines
For example, rbd:?id=admin&secret=s3kr1t&mon=1.2.3.4&mon=5.6.7.8&pool=rbd is perfectly legal.
Whether some Java library fails to implement generic URIs is another concern..
Quoted 9 lines
Quoted 2 lines
It is indeed a Java library in this case:
http://docs.oracle.com/javase/6/docs/api/java/net/URI.htmlI don't see anything on that page to prevent you from doing
u.getQuery()and using the fields from that (and then living with Java lack of good stdlib and using something like
http://stackoverflow.com/questions/1667278/parsing-query-strings-in-java
to actually parse the string into key=value pairs).
The main problem with that is how CloudStack internally stores the data. At the storage driver the URI doesn't arrive in plain format, it gets splitted with getHost(), getAuthUsername(), getPath() and arrives in these separate variables at the point where libvirt is being called.
Wido
Quoted 8 lines
Or, use *exactly* what the QEmu RBD code is doing, by getting the data our of the URI with getSchemeSpecificPart -- that'll work as long as you don't start the part with a slash ("rbd:/").
I see no reason here why the rbd:poolname/devicename[@snapshotname][:option1=value1[:option2=value2...]] syntax from QEmu wouldn't work, just as is.
Quoted 4 lines · Wido den Hollander
The main problem with that is how CloudStack internally stores the data. At the storage driver the URI doesn't arrive in plain format, it gets splitted with
getHost(),getAuthUsername(),getPath()and arrives in these separate variables at the point where libvirt is being called.
Perhaps they would we amenable to a pretty little patch that passes the URI all the way through?