This is to allow merging remaining documentation changes without having
to fix Zuul CI jobs configuration.
Change-Id: I39e3058ed89d5cc915751e687f3dfef746d320f5
From Spark 2.2, it is necessary to implement the onStreamingStarted
method. This patch adds the method.
Change-Id: If2d9ef8ffad879319bceacad92dcf8e3d125f63e
Monasca-analytics builds on Spark and is supporting Python3.6
but the old version of Spark doesn't support Python3.6. So we
drop Python2.7 support with this patch.
Change-Id: Ib58d3a22c71e5237d57a8436e1208922586db091
This patch updates Spark version from 2.1.0 to 2.4.4 in order to support Python3.6 or later
because the old version of Spark doesn't support Python3.6. Monasca-analytics builds on
Spark so we will drop Python2.7 support instead of Python3.6 support.
And update some packages version depend on Spark.
Change-Id: Idd61243e9e23d99ea8754dc5b313d1583d08878c
hacking is not capped in g-r and it is in
blacklist for requirement as hacking new version
can break the gate jobs.
Hacking can break gate jobs because of various
reasons:
- There might be new rule addition in hacking
- Some rules becomes default from non-default
- Updates in pycodestyle etc
That was the main reason it was not added in g-r
auto sync also. Most of the project maintained the
compatible and cap the hacking version in
test-requirements.txt and update to new version when
project is ready. Bumping new version might need code
fix also on project side depends on what new in that
version.
If project does not have cap the hacking version then,
there is possibility of gate failure whenever new hacking
version is released by QA team.
Example of such failure in recent release of hacking 1.1.0
- http://lists.openstack.org/pipermail/openstack-dev/2018-May/130282.html
Change-Id: I4172dd0c905760dd84e5ff60d3fa052aae794edf
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: I31c0d10030d1dc3b7934cd0b22c7aebe888e9cd6
- Pin tornade version less than 6.0.
Currently, monasca-analytics use asynchronous decorator in tornade.web.
But this decorator has been removed in tornade version 6.0.
Therefore, openstack-tox-py35 in Zuul check is failed.
This is tentative approach. tornade should be replaced to flask in near future.
Change-Id: I5e2e310c17b1dcdd4ab8e71c37f4f59104e2e63e
1.add download_file function in devstack plugin.sh,to avoid file downloaded when
reinstall.
2.when unstack.sh, the spark download dir is rm -rf ,and file downloaded is removed
too. so change spark download dir to devstack default files dir to avoid the probem.
3.change sudo -u stack to sudo -u stack -g stack avoid
"user stack is not allowed to execute" problem
Blueprint add-downloadfile-function
Change-Id: I9f096c32c7b9a826541dca229ec1a294088e1e81
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: Ib660c909b6b7afeb8edc6b802d5e6897d72f7980
This patch implements followings for py35 support using six(er) and 2to3.
- Python 3 map/filter returns iterator, must be converted to list
- use six.string_types instead of basestring
- use six.iteritems instead of iteritems
- use six.moves for using cPickle and SocketServer packages
- use six.assertCountEqual instead of assertItemsEqual
- remove relative imports
- update BytecodeAssembler(monasca_analytics/
banana/bytecode/assembler.py) for python3
Can be tested with:
tox -e py35
Change-Id: If1b92d0ffc56492950f6a02ebdbe1596d0dce368
Currently, README has invalid markup which will not be rendered on PyPI.
This patch updates README to be rendered on PyPI and to be more readable.
Change-Id: Ic081c0729e44f4e09ac21c47a5dbbd0da6deb77f
Currently, monasca-analytics's devstack-plugin downloads
Apache Kafka from "ftp.riken.jp".
It is better to use "archive.apache.org" instead of "ftp.riken.jp".
That archive site is also used in other projects(e.g. monasca-api).
Change-Id: I9be43c052ca46ffec5ed6a1ffe3278b9e0325efb
This patch includes the following updates.
- Remove "findspark" and "libpgm" packages.
There are no longer in use.
- Rename "sklearn" to "scikit-learn".
"global-reqirements" needs "scikit-learn" instead of "sklearn" which is old package name.
- Pin scipy version less than 1.2.0.
Currently, according to upper-constraints.txt of openstack/requirements, scipy version is '1.2.0'.
However, this scipy version seems to be unable to import and use some scikit-learn libraries.
- Remove "docopt" and re-wite code wihtout "docopt".
"docopt" is not used in OpenStack.
- Remove requirements-check job.
Currently, "tornado" is a required package, but requirements-check job has a error.
However, to remove that error, adding "tornado" package to openstack/requirements was refused.
Change-Id: I3bb98ef733ff16558d241968b06c31fa7508d047
* Current
After devstack/stack.sh is completed, the monasca-analytics service
starts automatically. This service runs "Alert Fatigue Management"
example using Markov chain recipe.
* Issue
This example keep running until kill the process. Therefore, user can
not manually run the new example process after creating devstack env.
* Solve
Do not automatically start "Alert Fatigue Management" example. And,
remove the monasca-analytics service which is no longer necessary.
Change-Id: Ia37563c5b213d96f82f3361f33df135fcf5ad41c
Update OS version name in the README.
Update the openjdk/kafka version.
Control the kafka/zookeeper service by systemd.
Change-Id: If0866b4d816689ee54166a5061a4792fa205ae17
Some unit tests fail after "fix pep8 job" patch[1] was merged.
Fix unit tests for passing the py27/pep8 jobs.
This patch will be part of the update for python3.
[1] https://review.openstack.org/#/c/601606/
Change-Id: I418c5596f96f3994fbfc1651917c4e930b52a425
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I495dd93c5eb9dc7e2e388ff8bf55ae5534318bb0
Story: #2002586
Task: #24312
Update the cap on flake8 to support newer versions that work with
python3.
Update tox settings for pep8 environment to use python 3.
Ignore the error caused by not having 2 blank lines before functions and
classes.
Fix 2 syntax errors in function definitions.
Change-Id: I4da79ceefcbf1c23d217716f7b25ac6a092794ff
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
monasca_analytics/exception/aggregator.py
monasca_analytics/exception/ml.py
monasca_analytics/exception/sink.py
monasca_analytics/exception/source.py
test/config/test_connections.py
are empty files. We probably should delete it.
Change-Id: I7b6b3f90da3d11888f84f5e8efe0996598b875fb
As per OpenStack licensing guide lines [1]:
[H104] Files with no code shouldn't contain any license header nor
comments, and must be left completely empty.
[1] http://docs.openstack.org/developer/hacking/#openstack-licensing
Change-Id: If01ebff066b535d46f04dc2d120cc8714bf1cad4
When I submitted the patches, I used wrong copyright on them.
This patch changes the copyright to appropriate one.
Change-Id: I0a48e9d416b99d72b4534de1f0376fd712f3a721