Skip to contentSkip to conversation

Make Openstack work with Ceph

DISCUSSION Chu Duc Minh 4 participants 7 messages Mar 8, 2012 – Mar 9, 2012

lore
Share & tools
lore
#0 lore raw

Hi, i have built a Ceph cluster and a Openstack cluster for dev
Ceph work quite smooth, i can mount it to client, or create disk image by using rbd, qemu-img,... command. But i dont' know how to make openstack use new Ceph cluster as the default Block Device Storage. (Openstack use KVM as default hypervisor and QCOW2 as default disk image format)

Can you give me some hint to configure Openstack(libvirt/..) to make it work with Ceph, pls?

Thanks very much, folks!

#1 lore raw

Hi,

Right now there's no clean way to do this. You need few scripts to achive this. First you need to create volume, prepopulate it with image from glance and later create an instance booting from it. Scripts below are doing this task.

https://github.com/ceph/ceph-openstack-tools/blob/master/start-on-rbd.sh
https://github.com/ceph/ceph-openstack-tools/blob/master/boot-from-volume

This is good enough but I'am working on solution to implement volume imaging directly from nova-compute component. It's should be made public within 3/4 weeks.

Quoted 16 lines · Chu Duc Minh

Hi, i have built a Ceph cluster and a Openstack cluster for dev Ceph work quite smooth, i can mount it to client, or create disk image by using rbd, qemu-img,... command.
But i dont' know how to make openstack use new Ceph cluster as the default Block Device Storage.
(Openstack use KVM as default hypervisor and QCOW2 as default disk image format)

Can you give me some hint to configure Openstack(libvirt/..) to make it work with Ceph, pls?

Thanks very much, folks!
--
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

Signature · 7 lines
Tomasz Paszkowski
SS7, Asterisk, SAN, Datacenter, Cloud Computing
+48500166299
--
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

I have some problem with "boot-from-volume" script. Maybe the reason is i'm using Keystone and this script is not compatible. And I have problem with ceph-client-tools package(on Openstack cluster) because it's different with version of Ceph that i used to build Ceph-cluster. I wil rebuild next day and report result.

Thanks you for fast response!

Quoted 36 lines · Tomasz Paszkowski

Hi,

Right now there's no clean way to do this. You need few scripts to achive this. First you need to create volume, prepopulate it with image from glance and later create an instance booting from it. Scripts below are doing this task.

https://github.com/ceph/ceph-openstack-tools/blob/master/start-on-rbd.sh
https://github.com/ceph/ceph-openstack-tools/blob/master/boot-from-volume

This is good enough but I'am working on solution to implement volume imaging directly from nova-compute component. It's should be made public within 3/4 weeks.

Quoted 16 lines · Chu Duc Minh

Hi, i have built a Ceph cluster and a Openstack cluster for dev Ceph work quite smooth, i can mount it to client, or create disk image by using rbd, qemu-img,... command.
But i dont' know how to make openstack use new Ceph cluster as the default Block Device Storage.
(Openstack use KVM as default hypervisor and QCOW2 as default disk image format)

Can you give me some hint to configure Openstack(libvirt/..) to make it work with Ceph, pls?

Thanks very much, folks!
--
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 2 lines · Chu Duc Minh

I have some problem with "boot-from-volume" script. Maybe the reason is i'm using Keystone and this script is not compatible.

Did you change admin:admin and project_id to sth which is appropriate in your setup ? Script it self is compatible with keystone.

Signature · 3 lines
Tomasz Paszkowski
SS7, Asterisk, SAN, Datacenter, Cloud Computing
+48500166299
#4 lore raw
In reply to Tomasz Paszkowski
Quoted 3 lines · Tomasz Paszkowski

This is good enough but I'am working on solution to implement volume imaging directly from nova-compute component. It's should be made public within 3/4 weeks.

That sounds great! I'd be happy to review it and help get it upstream.

Josh

#5 lore raw

I, also, am watching this closely as I'd like to see it integrated into OpenStack (and thereby into PentOS).

-Mandell

Quoted 7 lines · Josh Durgin
Quoted 4 lines · Tomasz Paszkowski

This is good enough but I'am working on solution to implement volume imaging directly from nova-compute component. It's should be made public within 3/4 weeks.

Quoted 8 lines

That sounds great! I'd be happy to review it and help get it upstream.

Josh

--
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

#6 lore raw

I'll let you know when it'll be sth more than dirty hack J

Quoted 21 lines · Mandell Degerness

I, also, am watching this closely as I'd like to see it integrated into OpenStack (and thereby into PentOS).

-Mandell

Quoted 15 lines · Josh Durgin
Quoted 4 lines · Tomasz Paszkowski

This is good enough but I'am working on solution to implement volume imaging directly from nova-compute component. It's should be made public within 3/4 weeks.

That sounds great! I'd be happy to review it and help get it upstream.

Josh

--
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

Signature · 7 lines
Tomasz Paszkowski
SS7, Asterisk, SAN, Datacenter, Cloud Computing
+48500166299
--
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