142 Commits

Author SHA1 Message Date
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
Zuul
db5b77b7eb Merge "use by default uwsgi on devstack" 2018-12-20 11:43:34 +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
Ifat Afek
832522c292 Use Nova versioned notifications by default
Changed the behavior of the Nova instance datasource to use by
default the versioned notifications.

Change-Id: Ife5c78c6568939f919174b5072fd70f461de0bd1
Story: 2004052
Task: 28501
2018-12-13 16:33:54 +00:00
Ifat Afek
ed9f7d86f3 Remove the static physical datasource
The static physical datasource was deprecated in Queens and removed in
Stein. Please use the static datasource instead.

Story: 2003172
Task: 23316

Depends-On: Ib20c4f2811cd1e1ebd100a67aa747268f6443a81
Change-Id: Id8e4de401c0bde8b06dba647fec7b1236b18ccc2
2018-12-10 09:36:39 +00: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
Anna Reznikov
2531c72a3f dont add vitrage_resource_project_id if None
Depends-On: Idb2ce0aef7a051ce2d2bd60a6c5ec5628e5a009b
Change-Id: Id8f1d77802c0071df778f4a9b7fb0a25c473cf9c
2018-08-13 13:17:33 +00:00
Zuul
92bc004554 Merge "remove templates dir we don't use it any more" 2018-08-07 14:36:06 +00:00
Muhamad Najjar
05fdd3c812 adding prometheus to VITRAGE_DEFAULT_DATASOURCES in devstack
Depends-On: I58db8be1997a2e4302074b0a81974af2b5a47f60
Change-Id: Ifc37d93596f412c778d9aa882738130faaade269
2018-08-05 16:40:59 +00: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
Muhamad Najjar
034a597c9f Adjust Vitrage api to support Prometheus datasource
This includes adding support to basic mode auth along side to keystone auth.

documentation commits coming after

Change-Id: If99fd31dae55b30f199f261adb6a6de933857ad2
2018-07-31 08:32:12 +00:00
Idan Hefetz
09a7f43927 remove enable_persistency from configuration.
Persistency wont be optional.
This parameter was not used so far thus is simply removed, without deprecating it.

Change-Id: I44baad84429c552b87364fa6659ca2ee193bef58
2018-07-25 08:01:49 +00:00
Idan Hefetz
fb4088c32c Graph fast fail-over
* Initialize quickly upon fail-over without requesting updates.
* In case of downtime, Vitrage-graph startup will requests collector updates
* vitrage-persistor has an expirer timer to remove old db events

Story: 2002663
Task: 22473
Change-Id: Icccf230e69c41a2f115c0797e60df774db637594
Depends-On: I042665e0d642ba36a97af84a6dc0581888025207
Depends-On: Id5dbd165a1e0220e4e24207e8d237f94415fc490
2018-07-24 10:57:42 +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
Idan Hefetz
b73d66e166 Add a new tempest job with a mock datasource
In this tempest job, the mock datasource is used to create an entity
graph with ~20,000 vertices. This job will contain tests for
init procedure, processes, restarts, multiple api calls.

Other data sources are disabled. Heat, Telemetry, Mistral
are not installed.

Depends-On: I9c4c329983bbe5930de5484fa6932b318746ed5c
Depends-On: Ice708f4aaf6132e4e8a7ae6352112f8b563b95b8

Change-Id: I6fd5c70efa6f722461d36c1cd1aa94352e6e4596
2018-06-07 10:57:57 +00: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
Zuul
ff74d05612 Merge "move post test script" 2018-03-08 15:21:41 +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
Zuul
5f5f11089d Merge "undo the removal of persistency tables" 2018-02-28 08:30:59 +00:00
Idan Hefetz
a22833206a undo the removal of persistency tables
Change-Id: I9fa1fd7a2edc4a475ec63f7cecc9d8bc980b2f32
2018-02-25 07:51:07 +00:00
Eyal
a6d1d4888d move post test script
the appropriate place for this script should be in vitrage-tempest-plugin
not in vitrage project

Change-Id: I1882a25319a57d7584093a9ecf3a4cb25930a060
Depends-On: I1a3653a9978b0699cbc4315f0d484ce14c062abb
2018-02-25 09:07:37 +02:00
Eyal
3d37a3ea66 move to stestr
testr is not maintained any more

Depends-On: I574414aba16377cc550111b9bcd627c28f04fc49
Change-Id: Ibea81c6583300074cfed3c1fa7fb98e2d1dc90fc
2018-02-22 15:03:26 +00:00
Eyal
0ed2676b86 remove pre_test
we are not using it

Change-Id: Iadb29c0911c7e7d9c2fab037ae5c884090f23ac8
2018-02-12 13:52:55 +02:00
Eyal
61d3428c5c tempest cleanup
make sure vitrage installed last
remove duplication

Change-Id: I3d09206b6467f86ad49eed692043364185378a84
2018-02-12 11:39:01 +02:00
Eyal
cea206a982 tempest cleanup
Change-Id: I6f66b696651ae5acc6e790c4871101429c794733
2018-02-11 15:54:30 +02:00
Eyal
bcd91511ca remove tempest.conf and other cleanup
tempest.conf we don't use it
enable plugin enables all the relevant services
should be enough

Change-Id: I0fe5e658325bf52770ca7e457fc3c5b933fbaae5
2018-02-11 13:45:24 +02:00
Zuul
642b588ce3 Merge "remove persistency tables from db" 2018-02-07 18:05:58 +00:00
Idan Hefetz
5b2a6354a6 remove persistency tables from db
this feature is not completed

Depends-On: I971bcca223dd1e2e8c78ebe03b582d7cc8eee976
Change-Id: I5d2a78332a54ee892d37f2cca062dc461c0b17f9
2018-02-07 12:41:10 +00:00
Eyal
c530025e24 remove vitrage-dashboard in gate
we don't need the vitrage-dashboard
when running tempest in gate

Change-Id: I3afff293a34ddfc62e8ddf46c8adaf8de4baf7dd
2018-02-05 13:29:19 +02:00
idan kinory
6c98acf356 Remove legacy templates dir: /etc/vitrage/templates
Change-Id: I1deddc74c49af5e4483c7d2dfac2bf4d8c123890
Depends-On: I03b681127870adefe65f7580a8b683b62bcf7f89
2018-01-31 15:00:59 +00:00
Chandan Kumar
027bc49a03 Removed Bundled intree vitrage-tempest-plugin from vitrage project
Depends-On: I5bafa207fdfdd07f3601e924764ee93c08512bf4
Change-Id: Iab7f60a8e8fb9443597cbe0067d9411d587002d3
2018-01-25 10:53:26 +02:00
Zuul
8838ea134a Merge "Fix webhook tempests" 2018-01-25 08:50:13 +00:00
Zuul
728523a886 Merge "read heat templates file from resources dir" 2018-01-24 15:12:13 +00:00
Zuul
19db88411e Merge "Remove use of unsupported TEMPEST_SERVICES variable" 2018-01-24 14:47:49 +00:00
Eyal
1779d80919 read heat templates file from resources dir
Change-Id: I780a287afb6f4e6bfa5e02a7be618aa16e42576e
2018-01-24 12:38:40 +02:00
Eyal
a3de888adc read static file from resources dir
Change-Id: I716aa51a7161af42d9aedddbf2232f4de85a61aa
2018-01-24 10:19:05 +02:00
ghanshyam
ccb212f289 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

This commit removes the unused TEMPEST_SERVICES setting
Related-Bug: #1743688

Change-Id: Ie4e5abee05500ba5c9a9cc7408705c3940c92c7b
2018-01-23 16:21:21 +03:00
Ifat Afek
0c3151540c Fix webhook tempests
Change-Id: I2f5e462d5c05e39cb89da9dd36abf52ff296d4ac
Implements: blueprint configurable-notifications
2018-01-23 12:50:45 +00: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
Niv Oppenhaim
274c5b71bf add support for webhooks
Implements: blueprint configurable-notifications
Change-Id: I0c808c5e44f9d6092d113bb277c8ab8cf0d69716
2018-01-22 10:15:40 +00:00
idan kinory
f381a42583 support adding and deleting templates without the need to restart vitrage.
* templates are now stored in the database.
* evaluator is reloaded whenever a template is added/removed.
* supporting all types of templates (standard, equivalence, definition)
* new cli commands:
  - vitrage template add
  - vitrage template delete

Change-Id: I58abf5e034662206bd6919493c95c450c0ecdf9c
Depends-On: I07741ed100b9eb70b303567706b659d10a34b156
Implements: blueprint crud-templates
2018-01-18 15:54:52 +00:00
Zuul
caeb3b6ee6 Merge "Add codes of sending parsed snmp trap to datasource" 2018-01-17 13:20:06 +00: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
Muhamad Najjar
9c47a1178e Graph Persistor
Store/Load graph snapshots in/from database

Part from Vitrage HA and History Vision
https://docs.openstack.org/vitrage/latest/contributor/vitrage-ha-and-history-vision.html

Change-Id: I92ca74dabc22e8991c96d7f090be9978b8c93894
2018-01-14 14:34:04 +00:00