Thursday, 2021-06-24

mkarpiarzzigo: Looks like you are missing a field (called "type") in your mapping declaration.07:19
mkarpiarzWhat do you see in the "Type" column on the output from `cloudkitty hashmap mapping list`?07:19
mkarpiarzSee: https://docs.openstack.org/cloudkitty/latest/user/rating/hashmap.html#mapping07:20
zigomkarpiarz: For all service ID, I see there's Type: flat...07:40
mkarpiarzThe "type" field is missing from this object: `service_mappings = self._entries[service_name]['mappings']`07:44
mkarpiarzSo it might be something with the "service" object and not the mapping.07:45
mkarpiarzhttps://docs.openstack.org/cloudkitty/wallaby/user/rating/hashmap.html#service07:45
opendevreviewMichal Arbet proposed openstack/cloudkitty master: Fix code broken by SQLAlchemy 1.4  https://review.opendev.org/c/openstack/cloudkitty/+/79732307:47
opendevreviewMichal Arbet proposed openstack/cloudkitty master: Fix cloudkitty exception handling from gnocchiclient  https://review.opendev.org/c/openstack/cloudkitty/+/79731307:52
mkarpiarzUnless you can reproduce the problem in a shared environment (ideally based on https://github.com/mkarpiarz/cloudkitty-playground), I can only advice running the processor through PDB.07:59
opendevreviewMichal Arbet proposed openstack/cloudkitty master: Fix code broken by SQLAlchemy 1.4  https://review.opendev.org/c/openstack/cloudkitty/+/79732308:59
opendevreviewMichal Arbet proposed openstack/cloudkitty master: Fix cloudkitty exception handling from gnocchiclient  https://review.opendev.org/c/openstack/cloudkitty/+/79731309:04
zigomkarpiarz: Thanks, this helped.09:06
zigomkarpiarz: We've found out that in hashmap_mapping, we had one line that had value=None instead of value=NULL, which was porbably the cause of troubles.09:07
zigomkarpiarz: priteau: Do you know if it's ok to have twice the same metric name in /etc/cloudkitty/metrics.yml ? We'd like to bill instances that are ACTIVE, and the one SUSPENDED but with a different price (ie: only HDD of the flavor if the instance is SUSPENDED). I've seen we can use mutate: NOTNUMBOOL in metrics.yml. But will that work to have twice the "cpu" metrics?!?09:20
zigoShould I use the alt_name for this ?!?09:26
opendevreviewMerged openstack/cloudkitty master: SQLalchemy not creating constraint for Enum on version 1.4.0+  https://review.opendev.org/c/openstack/cloudkitty/+/79744310:50
opendevreviewMichal Arbet proposed openstack/cloudkitty master: Fix cloudkitty exception handling from gnocchiclient  https://review.opendev.org/c/openstack/cloudkitty/+/79731310:56
*** sboyron_ is now known as sboyron13:07

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!