Bug 1719737
Summary: | [downstream clone - 4.3.5] Cannot disable SCSI passthrough using API | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | RHV bug bot <rhv-bugzilla-bot> |
Component: | ovirt-engine | Assignee: | Tal Nisan <tnisan> |
Status: | CLOSED ERRATA | QA Contact: | Avihai <aefrat> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.3.1 | CC: | ldelouw, omachace, Rhev-m-bugs, tnisan |
Target Milestone: | ovirt-4.3.5 | Keywords: | ZStream |
Target Release: | 4.3.5 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | ovirt-engine-4.3.5.2 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | 1714834 | Environment: | |
Last Closed: | 2019-08-12 11:53:28 UTC | Type: | --- |
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: | 1714834 | ||
Bug Blocks: |
Description
RHV bug bot
2019-06-12 12:45:51 UTC
Ondra, how can we send a PUT request that will nullify an enum field? Seems that sending an empty value fails (Originally by Tal Nisan) I would introduce new value called DISABLED as we have for other enums. (Originally by Ondra Machacek) Added to automation as well on ovirt-engine 4.3.5-1 1) Direct LUN disk with enabled passthrough unfiltered mode : </disk> ............................................................................................................ <name>new_direct_lun_5918</name> <description></description> <alias>new_direct_lun_5918</alias> ............................................................................................................ <sgio>unfiltered</sgio> </disk> 2) Disabling an enabled passthrough direct LUN disk to passthrough disabled is successfull: 2019-06-27 17:42:29,081 - MainThread - diskattachments - DEBUG - PUT request content is -- url:/ovirt-engine/api/vms/28eb16de-3ab0-4cb5-bd88-1be30d81b26b/diskattachments/9c7ad0b3-fbf1-4733-9ae9-aa746ee4773d body:<disk_attachment> <interface>virtio_scsi</interface> <disk> <alias>new_direct_lun_5918</alias> <sgio>disabled</sgio> <shareable>true</shareable> </disk> </disk_attachment> 2019-06-27 17:42:29,083 - MainThread - diskattachments - INFO - Using Correlation-Id: diskattachments_update_b21330b1-29c4-419a 2019-06-27 17:42:29,522 - MainThread - diskattachments - DEBUG - Cleaning Correlation-Id: diskattachments_update_b21330b1-29c4-419a 2019-06-27 17:42:29,523 - MainThread - diskattachments - DEBUG - Response code is valid: [200, 201] 2019-06-27 17:42:29,524 - MainThread - diskattachments - DEBUG - Response body for PUT request is: <disk_attachment href="/ovirt-engine/api/vms/28eb16de-3ab0-4cb5-bd88-1be30d81b26b/diskattachments/9c7ad0b3-fbf1-4733-9ae9-aa746ee4773d" id="9c7ad0b3-fbf1-4733-9ae9-aa746ee4773d"> <active>true</active> <bootable>false</bootable> <interface>virtio_scsi</interface> <pass_discard>false</pass_discard> <read_only>false</read_only> <uses_scsi_reservation>false</uses_scsi_reservation> <disk href="/ovirt-engine/api/disks/9c7ad0b3-fbf1-4733-9ae9-aa746ee4773d" id="9c7ad0b3-fbf1-4733-9ae9-aa746ee4773d"/> <vm href="/ovirt-engine/api/vms/28eb16de-3ab0-4cb5-bd88-1be30d81b26b" id="28eb16de-3ab0-4cb5-bd88-1be30d81b26b"/> </disk_attachment> Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2019:2431 |