| Summary: | User unable to query disks of assigned VM | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Lukas Svaty <lsvaty> |
| Component: | RestAPI | Assignee: | Juan Hernández <juan.hernandez> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Lucie Leistnerova <lleistne> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.0.2.7 | CC: | bugs, lleistne, mgoldboi, mperina |
| Target Milestone: | ovirt-4.0.4 | Keywords: | Regression |
| Target Release: | 4.0.4 | Flags: | rule-engine:
ovirt-4.0.z+
rule-engine: ovirt-4.1+ rule-engine: blocker+ mgoldboi: planning_ack+ mperina: devel_ack+ lsvaty: testing_ack+ |
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-26 12:32:21 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: | |
|
Description
Lukas Svaty
2016-08-19 17:30:00 UTC
Targeting 4.0.4 for now. Juan if the cause is not in RESTAPI but Engine, please move to storage team. This bug report has Keywords: Regression or TestBlocker. Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP. changing back priority and severity since it applies only to user level and not admin. The reason for this is that in order to retrieve the disks it is necessary to also retrieve additional information, in particular it is necessary to retrieve the disk attachments, as that is where the "bootable" and "interface" attributes are in version 4 of the API. Apparently the user that has permissions to see the disks doesn't have permission to see the disk attachments, so retrieving that additional data fails, and as a result the complete operation fails. The proposed patch changes the API so that it ignores the failures to retrieve that additional data, but the result will be that the disks won't contain the "bootable" and "interface" attributes. We will probably need additional backend changes to make sure that the user that has permission to see the disks has also permission to see the disk attachments. /vms/$VM_ID/disks version 3 returns disk informations for test user /vms/$VM_ID/diskattachments version 4 returns disk attachment informations for test user without header "Filter: true" returns error 'query execution failed due to insufficient permissions.' verified in ovirt-engine-restapi-4.0.4.2-0.1.el7ev.noarch |