File name not logged when there is an error loading a metadef file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Undecided
|
Deepti Ramakrishna |
Bug Description
New image metadata can be added by creating a new json file in the directory glance/etc/metadefs (this metadata shows up in the image metadata UI on Horizon dashboard). If the file is loaded successfully, a log message like the following is printed:
2015-08-09 11:48:34.713 INFO glance.
However, if there is an error loading the file, we get a log message like:
2015-08-09 11:48:34.875 ERROR glance.
In other words, the file name is not printed. The UI silently ignores files that failed to load. This makes it very hard to know why the new metadata properties are not showing up in the UI. Printing the file name in the error message will make it easier to debug since the developer can now search the log for the new file name.
REPRO:
1) Add a new json file, say data-security.json, containing some error in the glance/etc/metadefs directory. Sample file: http://
2) Run devstack by typing ./stack.sh. Examine the devstack log printed to the screen after it is done (you need to scroll up quite a bit).
EXPECTED:
Devstack log contains the file name along with error message.
2015-08-09 11:48:34.875 ERROR glance.
ACTUAL:
Devstack log does NOT contain the file name, only the error message.
2015-08-09 11:48:34.875 ERROR glance.
Changed in glance: | |
assignee: | nobody → Deepti Ramakrishna (dramakri) |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/210879
Review: https:/