MySQL-python has GPL2 license. Apache license is not compatible with it.
We propose to replace it with pymysql which has MIT license.
Change-Id: I8d758f5e4908c1047dc4167ebd28cad24fff3a28
Bring over the cleaning line from run_tests.sh for the pyc files to
all the tox runs.
This should eliminate the need to clean -x -i to kill pyc files in
your local directory to get tests to pass.
Change-Id: I0f59c977411d20751a26cac39504c51896b2eab8
Closes-Bug: #1368661
New consumer object intended to be used by the pieces of Monasca that want to
consume data from kafka.
New producer object that will write to kafka in a performant manner.
Require kazoo
Removed PyYaml requirement
Change-Id: I2eb0c5cd1ed64b83a67912109c4c6de7a1d73722
- fix prevents situation when decimal
separator for default locale
is set to comma instead of dot.
Change-Id: I667682e4ed5e1d69e23ac2e82922cca024d1c467
- removed unused dependencies
- matched joda to entire monasca
- switched to standard java date + added explicit UTC
Change-Id: I04e986097010792aed772e83e529edb6d88a2125
Mysql jdbc connector returns an Integer when querying period and period.
Drizzle jdbc connector returns a Long. Adding appropriate conversions
that are used by monasca-api and monasca-thresh.
Change-Id: I4282b7de3fcbd82b3196bce1b4379076eff60bbc
This is the start of a python monasca-common package.
Initially it has a common python logging config,
common oslo opts, and mysql common code.
Change-Id: I15c32b72fc42a8c5ce9eeedf20ca3a11907bf29f
add adminUserDomainName and adminProjectDomainName to api-config.yaml
to scope the username or projectname with a domainname
Change-Id: I12e0a1594961ef15eac6e401521d05a15a2014ad
Closes-Bug: #1484594
- refactored code to match java guidelines
- added missed indexes
- fixed invalid string lengths according to latest mon.sql from ansible-monasca-schema
- introduced relations
- using ordinal for enum fields
Change-Id: Ic84bf542c10ff714885c7a53bb9cbe3a2fb728cd
In the default case of a period being 60 and the evalation period being 60, the
window was being alternately slid 0 slots and then 2 slots. This caused it to
reject some recent measurements.
To illustrate what was happening, assume a SlidingWindow with a period of 60, and
a viewEndTimestamp of 60, and the AlarmDelay default of 30 seconds. AlarmDelay is
used to increase the likliehood a metric arrives before the window is evaluated.
Also assume the evaluation period is happening at 20 seconds after every minute.
On the first one, at time 20, the time is not past the viewEndTimeStamp so nothing
happens. On the second one, at time 80, the time is past the viewEndTimeStamp but
the window doesn't slide because the time has be > viewEndTimestamp + alarmDelay.
At time 140, time is > viewEndTimestamp + alarmDelay so the window is slid. However,
since the alarmDelay wasn't being accounted for in the number of slots to slide, it
was sliding it one too far. On the next period it wouldn't slide at all and then
the next one it would do two again.
This was fixed by accounting for alarmDelay when calculating the number of slots to
slide
Change-Id: I4fcfd41f2de515684b3d0054f9c46c925ee4807b
If threshold is very large, for example, 21474836480, it would get
printed using scientific notation. If that expression was then used
to recreate the AlarmSubExpression, it would fail because the parser
didn't handle scientific notation.
So, instead use DecimalFormat to ensure a valid decimal number without
scientific notation. This then limits the threshold to 15 decimal
places, but that should be enough. It would be better to have no limit
but I have not been able to find a way to do that.
Change-Id: I0511bd73a0ab65498dd615d8f5049b5663720b6a
Fixes JAH-1987.
Fixes "API is failing keystone authentication and never recovering".
Make Monasca-API release HTTP connection in finally clause for Keystone
requests.
Change-Id: Ia4c9899a311794cad8f2fa538fce11bcc265a7e2
Add optional valueMeta to Metric
Removed arrays of timestamps and values Metric. It was undocumented
and unused
Implements: blueprint measurement-meta-data
Change-Id: I5ae3cf6b18ba81b2f6ee707f3814655249d5d261
Add method to determine if current time is past slot end timestamp
Allow a delay to be configured to allow time for metrics to be
recieved. Otherwise, metrics were being discarded if they didn't
arrive immediately
Moved some tests to their proper location
Change-Id: Ie50f96ee0f2b7af0288e1d2597666f63ae3ff4dc
This commit is really to trigger a new post build as zuul seems
to have lost the one for the previous commit
Change-Id: I3b2fd2f48bfc1b2321a41d8b81ab61ff9fecd7ab
Previously, it would use token authentication if adminToken was set
regardless of the value of adminAuthMethod
Also, remove authentication using Keystone v2 since it will be
deprecated shortly
Remove special HP handling for endpoints and services since it
isn't required anymore
Simplify the code by getting rid of some unneeded generics
Closes-Bug: 1403175
Change-Id: I27e563d68e5266703111f82ab032dc13131f1304