osm/MON.git
5 years agoModifies MON to create database if using mysql URI 55/7255/5
Benjamin Diaz [Mon, 25 Feb 2019 20:19:23 +0000 (17:19 -0300)]
Modifies MON to create database if using mysql URI

Removes default value of config in VimCredentials as MySQL does not support
it.
Adds pymysql as dependency.

Change-Id: Idb60029e027f8abad7de4617c12bde20aa66deab
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
5 years agoAdds collection of VM status metric in OpenStack infra plugin 48/7248/2
Benjamin Diaz [Fri, 22 Feb 2019 19:36:00 +0000 (16:36 -0300)]
Adds collection of VM status metric in OpenStack infra plugin

OpenStack infra collector plugin now collects metrics regarding VM status. It
iterates over vdus and using nova client gets info regarding status. Active
status translates to 1, anything else to 0.

Change-Id: Ia6e36a79a1d20cea07d5c7b3aa2af85b5c0e18d0
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
5 years agoAdds migration engine for peewee ORM 46/7246/2
Benjamin Diaz [Thu, 21 Feb 2019 19:24:56 +0000 (16:24 -0300)]
Adds migration engine for peewee ORM

Change-Id: I8829dd6e3858149fad9e1c37d773c78523d8c05f
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
5 years agoAdds support for Ceilometer API metric collection 36/7236/2
Benjamin Diaz [Tue, 19 Feb 2019 23:49:39 +0000 (20:49 -0300)]
Adds support for Ceilometer API metric collection

Change-Id: Id0e841c465ea5772d08413dacdf490a1fc109dff
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
5 years agoImplements filebased config, config override through env vars, use of osm 17/7217/8
Benjamin Diaz [Wed, 6 Feb 2019 14:58:00 +0000 (11:58 -0300)]
Implements filebased config, config override through env vars, use of osm
common msg bus drivers

Change-Id: I2ae26408f03a7faf86d5621efda50df948c55951
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
5 years agoAdds collection of vim status metric 98/7198/2
Benjamin Diaz [Mon, 4 Feb 2019 16:38:11 +0000 (13:38 -0300)]
Adds collection of vim status metric

Current support is only OpenStack. It tries to do a simple project list query
to check if VIM is up or not.

Change-Id: Ifec844d9514b6c676b065fee7cf785bdf2a2ea3d
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
5 years agoExits mon-evaluator process when encountered by a database exception 97/7197/2
Benjamin Diaz [Mon, 28 Jan 2019 22:03:39 +0000 (19:03 -0300)]
Exits mon-evaluator process when encountered by a database exception

Database errors could mean database node failure. In this cases, the process
should exit so it could be automatically restarted (when handled by Docker Swarm, K8s, etc)
so it can obtain a new DB connection to an alive node.

Change-Id: I2575062d4bd23b3902b7c2ed14553d5201933002
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
5 years agoChanges log level of config info to debug 96/7196/1
Benjamin Diaz [Mon, 28 Jan 2019 17:41:53 +0000 (14:41 -0300)]
Changes log level of config info to debug

Change-Id: I6fe866709cba1ae6310c54313269bac7a3b858d7
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
5 years agoMerge "Bug 598 Added support for vrops metric collection"
lavado [Tue, 5 Feb 2019 11:20:32 +0000 (12:20 +0100)]
Merge "Bug 598 Added support for vrops metric collection"

5 years agoBug 598 Added support for vrops metric collection 41/7141/3
kasar [Wed, 30 Jan 2019 10:03:40 +0000 (02:03 -0800)]
Bug 598 Added support for vrops metric collection

Change-Id: I63dcff326e88f5b103b535981fdc06cb665904f1
Signed-off-by: kasar <pkasar@vmware.com>
5 years agoAdds decryption of passwords in vim config block 49/7149/1
Benjamin Diaz [Wed, 30 Jan 2019 16:01:54 +0000 (13:01 -0300)]
Adds decryption of passwords in vim config block

Change-Id: Iba064f9fb0dd38511b90410c5073fc13ce8cbeac
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
5 years agoIncreases delta of start_time when collecting OpenStack metrics 27/7127/1
Benjamin Diaz [Fri, 25 Jan 2019 19:31:55 +0000 (16:31 -0300)]
Increases delta of start_time when collecting OpenStack metrics

Change-Id: I5d51c26a7a80a407a6f892d542d44420c5832e02
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
5 years agoChanges way of getting VCA application name corresponding to vdu and vnf 92/6992/2 v5.0.0 v5.0.1 v5.0.2
Benjamin Diaz [Wed, 28 Nov 2018 20:26:28 +0000 (17:26 -0300)]
Changes way of getting VCA application name corresponding to vdu and vnf

MON now searches _admin dictionary in nsr to get the application and
respective model name.

Change-Id: I0a034ff20bd41356da04b1a979839b92f93d26cd
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
5 years agoAdds use of aiokafka in mon-server 64/6964/3
Benjamin Diaz [Mon, 26 Nov 2018 16:14:33 +0000 (13:14 -0300)]
Adds use of aiokafka in mon-server

Adds request timeout param for requests made to Prometheus
Adds use of response topics based on cor_id for alarm create/delete RPC

Change-Id: I5544d749d812e4e77ba913b543ccaa83542535d4
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoAdds support for vnf-metric in mon-evaluator 58/6958/1
Benjamin Diaz [Sat, 24 Nov 2018 03:05:11 +0000 (00:05 -0300)]
Adds support for vnf-metric in mon-evaluator

Change-Id: I81e69761448418625ca4076f6e3d3903c07c9f58
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoFixes bug in collection of vnf-metric 57/6957/1
Benjamin Diaz [Fri, 23 Nov 2018 21:36:28 +0000 (18:36 -0300)]
Fixes bug in collection of vnf-metric

Metrics declared in vnf-configuration block were not building correctly the juju
application name.

Change-Id: I952a0a2716edc7a0ea42ae1254ddc5047bcfff89
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoFixes bugs regarding alarm deletion 45/6945/4
Benjamin Diaz [Thu, 22 Nov 2018 20:27:35 +0000 (17:27 -0300)]
Fixes bugs regarding alarm deletion

Adds healthcheck script to be used in devops MON Dockerfile
Removes unused dependencies

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Ia353c0ae9ee6a502667c04c96f1bc7f3e9337ced

6 years agoRevert "Readds plugins code and respective tests" 39/6939/1
almagia [Wed, 21 Nov 2018 16:22:07 +0000 (18:22 +0200)]
Revert "Readds plugins code and respective tests"
MON code optimisation on behalf of TSC

This reverts commit 6eda48bf7489c00fee4e1f276404ab82db23fd1d.

Change-Id: If697df74221be72aca9630630e64033f06ece473

6 years agoReadds plugins code and respective tests 29/6929/4
Benjamin Diaz [Wed, 21 Nov 2018 13:52:05 +0000 (10:52 -0300)]
Readds plugins code and respective tests

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I80ad624892b513818b1c989494884cc8047e377e

6 years agoAdds support for VNF metric based alarming 32/6932/7
Benjamin Diaz [Tue, 20 Nov 2018 17:01:43 +0000 (14:01 -0300)]
Adds support for VNF metric based alarming

Adds collect_one method to juju collector, which is used by mon-evaluator to
evaluate alarms.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I952280c3c8fa7496f0ea818b7a2ef7f3a091deea

6 years agoRefactors Prometheus exporter to group metrics correctly by name 25/6925/1
Benjamin Diaz [Tue, 20 Nov 2018 14:56:43 +0000 (11:56 -0300)]
Refactors Prometheus exporter to group metrics correctly by name

Metric names were appearing duplicated in the exporter which generated issues
integrating with external tools such as Metricbeat and Kibana.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoAdds use of uri in connection to MongoDB instead of host and port 23/6923/1
Benjamin Diaz [Tue, 20 Nov 2018 14:18:43 +0000 (11:18 -0300)]
Adds use of uri in connection to MongoDB instead of host and port

MON now uses a mongodb uri to connect to the database. This allows to use uris
that define either a single node db or a replica set, allowing for HA
scenarios.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoRevert "Adds use of uri in connection to MongoDB instead of host and port" 22/6922/1
lavado [Tue, 20 Nov 2018 14:10:37 +0000 (16:10 +0200)]
Revert "Adds use of uri in connection to MongoDB instead of host and port"

This reverts commit 2fa92533799dcac2fbb47db2e06579e951294e6a.

Change-Id: Ief2dc8eb49577c9321b34f67efa5296edc281056

6 years agoAdds use of uri in connection to MongoDB instead of host and port 19/6919/1
Benjamin Diaz [Tue, 20 Nov 2018 12:14:09 +0000 (09:14 -0300)]
Adds use of uri in connection to MongoDB instead of host and port

MON now uses a mongodb uri to connect to the database. This allows to use uris
that define either a single node db or a replica set, allowing for HA
scenarios.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoAdds alarm engine 08/6908/2
Benjamin Diaz [Thu, 15 Nov 2018 13:27:12 +0000 (10:27 -0300)]
Adds alarm engine

Alarms are now created directly through mon-central. A new component called
mon-evaluator evaluates the alarms and sends a notification in case it
triggers. Alarms are still created through the Kafka bus using the same model.

It also deletes all of the old unused code of the plugin model. There were
thousands of lines dedicated to provide CRUD operations for metrics and alarms
in the VIM plugins that were never used. MON only requires to collect metrics
and insert them in the TSDB. VIMs manage their metrics autonomously. The tests
for that were also removed. This was done to make the codebase more
manageable. Support for VROPS and AWS will be added in a future patch. Neither
of those two plugins worked correctly. They need to be adapted to the new
consumer plugin model.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I656c78be82ca21b760a83b478560d0c8ae680222

6 years agoAdds support for OSMMON_DATABASE_COMMONKEY to decrypt vim passwords 92/6892/1
Benjamin Diaz [Thu, 15 Nov 2018 17:17:17 +0000 (14:17 -0300)]
Adds support for OSMMON_DATABASE_COMMONKEY to decrypt vim passwords

When vim_accounts msgs arrive in the Kafka bus, vim password is decrypted
and stored in the SQL database. The ideal scenario would be to store it
encrypted in the SQL DB and decrypt it on demand, but that would require
to store the schema_version, instantiate a DbMongo client everywhere it is
needed and a few other modifications that would severely pollute the codebase.
There needs to be a modification in the future on the osm_common side to make
this more doable.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoChanges way metrics are collected, removing the use of mon-proxy 63/6863/4
Benjamin Diaz [Fri, 9 Nov 2018 20:52:08 +0000 (17:52 -0300)]
Changes way metrics are collected, removing the use of mon-proxy

Collector now collects vim metrics directly, without to send kafka msgs
to mon-proxy. Also a plugin/backend model has been implemented to ease
possible inclusions of other vims and tsbds in the future.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I554a4f5e410a31ec70aa301c8aa819b1f03a3857

6 years agoAdds use of N2VC.FormatApplicationName in collector 24/6824/4
Benjamin Diaz [Wed, 31 Oct 2018 21:47:17 +0000 (14:47 -0700)]
Adds use of N2VC.FormatApplicationName in collector

MonCollector was using its own method for generating the juju app name.
It is been replaced by the N2VC one that is also used by LCM on deployment.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Ic2a19825f055cc9b77404f8cf13152e5b6514214

6 years agoAdds OSMMON_VCA_USER and adds timeout and max.poll.interval to collector 66/6766/7
Benjamin Diaz [Thu, 25 Oct 2018 17:54:35 +0000 (14:54 -0300)]
Adds OSMMON_VCA_USER and adds timeout and max.poll.interval to collector
consumer

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Ib4db9874d69bd72d7267542d7a1f149cb44faf41

6 years agoMerge "Set node to run on label docker"
Mike Marchetti [Thu, 25 Oct 2018 13:06:21 +0000 (15:06 +0200)]
Merge "Set node to run on label docker"

6 years agoSet node to run on label docker 61/6761/1
Mike Marchetti [Thu, 25 Oct 2018 13:05:29 +0000 (09:05 -0400)]
Set node to run on label docker

Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
6 years agoAdds time.sleep in Kafka validation loop 58/6758/1
Benjamin Diaz [Wed, 24 Oct 2018 19:52:42 +0000 (16:52 -0300)]
Adds time.sleep in Kafka validation loop

Adds max_poll_interval_ms=900000 in KafkaConsumer

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoAdds support for Juju metrics in collector 57/6757/1
Benjamin Diaz [Tue, 23 Oct 2018 22:44:26 +0000 (19:44 -0300)]
Adds support for Juju metrics in collector

MON now collects VNF metrics defined in the VNFD in the metrics
section. This are obtained through N2VC.
Prometheus exporter now exposes this metrics.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoAdds use of CustomCollector in Prometheus exporter 19/6719/11
Benjamin Diaz [Wed, 17 Oct 2018 17:44:36 +0000 (14:44 -0300)]
Adds use of CustomCollector in Prometheus exporter

Using a CustomCollector gives more control over the collection
process, which allows handling the removal of metrics when a NS
is deleted. Metrics now have a lifespan of a collection cycle, so
metrics of deleted vdus are now not visible in the exporter.

It also adds MonCollector class, which allows to abstract collection
logic and facilitates testing.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Idfdb86c1ee9facd07187e6582954ae4cab32a5b4

6 years agoAodh notifier now uses port defined in OS_NOTIFIER_URI 18/6718/1
Benjamin Diaz [Wed, 17 Oct 2018 16:20:16 +0000 (13:20 -0300)]
Aodh notifier now uses port defined in OS_NOTIFIER_URI

Aodh notifier was using always port 8662, instead of
getting the port defined in config. That has been fixed.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoRemoves threading from common_consumer 13/6713/1
Benjamin Diaz [Wed, 17 Oct 2018 15:45:02 +0000 (12:45 -0300)]
Removes threading from common_consumer

It appears KafkaConsumer is not threadsafe, and it was generating
issues regarding the sending of heartbeats, causing kafka to kill
connections and causing coordinator dead errors.
Also removes heartbeat and session timeouts from consumer config.
They were generating conflicts with different default request
timeouts, and were in place to leverage issues regarding what is
mentioned above.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoRefactors codebase 92/6692/3
Benjamin Diaz [Fri, 12 Oct 2018 20:37:30 +0000 (17:37 -0300)]
Refactors codebase

Refactors duplicated code. Renames and reorganizes classes and methods.
Refactors tests.
Kafka message handling is removed from plugins. They now return response msg
dict and top level code handles publishing.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I9826db9c4586d961f40af6cb194fc388fe855ae1

6 years agoRefactors code in OpenStack plugin 51/6651/4
Benjamin Diaz [Mon, 8 Oct 2018 18:34:12 +0000 (15:34 -0300)]
Refactors code in OpenStack plugin

Continues refactor process on OpenStack metrics plugin.
Delegates exception handling to the main metric handler,
removing exception management from specific function calls.
Extracts response generation code into single method.
Adds 'status' param in message responses where it was missing.
Modifies tests accordingly.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I6ad27734f37708f5ccbef13e322723225545db4e

6 years agoFixes discrepancies and missing params in JSON models 50/6650/4
Benjamin Diaz [Mon, 8 Oct 2018 18:31:14 +0000 (15:31 -0300)]
Fixes discrepancies and missing params in JSON models

Updates JSON models to be up to date with the params required by MON.
It constitutes a first step in the process of converting JSON models
to actual JSON Schema files.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I9c3c0b69ee59e98805fb3f92f69d01f4fb142913

6 years agoRefactor common_db client code 49/6649/3
Benjamin Diaz [Mon, 8 Oct 2018 15:20:47 +0000 (12:20 -0300)]
Refactor common_db client code

Creates CommonDbClient which exposes methods to interact with the common
database, using osm_common module.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I98babcdb892e86fdb14d04873b2bbbdabbdad23f

6 years agoRevert "Revert "Removes POL code from MON repo"" 83/6683/1 netslice
garciadeblas [Thu, 11 Oct 2018 08:32:46 +0000 (10:32 +0200)]
Revert "Revert "Removes POL code from MON repo""

This reverts commit 17ebe3794d0dc2712b1438f3fc5469ca10d752e1.

6 years agoAdded LICENSE file to root folder 68/6568/2
garciadeblas [Thu, 27 Sep 2018 08:28:43 +0000 (10:28 +0200)]
Added LICENSE file to root folder

Change-Id: Iebe424b8d0f05d12840ef0911fd3dd2ccc9887fe
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoAdds MON Prometheus exporter 78/6678/6
Benjamin Diaz [Wed, 10 Oct 2018 19:50:44 +0000 (16:50 -0300)]
Adds MON Prometheus exporter

Adds a new MON component called mon-exporter, which collects
vdu infra metrics and exposes them through a webservice
by using prometheus_client. This webservice follows the Prometheus
exporter format so it can be integrated as a target so that
it polls metrics from there.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Iaf2073879d884d0597aa8341f7b6fbbbc3d86e7e

6 years agoSets repeat_action to True in OpenStack alarm creation 76/6676/1
Benjamin Diaz [Wed, 10 Oct 2018 15:26:50 +0000 (12:26 -0300)]
Sets repeat_action to True in OpenStack alarm creation

Alarms created in OpenStack will be configured to retrigger actions
during each evaluation cycle if they are still in alarm state.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoIncreases Kafka session_timeout_ms and heartbeat_interval_ms 72/6672/1
Benjamin Diaz [Tue, 9 Oct 2018 23:22:04 +0000 (20:22 -0300)]
Increases Kafka session_timeout_ms and heartbeat_interval_ms

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoAdds OSMMON_KAFKA_LOG_LEVEL env var 70/6670/2
Benjamin Diaz [Tue, 9 Oct 2018 21:16:25 +0000 (18:16 -0300)]
Adds OSMMON_KAFKA_LOG_LEVEL env var

Also removes unnecessary code from producer.py and moves
the consumer in common_consumer inside run method to ease
mocking during tests.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Ib7e0b9423a7c7d2acdd12f1bcb75b20eb3a7ea72

6 years agoAdds OSMMON_LOG_LEVEL env var to config log level 64/6664/1
Benjamin Diaz [Tue, 9 Oct 2018 17:01:54 +0000 (14:01 -0300)]
Adds OSMMON_LOG_LEVEL env var to config log level

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoRemoves filter param from osm-common function calls 61/6661/1
Benjamin Diaz [Tue, 9 Oct 2018 14:38:51 +0000 (11:38 -0300)]
Removes filter param from osm-common function calls

The filter argument was replaced to q_filter. Instead of
renaming the keyword arg, now functions are called using
only positional args.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoAdds support for SSL verification option in OpenStack Aodh plugin 16/6616/3
Benjamin Diaz [Wed, 3 Oct 2018 15:37:09 +0000 (12:37 -0300)]
Adds support for SSL verification option in OpenStack Aodh plugin

Alarm management operations now consider the insecure option
in vim config.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Id25a50a4f4a8db3775364b9639d1eb3926dab53a

6 years agoReplaces vdu-id-ref for name during VDU lookup 13/6613/1
Benjamin Diaz [Wed, 3 Oct 2018 14:38:18 +0000 (11:38 -0300)]
Replaces vdu-id-ref for name during VDU lookup

Vdus were being looked up using the vdu-id-ref param, which
corresponds to the name used in the vnfd to define that vdu.
That was not the intended behaviour, because that param is clearly
not unique. It has been replaced with the name param, which
is unique to each vdu record.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoAdd version schedule pep440-git-full 97/6597/1
lavado [Mon, 1 Oct 2018 14:59:17 +0000 (09:59 -0500)]
Add version schedule pep440-git-full

Change-Id: I71a46fae027ba3faee2c5e0239a893ae75e8de25
Signed-off-by: lavado <glavado@whitestack.com>
6 years agoAdds postinst script to deb package to install dependencies 66/6566/2
Benjamin Diaz [Wed, 26 Sep 2018 20:30:55 +0000 (17:30 -0300)]
Adds postinst script to deb package to install dependencies

Adds stdeb.cfg file
Adds Makefile to handle package building
Modifies Jenkins Dockerfile to handle package building

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Ia285307ae2350c4a79eb9fd4efaf4abedd181104

6 years agoModified vROPs install.sh to support python3 modules in MON 57/6557/2
kasar [Tue, 25 Sep 2018 06:51:30 +0000 (23:51 -0700)]
Modified vROPs install.sh to support python3 modules in MON

Change-Id: Ieabbf723025aff6460ca88c8e6ecdbf4eef30729
Signed-off-by: kasar <pkasar@vmware.com>
6 years agoRevert "Removes POL code from MON repo" 58/6558/1
garciadeblas [Tue, 25 Sep 2018 14:16:31 +0000 (16:16 +0200)]
Revert "Removes POL code from MON repo"

This reverts commit f315c3bf13c14d6a71c2909b4e4a8632f7df1c2e.

6 years agoRemoves POL code from MON repo 11/6511/1
Benjamin Diaz [Wed, 19 Sep 2018 20:11:53 +0000 (17:11 -0300)]
Removes POL code from MON repo

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoSmall fixes in Dockerfile, requirements and setup.py 04/6504/1
Benjamin Diaz [Tue, 18 Sep 2018 15:43:18 +0000 (12:43 -0300)]
Small fixes in Dockerfile, requirements and setup.py

Adds envs in Dockerfile
Adds version_command in setup.py
Cleans unused deps in requirements.txt

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoRemoves obsolete files 93/6493/1
Benjamin Diaz [Fri, 14 Sep 2018 17:12:00 +0000 (14:12 -0300)]
Removes obsolete files

Removes OpenStack plugin tests logger config

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoMerge "Removes call to .lower on vnf_member_index in alarm creation"
lavado [Tue, 11 Sep 2018 16:17:49 +0000 (18:17 +0200)]
Merge "Removes call to .lower on vnf_member_index in alarm creation"

6 years agoMerge "Reduces kafka log level to WARN"
lavado [Tue, 11 Sep 2018 16:15:08 +0000 (18:15 +0200)]
Merge "Reduces kafka log level to WARN"

6 years agoMerge "Adds osm-common dependency"
lavado [Tue, 11 Sep 2018 16:12:24 +0000 (18:12 +0200)]
Merge "Adds osm-common dependency"

6 years agoMerge "Adds exception throwing when Openstack services missing"
lavado [Tue, 11 Sep 2018 16:04:40 +0000 (18:04 +0200)]
Merge "Adds exception throwing when Openstack services missing"

6 years agoFixes recursive-include in MANIFEST 61/6461/2
Benjamin Diaz [Thu, 6 Sep 2018 16:20:29 +0000 (13:20 -0300)]
Fixes recursive-include in MANIFEST

The MANIFEST was only including py and xml files from the osm_mon package.
The vROPs plugin uses a install.sh file to work. Added *.sh files to the
recursive include.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I23d5c844b6fbb99bbf41916cee2376a2c51fc6c6

6 years agoRemoves call to .lower on vnf_member_index in alarm creation 53/6453/1
Benjamin Diaz [Wed, 22 Aug 2018 20:31:58 +0000 (17:31 -0300)]
Removes call to .lower on vnf_member_index in alarm creation

Currently this does not produce an error just because vnf_member_index
is been passed as a string in the kafka msg. Considering that in the IM
it is a integer, this may change in the future, in which case this would
fail. It also does not make any sense and can be considered a typo.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoReduces kafka log level to WARN 39/6439/2
Benjamin Diaz [Tue, 28 Aug 2018 14:32:06 +0000 (11:32 -0300)]
Reduces kafka log level to WARN

Kafka was producing a considerable amount of logs, which in some cases
caused disk space issues.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Id9a392ae881a8fff6ab8fe33b044370557adfeeb

6 years agoAdds osm-common dependency 38/6438/2
Benjamin Diaz [Mon, 27 Aug 2018 20:27:57 +0000 (17:27 -0300)]
Adds osm-common dependency

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I3fffdccba381b298d6d6d245d00f6db6b395b6a6

6 years agoAdds exception throwing when Openstack services missing 37/6437/1
Benjamin Diaz [Wed, 22 Aug 2018 20:18:21 +0000 (17:18 -0300)]
Adds exception throwing when Openstack services missing

Currently if MON can't find Gnocchi or Aodh services it fails obscurely.
Same thing happens if it can't find endpoints for those services in the
specified region. This patch adds throwing an exception in those cases
to ease troubleshooting.

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoMulti-VIM support for vmware vROPs plugin 99/6399/3
kasar [Fri, 3 Aug 2018 09:24:05 +0000 (02:24 -0700)]
Multi-VIM support for vmware vROPs plugin

Change-Id: Ib4f3dfe0d3930f520fc217618b9ddf1e9b53cea5
Signed-off-by: kasar <pkasar@vmware.com>
6 years agoMerge "[MON] Fixes notifier bug during alarm triggering" v4.0 BUILD_v4.0.1_1 BUILD_v4.0.1_2
lavado [Fri, 6 Jul 2018 19:14:23 +0000 (21:14 +0200)]
Merge "[MON] Fixes notifier bug during alarm triggering"

6 years agoMerge "[MON] Implements multithreading for message consumption"
lavado [Fri, 6 Jul 2018 19:14:10 +0000 (21:14 +0200)]
Merge "[MON] Implements multithreading for message consumption"

6 years agoMerge "[PM] Adds group-id to Kafka consumer in agent"
lavado [Fri, 6 Jul 2018 19:14:00 +0000 (21:14 +0200)]
Merge "[PM] Adds group-id to Kafka consumer in agent"

6 years ago[MON] Fixes notifier bug during alarm triggering 21/6321/1
Benjamin Diaz [Fri, 6 Jul 2018 19:04:19 +0000 (16:04 -0300)]
[MON] Fixes notifier bug during alarm triggering

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years ago[MON] Implements multithreading for message consumption 12/6312/3
Benjamin Diaz [Mon, 18 Jun 2018 17:21:46 +0000 (14:21 -0300)]
[MON] Implements multithreading for message consumption

[MON] Fixes errors in OpenStack plugin integration tests

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Ifbf85d5217244aa22655addd1a64c276746cda77

6 years ago[PM] Adds group-id to Kafka consumer in agent 20/6320/1
Benjamin Diaz [Fri, 6 Jul 2018 15:03:35 +0000 (12:03 -0300)]
[PM] Adds group-id to Kafka consumer in agent

Fixes CPU spikes during OSM startup

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years ago[MON] Includes xml files in MANIFEST 19/6319/1
Benjamin Diaz [Fri, 6 Jul 2018 14:52:19 +0000 (11:52 -0300)]
[MON] Includes xml files in MANIFEST

Removes package_data from setup.py

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoFixes log format bug when alarm action not present 94/6194/2
diazb [Tue, 22 May 2018 20:21:08 +0000 (13:21 -0700)]
Fixes log format bug when alarm action not present

Signed-off-by: diazb <bdiaz@whitestack.com>
Change-Id: I08b8476c2ffc3c89554fe77a11dbaabbd221d071

6 years ago[MON] Refactor of alarming section of OpenStack plugin 68/6268/3
Benjamin Diaz [Wed, 13 Jun 2018 21:14:12 +0000 (18:14 -0300)]
[MON] Refactor of alarming section of OpenStack plugin

Refactor of alarming related tests
Refactor of notifier tests

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I6dcbe8488b9aafb19718b121aaca964831200434

6 years ago[MON] Adds check for 'insecure' vim config param in Openstack plugin 50/6250/2
Benjamin Diaz [Wed, 6 Jun 2018 20:08:26 +0000 (17:08 -0300)]
[MON] Adds check for 'insecure' vim config param in Openstack plugin

Closes-Bug: Bug 504

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Ib16af4bb3cad2a525b011a8d856311a534149442

6 years agoOptimization of "list_metrics" function 98/6198/3
gcalvino [Wed, 23 May 2018 10:20:36 +0000 (12:20 +0200)]
Optimization of "list_metrics" function

Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
Change-Id: I815e0f11049d49ef0ed13e4180241923b4a58496

6 years agoOptimization of "check_for_metric" function 87/6187/6 v4.0.0 v4.0.1
gcalvino [Tue, 22 May 2018 08:00:16 +0000 (10:00 +0200)]
Optimization of "check_for_metric" function

Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
Change-Id: I1beb698c564b21f3340d9e67947fe1031f57dfe7

6 years agoAdds more alarm parameters to alarm notification log 80/6180/1
diazb [Fri, 18 May 2018 22:25:51 +0000 (19:25 -0300)]
Adds more alarm parameters to alarm notification log

Signed-off-by: diazb <bdiaz@whitestack.com>
6 years agoAdds vdu, ns, threshold and operation info to alarm notification 71/6171/2
Benjamin Diaz [Thu, 17 May 2018 22:02:24 +0000 (19:02 -0300)]
Adds vdu, ns, threshold and operation info to alarm notification

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: Icbdfa11fa81bfda664e98d3cfc365ef1389fac46

6 years agoAdds support for vdu_name and vnf_member_index in configure_scaling 44/6144/5
diazb [Mon, 14 May 2018 22:10:31 +0000 (19:10 -0300)]
Adds support for vdu_name and vnf_member_index in configure_scaling
message

Handles case when alarm is not registered in database
Adds typing check for methods

Signed-off-by: diazb <bdiaz@whitestack.com>
Change-Id: I6a36e4abf936f0634064e3e69d95e8b5e94c7a88

6 years agoModifies stage-archive.sh 48/6148/1
Benjamin Diaz [Tue, 15 May 2018 14:03:56 +0000 (11:03 -0300)]
Modifies stage-archive.sh

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoAdds support for vdu_name, ns_id and vnf_member_index 34/6134/25
Benjamin Diaz [Fri, 11 May 2018 21:00:16 +0000 (18:00 -0300)]
Adds support for vdu_name, ns_id and vnf_member_index

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I194753f7d581287dc85850378391dcf1585e78c3

6 years ago[PM] Adds support for logstash 88/6088/4
diazb [Tue, 8 May 2018 17:16:40 +0000 (14:16 -0300)]
[PM] Adds support for logstash

[PM] Modifies Dockerfile to optimize use of cache
[MON] Fixes py3 compatibility issue in Aodh notifier
[MON] Removes use of sudo in vrops webservice script

Signed-off-by: diazb <bdiaz@whitestack.com>
Change-Id: I93b4bb57f49238a57067cf035509c3e62da5ec2a

6 years agoAdds vdu_id to message bus models 60/6060/4 v3.1 v3.1.0
Benjamin Diaz [Thu, 3 May 2018 16:22:11 +0000 (13:22 -0300)]
Adds vdu_id to message bus models

LB Dockerfile now uses Python3
Removes obsolete parameters from models
Refactors and fixes kafka integration tests
Refactors deprecated log warnings
Adds DATABASE env var to set MON database url
Fixes indentation and dependency issues in AWS plugin
Use open from io package for Python 2 and 3 compatibility

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
Change-Id: I70af22d2fbc2cb1bfd5d9632d9daa80e9d7f6b62

6 years agoAdds granularity support in OpenStack vim config 50/6050/3
Benjamin Diaz [Fri, 27 Apr 2018 17:32:31 +0000 (14:32 -0300)]
Adds granularity support in OpenStack vim config

Adds global config class in core
Reorders common_consumer conditional blocks
Adds support for OS_DEFAULT_GRANULARITY env var
Modifies tests to support changes

Change-Id: I873b8d24814825bff6e628092942bf16fa5e2a03
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoFixes loading of vim config in OpenStack plugin 16/6016/1
Benjamin Diaz [Sat, 21 Apr 2018 12:38:52 +0000 (09:38 -0300)]
Fixes loading of vim config in OpenStack plugin

Changes default value for region to RegionOne

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoRemoves git clone operation from Dockerfile 03/6003/1
Benjamin Diaz [Wed, 18 Apr 2018 18:27:31 +0000 (15:27 -0300)]
Removes git clone operation from Dockerfile

Adds use of COPY statement
Modifies Dockerfile to optimize use of cache

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoRemoved logstash references from code 90/5990/1
Benjamin Diaz [Wed, 18 Apr 2018 14:46:05 +0000 (11:46 -0300)]
Removed logstash references from code

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoMerge "Adds yaml support in policy module"
lavado [Wed, 18 Apr 2018 13:41:12 +0000 (15:41 +0200)]
Merge "Adds yaml support in policy module"

6 years agoUpdated Dockerfiles for MON and PM to use pip-9.0.3 81/5981/1
garciadeblas [Tue, 17 Apr 2018 15:22:46 +0000 (17:22 +0200)]
Updated Dockerfiles for MON and PM to use pip-9.0.3

Change-Id: I20b59fb87ffdd0e3715dc1f0e8e188deea34c542
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
6 years agoAdds yaml support in policy module 80/5980/1
Benjamin Diaz [Tue, 17 Apr 2018 14:21:51 +0000 (11:21 -0300)]
Adds yaml support in policy module

Adds timeout for creation of alarm in mon client in policy module

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoMerge "Get Metric_UUID directly from VIM Change-Id: I9b8c47b2fd7987f8834dc7c90e826d9d...
hoban [Tue, 17 Apr 2018 14:10:07 +0000 (16:10 +0200)]
Merge "Get Metric_UUID directly from VIM Change-Id: I9b8c47b2fd7987f8834dc7c90e826d9d2789ce51 Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>"

6 years agoGet Metric_UUID directly from VIM 74/5974/6
gcalvino [Mon, 16 Apr 2018 14:26:09 +0000 (16:26 +0200)]
Get Metric_UUID directly from VIM
Change-Id: I9b8c47b2fd7987f8834dc7c90e826d9d2789ce51
Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
6 years agoAdds yaml format in OpenStack plugin 76/5976/1
Benjamin Diaz [Wed, 11 Apr 2018 00:57:17 +0000 (21:57 -0300)]
Adds yaml format in OpenStack plugin

Makes config property in vimcredentials optional
Fixes mapping name of average_memory_utilization metric
Adds support for config properties region_name and endpoint_type

Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
6 years agoadds yaml support in common consumer 68/5968/1
Gianpietro Lavado [Thu, 12 Apr 2018 19:39:50 +0000 (13:39 -0600)]
adds yaml support in common consumer

Change-Id: Ia6ae411cd4c3ad074455c0cae32d198c89d0f52e
Signed-off-by: Gianpietro Lavado <glavado@whitestack.com>
6 years agoRegion Name and endpoint type as parameters - bug fix 64/5964/1
gcalvino [Wed, 11 Apr 2018 08:13:47 +0000 (10:13 +0200)]
Region Name and endpoint type as parameters - bug  fix

Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
6 years agoRegion Name and endpoint type as parameters 57/5957/1
gcalvino [Mon, 9 Apr 2018 22:04:16 +0000 (00:04 +0200)]
Region Name and endpoint type as parameters

Signed-off-by: gcalvino <guillermo.calvinosanchez@altran.com>
6 years ago1.code changes related to latest pyvcloud lib 25/5925/3
dhumal [Fri, 30 Mar 2018 12:26:13 +0000 (05:26 -0700)]
1.code changes related to latest pyvcloud lib
2.Additional mock test cases for vROPs plugin

Change-Id: I89efd0e41a6822a9ff69b986b22d79624f820017
Signed-off-by: dhumal <kdhumal@vmware.com>