463 Commits

Author SHA1 Message Date
Dobroslaw Zybort
34fd0fc873 Use proper naming for docker services image zuul jobs
https://docs.openstack.org/infra/manual/drivers.html#consistent-naming-for-jobs-with-zuul-v3

Change-Id: I8000d90ba597693f3e1d34bba8c97c0e37d309eb
2019-04-09 10:48:31 +02:00
Zuul
a45625936f Merge "Catch the case when no new messages are available" 2019-03-29 15:27:21 +00:00
Witek Bedyk
5bdd98662b Catch the case when no new messages are available
Confluent Kafka client throws the KafkaError._PARTITION_EOF exception
when no new messages are available in a given partitiion. We should
catch this case and continue consuming after a short sleep.

Story: 2003705
Task: 30116
Change-Id: I44add24df764bbc4e718358a8af75903e035f3f0
2019-03-20 12:48:46 +01:00
Dobroslaw Zybort
7fb362200b Convert mysql port to int in wait script
Change-Id: I02361fd1de5d541e2c8e175c2fe1886724670522
2019-03-14 13:57:04 +01:00
Zuul
a9110d815c Merge "Don't remove tempest tests from installation folder" 2019-03-13 14:52:31 +00:00
Dobroslaw Zybort
ffbe2a1056 Don't remove tempest tests from installation folder
Change-Id: I44155371b8a09a84db1a023d5dfc18068d311a64
2019-03-13 13:39:46 +01:00
Dobroslaw Zybort
4c077af2f6 Support full links in Docker wait script
Remove http(s) and trailing slash.

Change-Id: Ia7a471e73ebd23a2005a78d71419b52a9720b6bb
2019-03-12 14:00:56 +01:00
Dobroslaw Zybort
5cfcbda66c Use proper naming for docker base image zuul jobs
https://docs.openstack.org/infra/manual/drivers.html#consistent-naming-for-jobs-with-zuul-v3

Change-Id: I504919a13a6c9380a8b41e29c21d9171239f0d27
2019-03-04 13:28:10 +01:00
Zuul
62e9fa5cfe Merge "Fix monasca-common for building Docker image" 2019-03-01 14:34:02 +00:00
Sean McGinnis
24aef15057 Remove duplicate target name from README
Duplicate targets in the README cause validation failures that would
cause pypi uploads to fail. This removes a defined target that
conflicted with one of the title implicit targets and was not referred
to.

Change-Id: Ife742651b68cd94d67d5af6f9d13d236c032e46e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
stein-em 2.13.0
2019-02-28 19:18:36 -06:00
Zuul
70d9aff4ca Merge "Add wrapper for Confluent Kafka client consumer" 2019-02-28 22:18:01 +00:00
Zuul
dda9a87e50 Merge "Add the metric name to the Exception message when validation fails" 2019-02-28 16:30:20 +00:00
Michał Piotrowski
4f70a6405d Fix monasca-common for building Docker image
Change-Id: I5075450ac7c7019971016203ab81ee9108cd1182
Story: 2001694
Task: 29754
2019-02-28 14:55:54 +01:00
Zuul
15f00e54f1 Merge "Improve coverage" 2019-02-28 13:30:01 +00:00
Witek Bedyk
c542d908f1 Add wrapper for Confluent Kafka client consumer
This change provides a wrapper around a high-level Kafka consumer which
can be used in all Monasca components, in particular in
monasca-persister and monasca-notification.

Story: 2003705
Task: 29711
Change-Id: Iee317c3016f9868616022389209e36994cf185cf
2019-02-28 12:48:38 +01:00
Joseph Davis
5c6dddfc6e Add the metric name to the Exception message when validation fails
In the general validate_metric case, when possible add the metric
name to the exception message. This makes it much easier to
track down what metric failed.

Also, fixing code where an exception could be thrown but then
immediately ignored and another exception fo the same type
with a different message would be thrown.

Change-Id: I8b8f04bb98a65b6904894dc00af88ea367a350f8
Story: 2004185
Task: 27675
2019-02-28 10:37:10 +00:00
Martin Chacon Piza
0a1822a088 Improve coverage
Change-Id: I556791fc240e6f5fb8e0b5ddf9238294835a5015
Story: 2003881
Task: 29453
2019-02-18 09:41:59 +01:00
Zuul
52bb757314 Merge "Prepare one zuul docker job for all services" 2019-02-13 19:19:50 +00:00
Dobroslaw Zybort
cb38433e4c Prepare one zuul docker job for all services
We want to have one flow for building Docker images of all Monasca
components. Every component should have `docker` folder and in this
folder file with name `build_image.sh` should be placed. By having one
global Zuul we could force this convention. Also this is good for
avoiding code duplication. Remove timeouts. They was unnecessary big.

Story: 2001694
Task: 28994
Change-Id: Iee7de1d8e873817a3b6f72e7ecc815bd8d6eb705
2019-02-11 15:48:58 +01:00
Zuul
5946f650b9 Merge "Add tempest tests jobs" 2019-02-06 10:06:37 +00:00
Witek Bedyk
ca3f42aa60 Add tempest tests jobs
Change-Id: I9e2439aaae77b39cb526206fbc65dc571c9a7168
2019-01-31 19:16:50 +01:00
melissaml
841041c932 Update hacking version to latest
Change-Id: Ib3b21290c0c2f60dde3260eff2b344984eaf1461
2019-01-06 17:37:01 +08:00
Zuul
6f7f46cf0c Merge "Use template for lower-constraints" 2019-01-02 14:49:22 +00:00
Zuul
13f1f42130 Merge "Change openstack-dev to openstack-discuss" 2019-01-02 12:59:43 +00:00
Zuul
8733268ed8 Merge "Add missing build dependencies for agent in docker" 2019-01-01 17:58:32 +00:00
Andreas Jaeger
a0cbe3f1e9 Use template for lower-constraints
Small cleanups:

* Use openstack-lower-constraints-jobs template, remove individual
  jobs.
* Sort list of templates

Change-Id: I08349e13587b16f91f0433c6f559bd7089517784
Needed-By: https://review.openstack.org/623229
2018-12-20 21:10:33 +01:00
Dobroslaw Zybort
82fcfd3b18 Add missing build dependencies for agent in docker
Change-Id: I19e4f0133bdce9eb9065503ef8781e2ec1ac1c37
2018-12-19 09:46:38 +00:00
Adrian Czarnecki
00bc2d4ccd Add python3.5 classifier to setup.cfg
Story: 2000975
Task: 28477

Change-Id: I85e547b3ad4a7f3362081efa213b0ca5b862e5df
2018-12-19 09:44:21 +00:00
Zuul
ae2bd9d740 Merge "Add description-file field to setup.cfg" 2018-12-19 01:01:55 +00:00
Zuul
635fb1d58b Merge "Add py36 tox environment" 2018-12-18 12:00:31 +00:00
melissaml
cda277938b Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: Ib91f5473492fd7ab54b2a7cd4107db6918e30efa
2018-12-16 17:10:32 +08:00
Zuul
02719dbfdd Merge "Decrease amount of Docker image layers" 2018-12-07 15:23:58 +00:00
Witold Bedyk
5b8be9bf38 Add description-file field to setup.cfg
This change allows to pass `test-release-openstack` Zuul job and
effectively create a delivery.

Change-Id: I7c8ce92901ba851b59aa763ae5634cb8c3f5840e
Story: 2004559
Task: 28319
2018-12-06 12:46:29 +00:00
Dobroslaw Zybort
81348d9030 Decrease amount of Docker image layers
Change-Id: I452ba835dee42121c889a1c955333440366f000f
2018-12-05 15:38:21 +01:00
Dobroslaw Zybort
e0398d32db Bump Alpine to 3.8 in docker
pyca/cryptography was updated to version supporting LibreSSL 2.7
in upper constrains.
Also bump Python to next minor release (3.5.6).

Change-Id: Ic3d7c2b75e2439813c2b9e02b11514ccee112624
2018-12-05 13:37:55 +00:00
Dobroslaw Zybort
dcc26703fa Push monasca/base image on commit, periodicaly and on release
Remove docker `files` check.
This check works only in `check` and `gate` steps, but is not
functioning properly in `post` step and always fail resulting
in not pushed images of monasca/base.

Change-Id: Id960e831948ee87e078688e43b864b22a6ee11ae
2018-12-03 14:03:54 +01:00
Zuul
abe9453e1a Merge "Add wrapper for Confluent Kafka async Producer" 2018-11-28 22:55:24 +00:00
Witold Bedyk
ee42448e73 Add py36 tox environment
Change-Id: I40d383db83dca77445b411eba87a19d8d1457be1
Story: 2004148
Task: 28119
2018-11-28 10:01:35 +01:00
Witold Bedyk
a8b68cbc19 Add wrapper for Confluent Kafka async Producer
Story: 2003705
Task: 27630
Change-Id: I5981e40ecf62cd123ff1969109a8b4b0b9ec204d
2018-11-28 09:56:34 +01:00
Zuul
d77a54053e Merge "Remove Linux apps pinning from Dockerfile" 2018-11-20 11:54:00 +00:00
Zuul
279769276f Merge "Add running tempest tests for logs-pipeline" 2018-11-15 11:21:48 +00:00
Dobroslaw Zybort
d2d085c84d Remove Linux apps pinning from Dockerfile
Alpine repositories remove older version of packages really fast and
stop images from building.

Change-Id: I80011d19204117d0ce7d8fe7d847432cd31ce99c
2018-11-09 10:39:37 +01:00
Sean McGinnis
9cd0d2836c Remove setup.py check from pep8 job
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.

Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.

More details can be found in this mailing list post:

http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html

Change-Id: I7a3555dd0f0c4bcd1969ca7d3669369d7517a6be
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Depends-On: https://review.openstack.org/615557
2018-11-06 07:33:47 +00:00
Witold Bedyk
77887bbf05 Workaround to avoid surefire plugin error
* do not use system classloader
* upgrade maven-surefire-plugin to ver. 2.22.1

Change-Id: I8bc83a59164c4a79bae036600cacb450cdc8feb9
Story: 2004256
Task: 27792
2018-11-05 14:14:10 +01:00
Zuul
18e2980096 Merge "Update links in pom.xml" 2018-10-25 11:46:31 +00:00
Witold Bedyk
ffa84f7097 Add running tempest tests for logs-pipeline
monasca-common is used also by monasca-log-api. Therefore each change in
the library should be also tested with integration tests for logs
pipeline.

Change-Id: I50737e658507f7ec320d7a30c9996a2c6b020baa
2018-10-24 10:07:32 +00:00
melissaml
eb6eb9e683 Don't quote {posargs} in tox.ini
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')

Change-Id: I068ac92a340a5a31af53f77b69a702c5c138b4c8
2.12.0
2018-10-21 22:48:19 +08:00
Zuul
4f45ede78c Merge "fix tox python3 overrides" 2018-10-08 11:12:23 +00:00
Zuul
cb6b41fd67 Merge "Fix coverage job for Python 3" 2018-10-08 09:55:41 +00:00
Witold Bedyk
abc3f8dd97 Remove Docker tag based on timestamp
As agreed in spec [1] we don't want to create and publish tags based on
timestamp.

Story: 2001694
Task: 23322

[1] http://specs.openstack.org/openstack/monasca-specs/specs/rocky/approved/monasca-services-in-docker.html#work-items

Change-Id: Id72eb0ac7be7077bfaa8b8684a45494c09d92034
2018-10-05 10:57:47 +02:00