Skip to content

Ceph RBD Feature flag update #2650

@Jazz9

Description

@Jazz9
  • Improvement Request
    Cloudstack Ceph Integration

When use Ceph >= Jewel / KVM with Cloudstack the RBD feature codes are not the new default values.

SUMMARY

When Cloudstack creates a VM from template it manually specifies the feature set and forces layering only. If you manually clone the volume via the rbd command line tool, the expected features are retained from the parent template.

The features that I require are for these use cases:

1.Using 'rbd du' the get the real disk usage of a volume without fast-diff is very slow. We need to schedule this after hours on large images.
2.We are starting to use rbd mirroring across to our secondary DC and this requires exclusive-lock.
3.Deep flatten can not be turned on after image creation. I am not sure if I require this feature at this time.

STEPS TO REPRODUCE
ACTUAL RESULTS
Example of VM volume from template: - 

user@NAS-AUBUN-RK3-CEPH01:~# rbd info AUBUN-KVM-CLUSTER01-SSD/feeb52ec-f111-4a0d-9785-23aadd7650a5

rbd image 'feeb52ec-f111-4a0d-9785-23aadd7650a5':
        size 150 GB in 38400 objects
        order 22 (4096 kB objects)
        block_name_prefix: rbd_data.142926a5ee64
        format: 2
        features: layering
        flags:
        create_timestamp: Fri Apr 27 12:46:21 2018
        parent: AUBUN-KVM-CLUSTER01-SSD/d7dcd9e4-ed55-44ae-9a71-52c9307e53b4@cloudstack-base-snap
        overlap: 150 GB

Note the features are not the same as the parent : -

user@NAS-AUBUN-RK3-CEPH01:~# rbd info AUBUN-KVM-CLUSTER01-SSD/d7dcd9e4-ed55-44ae-9a71-52c9307e53b4
rbd image 'd7dcd9e4-ed55-44ae-9a71-52c9307e53b4':
        size 150 GB in 38400 objects
        order 22 (4096 kB objects)
        block_name_prefix: rbd_data.141d274b0dc51
        format: 2
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
        flags:
        create_timestamp: Fri Apr 27 12:37:05 2018


@wido

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions