Set image features to supported values
This commit is contained in:
parent
51256b4f0f
commit
ddedb1a992
|
@ -484,8 +484,7 @@ def add_volume(zk_conn, logger, pool, name, size):
|
||||||
try:
|
try:
|
||||||
# Create the volume
|
# Create the volume
|
||||||
sizeMiB = int(size) * 1024
|
sizeMiB = int(size) * 1024
|
||||||
print(sizeMiB)
|
retcode, stdout, stderr = common.run_os_command('rbd create --size {} --image-feature layering,exclusive-lock {}/{}'.format(sizeMiB, pool, name))
|
||||||
retcode, stdout, stderr = common.run_os_command('rbd create --size {} {}/{}'.format(sizeMiB, pool, name))
|
|
||||||
if retcode:
|
if retcode:
|
||||||
print('rbd create')
|
print('rbd create')
|
||||||
print(stdout)
|
print(stdout)
|
||||||
|
|
Loading…
Reference in New Issue