nova ceph copy-on-write images doesn't work even if it's configured to
Hello,
I've a problem.
I have Openstack + ceph cluster and I'm using RAW images.
Unfortunately, only cinder volumes is copy-on-write clones. If i create nova instance its disk is flattened.
during instance creation i see(its okay i see the parent):
# rbd info compute/e9414caf-f60a-43bf-929f-45bab96550a9_disk
rbd image 'e9414caf-f60a-43bf-929f-45bab96550a9_disk':
size 2252 MB in 282 objects
order 23 (8192 kB objects)
block_name_prefix: rbd_data.3271361285c77
format: 2
features: layering, striping
flags:
parent: images/83f1ae0a-864a-4130-a4a3-0fd492cc100e@snap
overlap: 2252 MB
stripe unit: 8192 kB
stripe count: 1
when instance is already created i don't see parent image
# rbd info compute/e9414caf-f60a-43bf-929f-45bab96550a9_disk
rbd image 'e9414caf-f60a-43bf-929f-45bab96550a9_disk':
size 40960 MB in 5120 objects
order 23 (8192 kB objects)
block_name_prefix: rbd_data.3271361285c77
format: 2
features: layering, striping
flags:
stripe unit: 8192 kB
stripe count: 1
My glance-api.conf seems to be fine(pasting important lines):
show_image_direct_url = True
show_multiple_locations = True
enable_v2_api = true
Maybe someone have any idea why it isn't working or how can i debug this?
I'm not sure, but this could depend on the default image features you have configured in your ceph cluster. My nova disks are CoW, but in the info output they show the same size as the base image. But the missing parent is strange indeed. Can you paste your versions (ceph, openstack, ceph.conf)?