Bug 1518459
| Summary: | Add missing validations for affinity group, label, users and roles when registering a VM or a Template | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Maor <mlipchuk> | ||||
| Component: | Backend.Core | Assignee: | Benny Zlotnik <bzlotnik> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Elad <ebenahar> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 4.2.0 | CC: | amureini, bugs, bzlotnik, mlipchuk, ratamir, ylavi | ||||
| Target Milestone: | ovirt-4.2.1 | Flags: | rule-engine:
ovirt-4.2+
ylavi: exception+ |
||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | DR | ||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-02-12 11:56:56 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1505419 | ||||||
| Attachments: |
|
||||||
|
Description
Maor
2017-11-28 23:46:33 UTC
Maor, the link to the patch seems to be broken - can you take a look please? Severity? Hi Benny, I can't see any audit message in case a user/role/affinity-group/label is missing in the DC/cluster where the VM is registered to, after this VM's storage domain was detached from a different DC. Tested with rhvm-4.2.1.4-0.1.el7.noarch No warning in audit log in Webadmin events is shown, it does in engine.log [1]. I think we should also have this logged in the Webadmin. Leaving the bug ON_QA for now. Allon/Benny, please add your input, thanks. [1] 2018-02-01 13:55:57,602+02 WARN [org.ovirt.engine.core.bll.validator.ImportValidator] (default task-5) [] Affinity group g1 for cluster id df476b9e-8c90-40ae-a9ea-a0ba5bbeaef9 does not match VM cluster id 72112289-46ee-4049-a7a4-bc9f90ac1145 Created attachment 1389518 [details]
verification screenshot
As seen in the screenshot, in case an entity doesn't exist in the DC (such as affinity group or label), an event is shown in events tab in Webadmin along with log entry in engine.log:
2018-02-01 16:14:13,229+02 WARN [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-69063) [6df7d601-4341-4496-af31-677c1eb0daf4] EVENT_ID: IMPORTEXPORT
_PARTIAL_VM_MISSING_ENTITIES(1,188), The following entities could not be verified and will not be part of the imported VM test: 'Affinity groups: g1 Affinity labels: label Users: elad@internal-authz ' (User: adm
in@internal-authz)
Used rhvm-4.2.1.4-0.1.el7.noarch
This bugzilla is included in oVirt 4.2.1 release, published on Feb 12th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.1 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |