Set image features to supported values

This commit is contained in:
Joshua Boniface 2019-06-19 15:19:36 -04:00
parent 51256b4f0f
commit ddedb1a992
1 changed files with 1 additions and 2 deletions

View File

@ -484,8 +484,7 @@ def add_volume(zk_conn, logger, pool, name, size):
try:
# Create the volume
sizeMiB = int(size) * 1024
print(sizeMiB)
retcode, stdout, stderr = common.run_os_command('rbd create --size {} {}/{}'.format(sizeMiB, pool, name))
retcode, stdout, stderr = common.run_os_command('rbd create --size {} --image-feature layering,exclusive-lock {}/{}'.format(sizeMiB, pool, name))
if retcode:
print('rbd create')
print(stdout)