Commit Graph

62 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov
0d1d6cd548 Install pymemcache in devstack when needed
In case VITRAGE_COORDINATION_URL is set to memcached, we need to
ensure that all dependencies are met inside the venv.

Change-Id: I78353ccec3074a10e10dad5c6583456016d962a1
2024-01-15 12:30:21 +01:00
Eyal
34cef2f4e1 Don't install uwsgi in vitrage
* It is installed in stack.sh
* get the path to uwsgi executable from which command
it is not necessarily installed in /usr/local/bin

Depends-On: https://review.opendev.org/#/c/735592/
Change-Id: I126e210b8028bb2e63d85143f97fd24994879d69
2020-06-15 16:51:19 +03:00
Eyal
4e55695491 Use setuptools extra to install openstack stuff
Vitrage can work also in a non openstack environment
Don't install openstack stuff unless needed

Change-Id: I635d8597c103dd19ae1afd5c7d672bec4f5ff83f
2020-04-19 16:51:22 +03:00
Eyal
4a740b4a41 oslo messaging removed the blocking option
Use a threaded option with max size 1

Change-Id: I158fee200b828c4329af1b5e9cf2ef0c728ecf1d
2020-03-08 09:04:38 +02:00
Ghanshyam Mann
f628ca0055 [train][goal] Define new vitrage-dsvm-api-ipv6-only job
As part of Train community goal 'Support IPv6-Only Deployments and Testing'[1],
we need to define the integration job which deploy services
on IPv6 and perform testing to make sure service listen and communicate
over IPv6 properly.

Vitrage has legacy zuul jobs only so base zuulv3 IPv6 job 'devstack-ipv6' and
'devstack-tempest-ipv6' cannot be used and we have to copy the whole
run.yaml to set the IPv6 setting and run the IPv6 verification
script via post_test_hook.

This commit adds the new job 'vitrage-dsvm-api-ipv6-only'
run on gate and set the required IPv6 setting'.

Story: #2005477
Task: #35938

[1] https://governance.openstack.org/tc/goals/train/ipv6-support-and-testing.html

Depends-On: https://review.opendev.org/#/c/701105/
Change-Id: I343b5ad52b0c70da94d94898b9de201fffe6ce6b
2020-01-05 07:39:57 +00:00
inspurericzhang
5ade29389e Replace git.openstack.org with opendev.org
Change-Id: Ie5c8748d84de0353cba53ee5ec86d2c8f0b4eb48
2019-11-19 16:01:28 +08:00
Eyal
796d4a6295 Add Monasca datasource
Introduces Monasca datasource enabling Monasca alerts in Vitrage
Entity Graph.

Change-Id: Ib3549c404c84e549f66e6057368c3f227bfe806a
Signed-off-by: Bartosz Zurkowski <b.zurkowski@samsung.com>
2019-05-15 08:47:08 +03:00
Ivan Kolodyazhny
f296bbb942 Extend default datasources settings
Add ability to configure such datasources like:
* static (VITRAGE_USE_STATIC)
* doctor (VITRAGE_USE_DOCTOR)
* prometheus (VITRAGE_USE_PROMETHEUS)

All these datasources are disabled now by default.

Change-Id: I60b2810defbd5d2ce63a6408ed5a835efd7c6904
2019-04-07 19:14:04 +00:00
Ian Wienand
718042c61c 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: I9ff8306f34ffa9cfd524172138bc01da2aa3d3f5
2019-03-24 20:36:22 +00:00
Eyal
12f70b9ada add a new service list api
Story: 2004897
Task: 29204
Task: 29207
Depends-On: I2996afcd4f05c87847db1f9be64a362a2593f5b6
Change-Id: I494e5749adc1d3845f793a941f970a944457d992
2019-02-12 09:11:22 +02:00
Zuul
8124d1a419 Merge "Add Trove datasource" 2018-12-20 23:26:54 +00:00
Bartosz Zurkowski
149045edbc Add Trove datasource
Intorduces Trove datasource enabling Trove instances and clusters in
Vitrage Entity Graph.

Change-Id: I4c42c577216a6d1ef911c60b151f1e9fe6d729dd
Signed-off-by: Bartosz Zurkowski <b.zurkowski@samsung.com>
2018-12-20 00:15:00 +01:00
Eyal
48897a37aa use by default uwsgi on devstack
mod_wsgi is deprecated

Change-Id: Ib5becaab3fdd900b8fcc2da176b3a57105583068
2018-12-19 13:05:13 +02:00
Idan Hefetz
842f9d6cea Complete removal of vitrage-collector service.
- vitrage-graph will execute the drivers.
 - Simplify large data transfer from drivers to processor by obsoleting rpc.
 - Drivers don't need to create the complete list by taking advantage of python
   generators in order to conserve memory.
 - Lowering the total signiture of vitrage processes.
 - LockByDriver will enforce a driver does not run get_changes and get_all in parallel.

Story: 2004384
Change-Id: Ie713456b2df96e24d0b15d2362a666162bfb4300
2018-11-21 08:15:12 +00:00
Eyal
a73cde4aa7 don't call get_apache_version
its not used and was removed

Change-Id: I499bdda860c2c2dbecb4723a8175d17d63e8a352
2018-10-18 11:46:21 +03:00
Eyal
7b8cb917bf remove templates dir we don't use it any more
Depends-On: Ic8017a8f84fe0e0d3b33b08a131268c38b6784c7
Change-Id: I64b7afee3b24cf086a6c57441654027af8b9654d
2018-08-05 13:05:49 +00:00
Ivan Kolodyazhny
d1196f5bfe Add upgrade support for Vitrage
1. Devstack plugin now supports upgrade
2. Grenade job is added based on legacy dsvm job

Additional tests for resourses will be added in a following patch.

Task: #22494
Story: #2002676
Change-Id: I93cb85d66cbae9fb19a275a66a9f8dff8e935f3c
2018-06-26 17:17:16 +03:00
Eyal
dfdece542e make sure graph starts after collector on reboot
add kill mode to graph and collector

Change-Id: I5c8ab90c1d2fccd4657bde4f68b07024886509f4
2018-04-22 13:00:30 +03:00
Eyal
a182670994 stop the vitrage-ml when stopping devstack
Change-Id: I3c6ba437e95ef16faf1e7627cca4176955dc7bca
2018-04-17 10:55:44 +03:00
Idan Hefetz
d8f14571ac rpc collector
active-active Collector service, detached from vitrage-graph service,
 exposing it's methods by RPC, so to only run when needed.

Change-Id: I4a72420b5096e8483e5e99cceb16d99798c3bbe7
implements: blueprint rpc-collector
2018-03-29 08:13:43 +00:00
Eyal
0f8029d034 change kill mode for vitrage-collector
so it will kill all child processes in case of a timeout

Change-Id: I83e19450ddcb11480b8e7f4e36a4514889b1dbf9
2018-03-05 09:43:22 +02:00
Eyal
710966475f change the kill mode for vitrage-graph service
since vitrage graph creates child processes we
want to kill the children processes if systemd cannot
stop the service

Change-Id: I93a5d680fe93b929f9bc83489d7edb636205846d
2018-01-23 13:14:42 +02:00
xupeipei
ede475c7d5 Add codes of sending parsed snmp trap to datasource
since there is no snmp triggered datasource, codes
of alarm datasource processing snmp event and config file
are added in test case.

Change-Id: I9a4f0c8405f52bf9269b0056d26b31fdafdad0aa
Implements: blueprint snmp-support
Signed-off-by: xupeipei <xu.peipei1@zte.com.cn>
2018-01-17 09:47:24 +00:00
ricolin
c4f7989bf4 Avoid to overrdie entire policy file
We should not override entire policy file, this might cause error to
other services (like Tacker) who also try to override Heat policy file.

Change-Id: I349de4b5e78fd6807db646543e3ac69212f304e9
2017-12-29 15:25:19 +08:00
Eyal
3e03f500b2 heat moved to policy in code
create a policy.yaml to change the default behavior

Change-Id: I84708d64188c2fa6d8555182e024efec85edbe2c
2017-12-27 13:38:15 +02:00
Eyal
0454e6b42a fix changing the policy file of heat
heat removed the stacks global index rule
which defaults to deny everybody
vitrage needs to change it
fix it so it will replace or add the rule
instead of just replacing the old rule

Depends-On: I428d04598910edfe67e8b8deb608bcf1233d672d
Change-Id: I125f0f15aebe2a0a09dba4b18312b857ce40b6ad
2017-12-15 19:40:08 +00:00
Muhamad Najjar
c708a6784e Vitrage Persistor Service
Change-Id: I4c70157ef8380825bcef844b572b1747ce95b262
2017-11-26 11:36:12 +00:00
Eyal
3bc3706cda move the copy of templates to tests
the test templates should be used in tempest
not when creating a devstack

Change-Id: I53d550fe937d8b3f5cc4faba9117528bfc9b1a1c
2017-11-23 14:38:10 +02:00
Lance Bragstad
d3ae72dd00 Register default policies in code
This commit attempts to move default policies from a policy.json
file into oslo.policy objects. This is an effort to make policy
easier to maintain for operators and is a community-wide goal for
the Queens release.

For more information on this initiative, please see:

  https://governance.openstack.org/tc/goals/queens/policy-in-code.html

Co-authored-By: Hieu LE <hieulq@vn.fujitsu.com>
bp policy-and-docs-in-code

Change-Id: I8ce4fc45447b41930736d6fcf85e6d35cfbe9d56
2017-11-12 09:30:12 +00:00
Eyal
c8e4500fc0 enable global index
change the policy.json file to enable
to see all stacks

Change-Id: I5fd0639e8f7e3be031ca5ecb729d06a1b44487d2
2017-11-05 16:07:22 +02:00
Idan Hefetz
cce475a8be sqlalchemy initial commit
Change-Id: Id3204c78b00852f6e628066de3ca46631ff84fc4
2017-09-18 12:29:59 +00:00
Eyal
1b4f6d25fa add dependency for systemd services
vitrage-graph and vitrage-collector are depended on each other

Change-Id: Ife82127bc633e2c0ab6d908d4e2dfd9e13cc9e77
2017-09-12 07:16:31 +00:00
Eyal
cf966fd5a6 Clean up screen and tail_log references
devstack has removed screen completely in
I8c27182f60b0f5310b3a8bf5feb02beb7ffbb26a. This patch cleans up any
remaining references to screen from the Vitrage devstack plugin.

Change-Id: I7a46c38cd8e8c179ae49a91a49c95d4e2d69353f
2017-09-10 18:23:19 +03:00
Ifat Afek
43f7ea634c Tempest test for Vitrage integration with Mistral
Change-Id: I0021442ce0b426282fc22e4af39dcb001a45e7e0
Depends-On: Ie892482f1dede7487fbd690aff85febb17d17462
Implements: blueprint integration-with-mistral
2017-08-13 07:31:12 +00:00
Anna
0b506a745d adding machine learning service
at this first step, the service includes one
plugin,this plugin use jaccard correlation
in order to measure correlation between a
pair of alarms.
once in configured amount of alarms this
service generates a report and saves it to
configured directory.

Change-Id: I2428dcf05365e6b68fb0e86ccd82554c82b94c2f
2017-08-08 08:58:09 +00:00
Eyal
17ee70a82f support uwsgi in devstack
This change allows to use uwsgi as web server.

Change-Id: Ib3a22e10c6f95ce387575ea5eeea0d97d6bfac1d
2017-06-28 17:06:35 +03:00
Alexey Weyl
bdfa317e09 create collector service
Change-Id: Ic9f84132a41aac3215725208c3ea7fa5cb905cc6
2017-06-20 09:25:09 +00:00
danoffek
4d7f6753d6 no more mocks
Change-Id: I001112faa4f8d7a8ba44cb719950f407af8d0d26
2017-01-31 12:36:40 +00:00
Jenkins
a53859c6f9 Merge "update the clean stage to clean all config data" 2017-01-10 16:05:59 +00:00
Alexey Weyl
fcd49f8078 change vitrage.conf to work with username vitrage instead of admin
Change-Id: I020ced73b01690554cebff6599857d8eb2cee726
2016-12-15 14:37:18 +02:00
Eyal
70d9ab83c5 update the clean stage to clean all config data
Change-Id: Ifacf3c711757e363ddce088fe96fcedba4be700f
2016-11-24 10:06:05 +02:00
Alexey Weyl
34091c20d9 heat tempests
Change-Id: I63830b715ea8fc9255db4d604ebf75d22eb00b7e
2016-08-28 19:30:48 +03:00
Eyal
a46df5719c remove the verbose configuration
* This option is deprecated in Mitaka and has been removed in Newton
  ref: https://review.openstack.org/#/c/314573/

Change-Id: Ia6d0b5f4db8139133dab8fea86d5889fbe39a05c
2016-05-22 18:45:24 +03:00
Eyal
3f5edb97d3 test only topology
change to admin password

Change-Id: Ibd8ad984d017991f9422952f76613f254a3b44ac
2016-05-05 16:29:30 +03:00
Eyal
25eb803150 fix bug in disable datasource
Change-Id: I87e867ff3f49f5adeb415ad757b312a1fa02d919
2016-04-25 10:32:25 +03:00
Eyal
85bd7d556c fix datsource parameter
Change-Id: Ie5ac1c83ed5c595ed9ddaff256d01067a2b5a3d7
2016-04-12 17:27:25 +03:00
Alexey Weyl
623b01cc70 change normalized state to normalized value
Change-Id: I795995d57234a79935286c37393fd6a48b555bcf
2016-04-11 14:27:38 +03:00
Eyal
2b983dc4b9 disable nagios datasource if not installed
Change-Id: Id1839379425dd5972327c47ad0b7569a27764c09
2016-04-10 13:48:40 +03:00
liathartal
f6d367b693 rename refactor - replace 'synchronizer' and 'plugin' to 'datasource' and 'driver'
Change-Id: I582bb6d1ab42c7dd9f38956bc043d09c04edbf88
2016-04-06 13:26:46 +00:00
Eyal
b4b8c981e1 add port plugin
Change-Id: I99e8c5e1434cebcac9491a6495cffd075e7c8a44
2016-04-06 14:14:45 +03:00