monasca-api/monasca_api
Joseph Davis d6852ee1b7 Detect missing metric_id before passing through bytearray()
It is possible for a row in Cassandra to have a missing metric_id
(shows as 'null' in cqlsh).  This causes an ugly NoneType error
to be passed up to the user on the command line for
'monaca metric-list'.

Fix is to detect the missing value, log an error, and return the
row with None for the metric_id.

Change-Id: Ie617932c6b12a6cfe441510e120bb77a3470b9cf
Story: 2005305
Task: 30194
2019-03-26 14:17:18 -07:00
..
api Improve tests coverage 2019-03-11 14:49:33 +00:00
cmd Support standard config file path for monasca-api 2019-01-08 12:17:05 +01:00
common Detect missing metric_id before passing through bytearray() 2019-03-26 14:17:18 -07:00
conf Configure Cassandra cluster port 2019-03-14 18:47:21 +08:00
db Set up DB schema in DevStack plugin using Alembic 2019-02-20 14:53:10 +01:00
expression_parser Remove xrange for run both Python 2 and Python 3 2017-05-31 08:51:43 +02:00
hacking Remove xrange for run both Python 2 and Python 3 2017-05-31 08:51:43 +02:00
healthcheck Skip authentication for version and healthcheck endpoints 2018-11-20 14:12:53 +01:00
policies Move roles initialization to individual modules 2018-06-14 10:06:07 +02:00
tests Detect missing metric_id before passing through bytearray() 2019-03-26 14:17:18 -07:00
v2 Improve tests coverage 2019-03-11 14:49:33 +00:00
__init__.py Updated for Falcon 0.2 and clean-up 2015-06-06 21:47:03 -06:00
config.py Support standard config file path for monasca-api 2019-01-08 12:17:05 +01:00
healthchecks.py Using oslo.policy for monasca-api 2018-06-05 12:25:07 +00:00
version.py Prepare foundation for doc migration 2017-07-31 10:43:49 +00:00