Red Hat Bugzilla – Bug 1281736
CLI is flooding server log by errors
Last modified: 2016-09-04 01:57:01 EDT
Description of problem:
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. In cli run: show datacenter dc
2. See /var/log/ovirt-engine/server.log
Trace that /ovirt-engine/api/datacenters/dc doesn't exists.
This is an engine issue, not CLI. Whatever is the order of the requests sent by the CLI the engine should react correctly.
I think that this shouldn't block verification bug 1241117, as the only effect is extract information in the log of the engine.
Currently when we receive an identifier from the caller we try to convert it to an UUID, calling the "asGuidOr404" method. If the conversion fails then we throw a "WebApplicationException" that is captured by the server (by Resteasy) and converted into a 404 HTTP error response. We do this in many places. In addition Resteasy also sends a message to the log. This behavior can be changed throwing a "NoLogWebApplicationException" instead, but this is Resteasy specific and we don't want to re-introduce dependencies on Resteasy specific things. As the effect isn't a serious problem, just additional information in server.log, I think we should postpone this to at least 4.0.
I don't think this should be prioritized, and as we're deprecating the CLI I suggest to close as wontfix.