When listing checkpoints by plan with using FS bank,
it will fail with 'could not be found' error. The reason
is, in the bank, checkpoints by plan are stored as
"<bank_path>/karbor/indices/by-plan/<plan_id>/<project_id>
/<date>/<checkpoint>", but the file bank plugin only list
the <date> level, not include the checkpoint level. This
patch will fix it.
Closes-Bug: #1802815
Change-Id: I8c1356269277647490925e0181e2cd1dfca1fa4e
Add optional content parameter for checkpoint interface, so that other
checkpoint bank plugin like database bank plugin can be introduced to
Karbor.
Change-Id: I4eaad0b3fe38cb95a668b83acba39cd831bbb7df
Closes-Bug: #1745909
1. Currently, when doing image restore if the chunks num of an image
file is bigger than 10000, the restore will fail. It is because that
without 'full_listing=True', swift client can list 10000 objects at
most by default. So this should be fixed.
2. Fix a bug in image_protection_plugin when updating the chunk num
This patch fixes the above issues.
Change-Id: I40e89745c5fc0ae60ab3dc699abda4872bed08ff
Closes-Bug: #1703301
In 2 places, 'raise' was used without value, and with no exception
context, causing NoneType to be raised. Fix that by raising the correct
exception type. In list_objects, return an empty response if no objects
are found.
Change-Id: Ib7e902bd1f4d491ba0d53c6f9c85559fb7292a4c
Currently we only suppport Swift as a bank implementation. This means
that anyone that uses Karbor must also install Swift. This might be
unacceptable or over complicated for some deployments.
I suggest adding an FS based implementation. It will use files for
objects storing objects and object metadata.
Change-Id: I9093f9b28ab9b3241107ec028b12c1e2a74f7002
Implements: blueprint file-system-bank