image_utils: log message uses incorrect variable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Triaged
|
Low
|
Unassigned |
Bug Description
Observed in master (Antelope development), but goes back pretty far in the stable branches.
Example log message:
2023-02-15 15:42:32.242 66 ERROR oslo_messaging.
(Note the "image is of type False" phrase, which is supposed to say what the disk_format of the image is.)
This happens at https:/
In the function where this happens, we don't have the image metadata available, and I'm not sure it's worth making a call to glance to get it. The disk format could be passed in to the function, but I'm not sure that gives us really interesting information. So maybe the thing to do is just have one error message here. You can decide how you want to fix it, and reviewers will let you know what they think (or you can ask at the weekly cinder meeting).