Currently, noauth2 auth_strategy is not supported. If you specify
[DEFAULT]auth_strategy=noauth2 in `/etc/masakari/ masakari.conf`
and start the masakari api service, it gives ImportError.
Added NoAuthMiddleware to support noauth2 auth_strategy.
Closes-Bug: #1836354
Change-Id: I288cd5838b09d3e6c31b6408fff85e6bb5f529a6
1) oslo.config should not in conf
2) namespace masakari.api and masakari.engine not exist in entry_point
Change-Id: Iad749cd8467f67a1aef64fb35a654ce221b172b4
This change adds hooks for pulling in plugins for
Interoperable recovery method customization taksflow
by configuring the actions in terms of execution order,
extra parameters to execute commands in action.
Implements: blueprint recovery-method-customization
Change-Id: I8150935ce0a4e592bd0f87bb3c7b3e599cefa033
Adds below things for the implementation of framework for registering and
using default policy rules.
* Policy-in-code
The framework for registering and using default policy rules.
Rules should be defined and returned from a module in
masakari/policies/, and then added to the list in masakari/policies/__init__.py.
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.
* Add policy sample generation
The entry point and config file necessary for using the
oslo.policy sample generation script. It also adds a tox target to
simplify the usage of it.
* Add policy documentation and sample file
Documentation and sample file for default policy in code feature.
* Hacking check for policy registration
It ensures that policy registration happens in the centralized
masakari/policies/ directory.
* Hacking check for _ENFORCER.enforce()
Hacking check in order to ensure that only registered policies
are used for authorization checks _ENFORCER.authorize should be used rather
than _ENFORCER.enforce.
* Add entry_point for oslo policy scripts
There are two helper scripts in oslo.policy to help deployers understand
their policy configuration better. With the setup.cfg entry these can be
called directly from oslo.policy.
Changes done here are with the reference of [1] at NOVA side
which is contributed by Andrew Laski and Claudiu Belu
[1] https://review.openstack.org/#/q/topic:bp/policy-in-code+project:openstack/nova+status:merged
Change-Id: If885a66d92c31be440d27d6780635800a0b12e3e
This patch removes a sample file of masakari.conf.
Because masakari configuration file can be generated by
"tox -egenconfig" command now.
This is a trivial fix.
Change-Id: Iec4c147fbc048ab46f3366847c3df977ee0c234a
Added missing namespaces including oslo.messaging for configuring
messaging server, oslo.service.service for specifying graceful
shutdown timeout, oslo.db.concurrency for enabling thread pooling
for all DB API calls, oslo.config to configure config directory,
oslo.service.wsgi for wsgi config options and oslo.versionedobjects
for versioned objects related config options.
Change-Id: I9dcc094090b10a65ebbe55ab2d7fdbf2fb0b129f
Since the masakari APIs are intended to be used only by admin user,
therefore, the default policy in policy.json is changed from
"rule:admin_or_owner" to "default": "rule:admin_api".
Closes-bug: #1640384
Change-Id: I3cbbc4352d09fe701f2b3e86a8168dc6a40c331e
Added business rules:
Ignore notification if host is on maintenance.
Ignore notification if it is duplicate.
Change-Id: I963ab41e79db74d2574731201ea6df5e2675d449
This patch will add following notification apis:
1] GET /v1/notifications
2] GET /v1/notifications/<notification_uuid>
3] POST /v1/notifications
Change-Id: Id2d2b8ba5c372b21a5b0df4f1e4db9054e55831f
Host controller will allow user to do CRUD operations on hosts.
Added authorize policy for host controller methods as these are
going to be called by admin only.
Change-Id: I9871d4163d13bddfa49e6ee5f532de641711c30e
This patch will allow masakari operators to hit following apis:
1] GET /v1/segments
2] GET /v1/segments/<segment_uuid>
3] POST /v1/segments
4] PUT /v1/segments/<segment_uuid>
5] DELETE /v1/segments/<segment_uuid>
Change-Id: I63b48bfa70db7bfacec1c8431fe48feb7aa4c7ef
oslo_config provide a utility for generating sample config files,
which provide more detail about opts, like Minimum/Maximum value
and Allowed values.
After this patch, new config options of masakari code should register
with masakari/conf/opts.py.
Change-Id: I8f2f7e87268498ebee7ca164db1c98ef43c279b0
Added wsgi framework support to create masakari-api
service using oslo_service framework. Similar to core
openstack projects, config items will be kept at centralized
location.
Refer README.rst to cofigure and run masakari-api service.
Change-Id: Idb0120b8cf3b10642c51b286d82cd0944cad5ca3