Comment 0 for bug 1311707

Revision history for this message
Pavlo Shchelokovskyy (pshchelo) wrote : fix size property shema in volume resources

There are currently two problems with schema of size property in volume resources:

1) Size property must be required. Otherwise it is perfectly possible to write the template that omits this property and will successfully validate, but then cinder will fail as it can not create the volume with size None (the default value for non-required properties) and stack creation will fail too.

2) the type of the property should rather be INTEGER and not NUMBER. Currently it is possible to provide a rational value for the volume size, but cinder will silently round it down, which leads to inconsistency between stack properties known to heat (via self.properties and stack.t, that still hold rational number) and actual volume size reported by cinder.