Monasca cli does not work with influxdb version >=0.11.0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Monasca |
Triaged
|
Medium
|
Unassigned |
Bug Description
It seems that influxdb returns the metrics in a different format since version 0.11.0. I've got the following error using the latest master of monasca-api with influxdb versions 0.11.0, 0.12.0 and 0.13.0.
[root@ubuntu monasca(monasca)]# monasca metric-list
ERROR (exc:80) exception: {
"title": "The repository was unable to process your request",
"description": "name"
}
HTTPException code=500 message={
"title": "The repository was unable to process your request",
"description": "name"
}
Monasca api log shows the following error messages:
2016-07-18 13:20:12.949 11833 ERROR monasca_
2016-07-18 13:20:12.949 11833 ERROR monasca_
2016-07-18 13:20:12.949 11833 ERROR monasca_
2016-07-18 13:20:12.949 11833 ERROR monasca_
2016-07-18 13:20:12.949 11833 ERROR monasca_
2016-07-18 13:20:12.949 11833 ERROR monasca_
2016-07-18 13:20:12.949 11833 ERROR monasca_
2016-07-18 13:20:12.949 11833 ERROR monasca_
2016-07-18 13:20:12.950 11833 ERROR monasca_
2016-07-18 13:20:12.950 11833 ERROR monasca_
2016-07-18 13:20:12.950 11833 ERROR monasca_
2016-07-18 13:20:12.950 11833 ERROR monasca_
2016-07-18 13:20:12.950 11833 ERROR monasca_
2016-07-18 13:20:12.950 11833 ERROR monasca_
2016-07-18 13:20:12.950 11833 ERROR monasca_
2016-07-18 13:20:12.950 11833 ERROR monasca_
2016-07-18 13:20:12.950 11833 ERROR monasca_
2016-07-18 13:20:12.950 11833 ERROR monasca_
The error occurs in function _build_
Since this change in InfluxDB is rather a backward-
1. explicitly stating that monasca api requires InfluxDB version 0.10.0 or older, or
2. making the code compatible with the latest version of InfluxDB. I think this is the preferred way.
The second method requires changes in the devstack script too, since it installs InfluxDB version 0.9.5 by default, which would be incompatible with the new implementation of metrics_repository.
summary: |
- Monasca cli does not work with influxdb version >=0.12.0 + Monasca cli does not work with influxdb version >=0.11.0 |
description: | updated |
description: | updated |
This is being addressed