Bug 2004018 - Modify ovirt_disk Ansible module to allow setting the bootable flag only if disk is attached to a virtual machine
Summary: Modify ovirt_disk Ansible module to allow setting the bootable flag only if d...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-ansible-collection
Version: 4.4.7
Hardware: All
OS: Linux
medium
medium
Target Milestone: ovirt-4.5.0
: 4.5.0
Assignee: Martin Necas
QA Contact: Barbora Dolezalova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-14 10:56 UTC by Sam Wachira
Modified: 2024-10-01 19:14 UTC (History)
3 users (show)

Fixed In Version: ovirt-ansible-collection-2.0.0
Doc Type: Enhancement
Doc Text:
With this release, an error message has been added to the ovirt_disk module, warning that the parameters 'interface', 'activate', 'bootable', 'uses_scsi_reservation' and 'pass_discard' cannot be used without specifying a VM.
Clone Of:
Environment:
Last Closed: 2022-05-26 17:25:09 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-ansible-collection pull 347 0 None open ovirt_disk add warning for DiskAttachments params 2021-09-20 09:16:55 UTC
Red Hat Issue Tracker RHV-43641 0 None None None 2021-09-14 11:01:59 UTC
Red Hat Knowledge Base (Solution) 6323111 0 None None None 2021-09-28 11:41:13 UTC
Red Hat Product Errata RHSA-2022:4712 0 None None None 2022-05-26 17:25:31 UTC

Description Sam Wachira 2021-09-14 10:56:27 UTC
Description of problem:
- The ovirt_disk Ansible module allows you to define the 'bootable' parameter and run in playbooks regardless of whether the disk is attached to a virtual machine or not.
- In a scenario where a new disk is created but not attached to a virtual machine and 'bootable: true', the playbook run is successful. However, the 'bootable' flag is not set.

Version-Release number of selected component (if applicable):


How reproducible:
Fully

Steps to Reproduce:
Using ovirt_disk Ansible module,
1. Create new disk with 'bootable: true' and not attached to VM.

Actual results:
Disk is created and 'bootable' flag is not set.

Expected results:
Playbook run should display warning or fail if the disk is not attached to a virtual machine and contains 'bootable: true'

Additional info:
- Only disks attached to a virtual machine can have the bootable flag set in RHV.
- Documentation for the 'bootable' parameter needs to be updated to include this information (https://console.redhat.com/ansible/automation-hub/repo/published/redhat/rhv/content/module/ovirt_disk)

Comment 4 Barbora Dolezalova 2022-05-11 12:22:59 UTC
Verified in ovirt-ansible-collection-2.0.3-1.el8ev.noarch

Expected results met: [WARNING]: Cannot use 'interface', 'activate', 'bootable', 'uses_scsi_reservation' or 'pass_discard' without specifing VM.

Comment 9 errata-xmlrpc 2022-05-26 17:25:09 UTC
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 (Moderate: RHV Engine and Host Common Packages security update), 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/RHSA-2022:4712

Comment 10 meital avital 2022-08-03 07:27:58 UTC
Due to QE capacity, we are not going to cover this issue in our automation


Note You need to log in before you can comment on or make changes to this bug.