Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: Ifd0d1b8aa419e39361e76a4f846cb4eeaf0d46ca
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Add 'os-resetState' validation when reset checkpoint state,
This patch will optimize parameter verification.
Change-Id: Id31955dbb44694790bb2192eeb247792c9e295f1
Now when doing checkpoint copy failed, checkpoint
will be wait_copying status forever, and so we can
not do the restore anymore. So we should add an API
to support checkpoint status reset if we deeply knows
that the checkpoint is ok. This patch added API
support for doing checkpoint state reset.
Implements: bp checkpoint-status-reset
Change-Id: Iabaa98c9900fba554be2ad0833d438901e01147a
Leverage oslo.policy to register default policies in the
code. Administrator only need to update the specified
policy in the config file.
Change-Id: I8ec94b4a3e34257031af3eb7607806b66c6b832e
Partial-Implements: blueprint policy-in-code
1) When the user call the create checkpoint API, the user need provide
a parameter provider_id, but the provider_id in checkpoint is not
checked with the value in plan.
Now the parameter provider_id of checkpoint is not same as the value
in plan, but the checkpoint also can be created.
2)The property `management_url` of novaclient is deprecated for
SessionClient. Use `endpoint_override` instead.
Change-Id: I2642af71e875500e125a85c9d32b2828f194b775
Closes-Bug: #1657636