Commit Graph

34 Commits

Author SHA1 Message Date
Dr. Jens Harbott 6a15818d62
Fix auth_url setting for devstack
Keystone is dropping some variables in devstack, switch to using the
same variable for the auth_url that keystone is using instead of
trying to reconstruct it ourselves.

Signed-off-by: Dr. Jens Harbott <harbott@osism.tech>
Change-Id: I3f167b3ce699669addc5ef07c174ffb142c2c8cc
2021-10-20 07:27:33 +02:00
Radosław Piliszek 01fa27cb98 [DevStack] Use xtrace
xtrace is useful to see the progress of DevStack deployment.
It is normally enabled in DevStack but was disabled in Masakari
plugin.

Change-Id: Ib64f2c0a0fe46de9a9f3afa56079da0afbcad40b
2021-08-28 11:54:57 +00:00
Radosław Piliszek 25f64a0fdc [DevStack] Do not use the sample process list
... for the process monitor deployment.

That sample list manipulation was ugly and definitions there
did not really match the reality causing random hiccups in CI and
local DevStack deployments (mostly due to constant restarting of
instancemonitor).
Moreover, processmonitor is deprecated in Xena. [1]
The existing unit tests and the noop deployment should be enough
to keep it on the surface.

[1] https://review.opendev.org/c/openstack/masakari-monitors/+/806431

Change-Id: I1787206b1ca84b64686bfaa1d00f33dbfc2e3adb
2021-08-27 17:25:45 +00:00
Radosław Piliszek a90d5f1b5b [CI] Run bashate
... and fix related issues.

Change-Id: I3283545a8994c3895b9ccbe4006bec4b4cfc8c95
2021-03-20 14:06:57 +00:00
Radosław Piliszek 25341ce1c2 [devstack] Stop polluting masakarimonitors src dir
Copy the process_list.yaml.sample directly to the config dir.

Also, drop the processmonitor.conf which is not used.

Change-Id: I41dfe89ee351b1330a2e6333b992e654e1b41e21
2021-03-13 19:43:23 +00:00
Zuul 89dbf28e8a Merge "Simplify endpoints created by devstack plugin" 2021-02-27 20:11:57 +00:00
Rikimaru Honjo 54c726a332 Simplify endpoints created by devstack plugin
Admin endpoint and internal endpoint are not configured by default
in recent devstack. [1]

According to the above change, this patch removes these type
endpoints from masakari devstack plugin and README.rst.

[1] Ided7a65c81b3a0b56f0184847fc82e17c29a771e

Change-Id: I2b7f8e6b968cd96195eeb1f40f6de5764d65785d
2021-02-27 20:29:09 +01:00
Ghanshyam Mann 513c29078f [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Iad942530b5d540af3d3c074e9944687b93bcd7f2
2020-12-23 00:47:36 +00:00
suzhengwei 9492987c31 Use uwsgi binary from path
Change-Id: I179816a68fe10202951061d30bd543ea1427b887
2020-06-30 16:52:29 +08:00
caoyuan 50938d0636 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I3976f7c19b4813a40a800cea58d3dc8e343e4ac8
2019-08-11 15:00:14 +00:00
Ian Wienand d067deaa61 Merge "Replace openstack.org git:// URLs with https://" 2019-04-10 00:42:35 +00:00
Ian Wienand e2f9a3df2b Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I4596e5c35143c0e7757cdf2acabdd6eac98159ea
2019-03-24 20:34:10 +00:00
openstack 2e57fa0198 Add devstack support for masakari-monitors
Added devstack support to install and run below masakari-monitors
services:
1. instancemonitor
2. processmonitor
3. introspectiveinstancemonitor

Change-Id: If4c793e316f98f14748300fc0d9003faffefeea3
2019-03-22 04:41:41 +00:00
tpatil 76a9242929 Configure taskflow connection
In patch [1], a new config option `connection` is introduced
in a new section `taskflow`  to save the recovery workflow
details of the notification.

This patch configures this new config option during creation
of config files in devstack setup.

[1] : https://review.openstack.org/#/c/640798/

Change-Id: I2383aaefaeb522e1783e2769e78438410b8033f3
2019-03-09 16:28:44 +09:00
niraj singh de79cf7ffc Uninstall policy.json from openstack_dashboard correctly
During uninstalling masakari using devstack, it fails to remove
policy.json.
This patch fixes this issue by pointing to the correct path of
the policy.json file.

Change-Id: I1b9c009fe4d4305f9b7992c0c46a65ba0bac61a8
2019-01-09 08:58:25 +00:00
nirajsingh cf0d30b8c4 Added devstack support for masakari-dashboard
masakari-dashboard will be installed/uninstalled only when
masakari and horizon services are enabled.

Change-Id: I46d33b7fe1f2f4100e1403cf3f6a4ea63990147e
2018-07-31 10:45:38 +00:00
nirajsingh 3104c5f66b Fix masakari installation failure for policy.json
This patch fix the masakari installation failure issue
because of changes made for policy-in-code

Change-Id: Ie6b5ee3cc56a638f1781b7c7c179ab1b18fbdd26
2018-07-31 10:44:54 +00:00
dineshbhor 5bbd78e326 Deploy masakari-api with uwsgi
As per community goal [1], this patch allows deploying
masakari-api with uwsgi.

NOTE:
This patch takes reference from the nova implementation of deploying
nova-api with uwsgi.

[1] https://governance.openstack.org/tc/goals/pike/deploy-api-in-wsgi.html
Change-Id: I469d4b6df49ad3489722feae0b795c20a6a3913b
2018-05-25 00:35:04 -07:00
Zuul bfdaae6646 Merge "Change masakari service-type from 'ha' to 'instance-ha'" 2018-05-11 07:48:14 +00:00
ghanshyam 2395cd75f8 Remove use of unsupported TEMPEST_SERVICES variable
TEMPEST_SERVICES global variable is not supported
by devstack since long back.
- I380dd20e5ed716a0bdf92aa02c3730359b8136e4
- I9c24705e494689f09a885eb0a640efd50db33fcf

Service availability of tempest known services will be
set by devstack with local check.
- I02be777bf93143d946ccbb8e9eff637bfd1928d4

masakari does not have tempest plugin so it does
not need to have service register in tempest.

This commit removes the TEMPEST_SERVICES setting.

Change-Id: I30673a3d739e013caec2b8d4a2295d71ab40e491
Related-Bug: #1743688
2018-01-23 16:40:03 +03:00
dineshbhor 5b2c7fe47b Change masakari service-type from 'ha' to 'instance-ha'
According to the discussion [1] on ML and the patch [2], masakari
service-type should be replaced with 'instance-ha' from
'ha'.

This patch fixes this service-type.

[1]http://lists.openstack.org/pipermail/openstack-dev/2018-January/126314.html
[2] https://review.openstack.org/#/c/534875/

Change-Id: Id8d9d82ffda0062b1f288561b12657ea1740ddf1
2018-01-21 21:11:06 -08:00
Dinesh Bhor 57bbe7dead Fix devstack installation of masakari
Recently a commit: 188173a807 got
merged into masakari which replaces a rpc method 'get_transport'
with 'get_rpc_transport'. The 'get_rpc_transport' expects the
oslo.messaging config option 'transport_url' [1] to be present in
the [DEFAULT] section of masakari.conf. The current masakari devstack
script doesn't add 'transport_url' in masakari.conf which results
into failure of devstack installation of masakari.

This patch fixes this issue by using an inbuilt devstack function
'iniset_rpc_backend' to add the 'transport_url' config option in
masakari.conf.

[1] * https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/transport.py#L44
    * https://github.com/openstack/oslo.messaging/blob/master/oslo_messaging/transport.py#L201

Closes-Bug: #1728544
Change-Id: I75da054c6669aa90dd96c3ede3ae98de74275de2
2017-11-14 04:31:47 +00:00
Abhishek Kekane 26f00f4ad7 Add ssl support for masakari plugin
To enable ssl support for masakari using devstack just
mention 'ENABLED_SERVICES+=,tls-proxy' in local.conf
file.

Change-Id: Ia65d20083c8740d7dbbc38600ffd7de06cf08010
2017-09-29 12:22:21 +05:30
Takahiro Izumi a61af823be Fix identity_admin
Remove the use of identity admin endpoint.

The following patch removed the use of identity admin endpoint from devstack.
Try to remove /identity_admin
https://review.openstack.org/#/c/458226/

So this patch removes the use of identity admin endpoint from masakari
in accordance with the above patch.

Change-Id: I809c6323b68a97095dc904c65627535083ad08cc
2017-06-06 17:24:13 +00:00
Rikimaru Honjo 171b4d271d Revert "Fix os_privileged_user_auth_url"
This reverts commit 0ce3811e02.

Change-Id: I12be4b3f33c6e49ccd62b242b4e5144b3684b3ab
2017-06-06 04:27:04 +00:00
Takahiro Izumi 0ce3811e02 Fix os_privileged_user_auth_url
Fixed os_privileged_user_auth_url "PROTOCOL://HOST/identity_admin"
to "PROTOCOL://HOST/identity".
Current devstack keystone service endpoint url is "PROTOCOL://HOST/identity".
So this patch fixes it.

Change-Id: I2700d541b8c72806e814d10d229032fabde2b38e
2017-05-18 13:05:44 +00:00
Abhishek Kekane 6db17bc33a Implement _process_unfinished_notifications periodic tasks
Added _process_unfinished_notifications to process notifications
which are in error or new state. This periodic task will execute at
regular interval defined by new config option
'process_unfinished_notifications_interval' defaults to 120 seconds.

The notifications which are in ‘new’ status will be picked up based
on a new config option ‘retry_notification_new_status_interval’ defaults
to 60 seconds.

Implements: bp add-periodic-tasks
Change-Id: I6e607d83f04618ad695a9614f84ad690b8804848
2017-02-07 15:40:56 +05:30
Abhishek Kekane becd230133 [Devstack] Fix devstack plugin compatibility
Recent devstack commit [1] broke masakari devstack plugin compatibility.
So, fix it by removing dependency on deleted env var in the same way
as it is done in devstack [2].

[1] I7c66e1d8d65f562596543ed8ca402dba8c8ea271
[2] I4e5c7e86aefe72fc21c77d423033e9b169318fec

Change-Id: Ibd4d8531fb9ac2cb3e9b0854bdd44011fc589070
Closes-Bug: #1644194
2017-01-03 11:55:13 +00:00
Abhishek Kekane 0cec25347c Add admin role for masakari user
Masakari API's are allowed to be execute by admin only. So when external
service like masakari-instancemonitor calls masakari-api using masakari
user it does not have admin role associated with it's tenant. So it
returns HTTPForbidden 403 response to masakari-instancemonitor.

Added admin role to service tenant which has masakari user associated
with.

Change-Id: I505ea56bc022aad086f1090ff25b59ec85b70c41
2016-11-18 15:46:25 +05:30
dineshbhor 1fe507297c Fix invalid port reference in devstack settings
Instead of MASAKARI_SERVICE_PORT there was a reference of
MANILA_SERVICE_PORT.

TrivialFix

Change-Id: I74e5f185c79cdc26ffc603d3721930d24823c3ae
2016-11-14 16:57:40 +05:30
dineshbhor 484da30293 Add nova support in masakari
This patch allows masakari to communicate with nova using
novaclient.

Change-Id: Ia7a2c8e91811500301d5cc44dfebc9f7ca2026e9
2016-11-04 15:39:21 +05:30
hussainchachuliya e08c97fcef Remove unused method
Removed is_masakari_enabled method as it is not used anywhere
in the plugin.

TrivialFix

Change-Id: I27ec97631ebb39f0268b49368966010c4f1c4ca3
2016-10-06 11:39:08 +05:30
Abhishek Kekane 6dd3dd0e26 Enable masakari-engine in devstack
Added support to install masakari-engine service using
devstack plugin.

Change-Id: Id0fedd3483ea88f3c95d766e4444094dd6f2c3db
2016-10-05 15:37:43 +05:30
Abhishek Kekane 3799e9bc28 Add devstack plugin
Devstack plugin for masakari in masakari source tree.

Co-Authored-By: Dinesh Bhor <dinesh.bhor@nttdata.com>
Change-Id: Iae1da53cd7bd63872aa6492021c6d9c610e61d01
2016-08-16 11:55:07 +05:30