can not find private flavor

Bug #1827278 reported by jianyu li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ceilometer
New
Undecided
Unassigned

Bug Description

when flavor is private, ceilometer fail to find flavor id. log error as below

ERROR ceilometer.publisher.gnocchi [-] Error creating resource 6743c61e-e93d-4bdb-a3f7-4c663d8f7f70: Invalid input: required key not provided @ data[u'flavor_id'] (HTTP 400): BadRequest: Invalid input: required key not provided @ data[u'flavor_id'] (HTTP 400)

In our environment, I can fix it as below

ceilometer/compute/discovery.py
132c132
< return self.nova_cli.nova_client.flavors.find(name=name).id
---
> return self.nova_cli.nova_client.flavors.find(name=name,is_public=None).id

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.