This is a patch to summarize output of sample configuration generator,
and it is necessary to add the configuration of 'oslo.log'.
Change-Id: I7bfcd5f929b3cfe8bc7236f0981c2a0cc76b4b65
Leverage oslo.policy to register default policies in the
code. Administrator only need to update the specified
policy in the config file.
Partial-Implements: blueprint policy-and-docs-in-code
Change-Id: Ie52d55eb0554b4e202143864c3bf1737797fb887
Leverage oslo.policy to register default policies in the
code. Administrator only need to update the specified
policy in the config file.
Change-Id: I049aac17063543d3c32bd193e9c81fb0da26d79f
Partial-Implements: blueprint policy-in-code
Leverage oslo.policy to register default policies in the
code. Administrator only need to update the specified
policy in the config file.
Change-Id: I713f8d944e3e206f4542fa0dcb55b3a48d033bb7
Partial-Implements: blueprint policy-in-code
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
Leverage oslo.policy to register default policies in the
code. Administrator only need to update the specified
policy in the config file.
Change-Id: I330cdede9ea5e359a262510e054c79b068500c02
Partial-Implements: blueprint policy-in-code
Leverage oslo.policy to register default policies in the
code. Administrator only need to update the specified
policy in the config file.
Change-Id: I8eb8db315766afba3e199809a7bc9041b52638cd
Partial-Implements: blueprint policy-in-code
This adds the basic framework for registering and using default policy
rules. Rules should be defined and returned from a module in
karbor/policies/, and then added to the list in
karbor/policies/__init__.py.
The sample file about default policy will be generated as yaml using
cmd 'tox -e genpolicy' in this patch.
A new context.can() method has been added for policy enforcement of
registered rules. It has the same parameters as the enforce() method
currently being used.
The patch add default policy in code for plan resource in karbor.
Partial-Implements: blueprint policy-in-code
Change-Id: I88ce31ee7cff9263055cfb51f6b5da5c333c50f2
This API is a new one. After this API is merged to karborclient.
I will submit another patch about fullstack of it.
Change-Id: Idf67d5fdc5c2c4bb960212dae4c18294109a6fbf
blueprint: operation-log-api
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
1. Add configuration option in provider configuration file to enable
or disable the provider.
2. Skip the protectable resources when get the dependent resources
failed.
Change-Id: Ie67fbacbebb887a76e57273c3dd36d1f333b615d
Closes-Bug: #1702907
It's hard to maintain karbor.conf by hand, let's switch to use
oslo-config-generator and follow OpenStack convention.
Change-Id: I0dd0a63267e14321ff723d32bd6d90db07cc5f95
This patch adds support to run karbor-api with mod-wsgi.
It provides wsgi app script files and an example Apache2
configuration file for using karbor API through mod_wsgi.
Closes-Bug: #1681500
Change-Id: I292894f59809b84dc1697767a5d3d59861faac84
Protection plugin now needs to implement methods for each operation
(protect, delete, restore). Each protection plugin is created in the
context of the flow, while each operation is created in the context of
the resource.
A protection plugin is responsible for returning an Operation class for
each operation. Such Operation class defines the behavior of the
protection plugin by implementing these optional hooks:
- on_prepare_begin hook is invoked before any hook of this resource and
dependent resources has begun
- on_prepare_finish hook is invoked after any prepare hooks of dependent
resources are complete.
- on_main hook is invoked after the resource prepare hooks are complete
- on_complete hook is invoked once the resource's main hook is
complete, and the dependent resources' on_complete hooks are complete
HeatTemplate is now created and supplied from a task instead of being
created and passed to resource tasks before the restore operation began.
Change-Id: I847eec6990b2d24a66a12542d242fbfb682272fe
Co-Authored-By: Saggi Mizrahi <saggi.mizrahi@huawei.com>
Implements: blueprint protection-plugin-is-design
For the reason that we haven't commit eisoo oracle
protection plugin, a 'Load protection plugin:
'karbor-eisoo-oracle-protection-plugin' failed.'error will occur.
To avoid this, we remove the attribute 'plugin' in eisoo.conf
temporarily.When we commit patches about protection plugin,we
will add it back.
Change-Id: Ic97e8144646608cfb1fd03c11918a89cff87b252
The service's default password in local devstack and gate devstack
should be same.
Change-Id: If9b5c24a91d33e489c02177ea60f5adbb2321320
Closes-Bug: #1635140