Bug 998980
Summary: | [RFE] Logging for user changes | ||
---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Martin Pavlik <mpavlik> |
Component: | RFEs | Assignee: | Piotr Kliczewski <pkliczew> |
Status: | CLOSED WONTFIX | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | --- | CC: | bugs, emesika, gklein, iheim, lpeer, oourfali, pkliczew, rbalakri, Rhev-m-bugs, yeylon, ylavi |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | --- | Flags: | ylavi:
ovirt-future?
sherold: Triaged+ rule-engine: planning_ack? mpavlik: devel_ack? rule-engine: testing_ack? |
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | infra | ||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-12-31 09:01:02 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Martin Pavlik
2013-08-20 13:09:51 UTC
Martin - any change done by a user today is supposed to be audited. iiuc, the gap you are missing is on what actually changed in edit commands (specifically for a VM edit command?) (In reply to Itamar Heim from comment #1) > Martin - any change done by a user today is supposed to be audited. iiuc, > the gap you are missing is on what actually changed in edit commands > (specifically for a VM edit command?) yes, I came over it when editing QoS, if I will change for example bandwidth for network inbound traffic, the log will just record that there was an update of QoS, if I do 5 such changes over period of time, and than receive complaint from user/s that connection of their VMs is causing trouble, I will have no chance to know what was changed when and how, therefore my job to mitigate this problem will be more complicated setting to infra to try and handle this in a generic manner. i have some recollection of an ObjectIdeneityChecker or something like that for comparing fields and checking which were changed which may be relevant. There are two ways of solving this issue. First one is nice generic way for all the update commands which would require to change command inheritance hierarchy. There is no common base for update commands. All the commands inherit directly or indirectly from VdsCommand. By having this update common abstraction we could introduce generic behavior across them. As short term solution we can change AuditLogableBase to introduce logupdate which will add object delta to the message. For each update command we can override logCommand method and provide object delta using ObjectIdeneityChecker. I think the right place to handle this, using entities making sense to use is at the REST API level, once it becomes the entrypoint for the GUI. so we should revisit this one later on. |