--Delete redundant period in the command echo.
For example:
stack@ubuntu:~$ manila shrink ec0f881e-8343-4e6c-8839-16dfe7acaec1 0
ERROR: Invalid share: Share ec0f881e-8343-4e6c-8839-16dfe7acaec1 status must in (available, shrinking_possible_data_loss_error) to shrink, but current status is: shrinking_error..
stack@ubuntu:~$ manila extend ec0f881e-8343-4e6c-8839-16dfe7acaec1 0
ERROR: Invalid share: Share ec0f881e-8343-4e6c-8839-16dfe7acaec1 status must be 'available' to extend, but current status is: shrinking_error..
stack@ubuntu:~$ manila extend ec0f881e-8343-4e6c-8839-16dfe7acaec1 1
ERROR: Invalid input received: New size for extend must be greater than current size. (current: 4, extended: 1)..
stack@ubuntu:~$ manila shrink ec0f881e-8343-4e6c-8839-16dfe7acaec1 0
ERROR: Invalid input received: New size for shrink must be less than current size and greater than 0 (current: 4, new: 0).
--In order to keep consistent with the command prompt, change 'extended' to 'new' (current: 4, extended: 1).
stack@ubuntu:~$ manila extend ec0f881e-8343-4e6c-8839-16dfe7acaec1 1
ERROR: Invalid input received: New size for extend must be greater than current size. (current: 4, extended: 1)..
stack@ubuntu:~$ manila shrink ec0f881e-8343-4e6c-8839-16dfe7acaec1 0
ERROR: Invalid input received: New size for shrink must be less than current size and greater than 0 (current: 4, new: 0).
--Delete redundant period in the command echo. 8343-4e6c- 8839-16dfe7acae c1 0 8343-4e6c- 8839-16dfe7acae c1 status must in (available, shrinking_ possible_ data_loss_ error) to shrink, but current status is: shrinking_error..
For example:
stack@ubuntu:~$ manila shrink ec0f881e-
ERROR: Invalid share: Share ec0f881e-
stack@ubuntu:~$ manila extend ec0f881e- 8343-4e6c- 8839-16dfe7acae c1 0 8343-4e6c- 8839-16dfe7acae c1 status must be 'available' to extend, but current status is: shrinking_error..
ERROR: Invalid share: Share ec0f881e-
stack@ubuntu:~$ manila extend ec0f881e- 8343-4e6c- 8839-16dfe7acae c1 1
ERROR: Invalid input received: New size for extend must be greater than current size. (current: 4, extended: 1)..
stack@ubuntu:~$ manila shrink ec0f881e- 8343-4e6c- 8839-16dfe7acae c1 0
ERROR: Invalid input received: New size for shrink must be less than current size and greater than 0 (current: 4, new: 0).
--In order to keep consistent with the command prompt, change 'extended' to 'new' (current: 4, extended: 1).
stack@ubuntu:~$ manila extend ec0f881e- 8343-4e6c- 8839-16dfe7acae c1 1
ERROR: Invalid input received: New size for extend must be greater than current size. (current: 4, extended: 1)..
stack@ubuntu:~$ manila shrink ec0f881e- 8343-4e6c- 8839-16dfe7acae c1 0
ERROR: Invalid input received: New size for shrink must be less than current size and greater than 0 (current: 4, new: 0).