cinder/doc/source
imacdonn 74fd810ad1 cinder-manage online_data_migrations fixes
Addresses some issues with this command:

1) When used without the --max-count option, the summary table will
   always show zero migrations run, because it only accounts for the
   last batch, and the loop only exits when the last batch does no work.

2) "remaining" counts cannot be accurate, given the way migrations are
   implemented, because the "found" count refers to the number of rows
   that exist in the database, not the number that still need the
   migration applied.

3) In the case where no migrations are successful, but some raise
   exceptions, the command was exiting with status zero, which usually
   indicates "success". This can cause issues that cause migration
   failures to go unnoticed, especially when automated.

4) When exceptions do occur, a minimally useful message is output, and
   no detail about the exception is available to the user. The exception
   detail should be logged.

5) Inaccuracies in the documentation - "--max_number" should be
   "--max-count", and stale references to the "--ignore_state" option,
   which was removed in [1]

The solution for (3) introduces a new exit status, 2. See release note
for details.

These changes are aligned with equivalents [2][3] for the nova-manage
command, except for the calculation of "Total Needed" - nova seems to
interpret the "found" count differently/inconsistently.

[1] https://review.openstack.org/510201
[2] https://review.openstack.org/605828
[3] https://review.openstack.org/608091

Change-Id: I878480eb2359625cde839b073230844acc645cba
Closes-Bug: #1794364
Closes-Bug: #1796192
(cherry picked from commit d47486d317)
2018-10-31 19:08:45 +00:00
..
admin Merge "Fix none-ascii char in doc" 2018-08-07 18:11:42 +00:00
cli Fix indentation in docs 2018-08-02 11:44:54 +02:00
common [DOC BLD FIX] Add missing glossaries 2017-07-19 16:45:45 +08:00
configuration VMAX Rocky doc - version information 2018-10-01 14:40:00 +01:00
contributor cinder-manage online_data_migrations fixes 2018-10-31 19:08:45 +00:00
images/rpc Correct cinder dev doc typo 2017-06-06 08:54:54 +08:00
install Update auth_url value in install docs 2018-05-01 00:17:01 +08:00
man cinder-manage online_data_migrations fixes 2018-10-31 19:08:45 +00:00
reference Add sphinx-feature-classification based support matrix 2018-08-07 09:35:32 -05:00
user [Docs] Add documentation contribution docs 2017-08-10 15:52:46 -05:00
conf.py Add sphinx-feature-classification based support matrix 2018-08-07 09:35:32 -05:00
index.rst Add sphinx-feature-classification based support matrix 2018-08-07 09:35:32 -05:00
upgrade.rst cinder-manage online_data_migrations fixes 2018-10-31 19:08:45 +00:00