New resources are unable to be created in gnocchi after upgrade to Yoga
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ceilometer (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
After upgrade from Ussuri to Yoga, ceilometer doesn't work properly. Metric measures are generated for old servers. But for new created servers, metric measures are unable to be published to gnocchi.
The issue happens in batch_measures function:
def batch_measures(
# NOTE(sileht): We don't care about error here, we want
# resources metadata always been updated
try:
except gnocchi_
if not isinstance(
if e.message.
Here we test if e.message is a dict. In my case ceilometer gets a message with a dict. But for some reason the character "'" in the exception message from gnocchi-api is converted to "'", that breaks this part of code.
Errors in notification logs:
2022-05-04 17:02:45.762 20 ERROR ceilometer.
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
The server could not comply with the request since it is either malformed or otherwise incorrect.<br /><br />
{'cause': 'Unknown resources', 'detail': [{'
033d7-f774-
Status changed to 'Confirmed' because the bug affects multiple users.