Description of problem: As of now, if a user has to automate the removal of multiple LUNs, they have to run the playbook which uses ovirt_remove_stale_lun multiple times. There are some cases where the user has to unmap a huge number of LUNs(like during a DR drill activity) and this would take time if it's a large environment with many hosts. So having the option to pass multiple LUNs to ovirt_remove_stale_lun will help to delete the LUNs faster and efficiently from all the hosts.
The Ansible role to remove the stale LUN can be wrapped and used in a loop that provides the needed LUNs. We do not have the capacity for enhancing it beyond basic usage.
This was already implemented by nijin here: https://github.com/oVirt/ovirt-ansible-collection/commit/cb455ab92f87c5383ce1f75d260a94f2c8d4af11 Adding doc text and moving to modified.
Can you please supply the verification flow that is required in order to verify this bug? We want a flow that will resemble the most to the flow the customer used. To be more specific - please update on the following: 1. How to create the stale luns in the setup of the test. 2. Where the ansible script was executed from on the customer side (from the engine?). 3. Does the customer modify the ansible script in some way before running it? 4. The relevant commands that were used in the process/flow. Thanks.
(In reply to Amit Sharir from comment #5) > Can you please supply the verification flow that is required in order to > verify this bug? > We want a flow that will resemble the most to the flow the customer used. > > To be more specific - please update on the following: > 1. How to create the stale luns in the setup of the test. You can try to remove any LUNs that are mapped to hosts which are not used by the storage domain or VM. > 2. Where the ansible script was executed from on the customer side (from the > engine?). engine. > 3. Does the customer modify the ansible script in some way before running it? No > 4. The relevant commands that were used in the process/flow. Used the example yml https://github.com/oVirt/ovirt-ansible-collection/blob/master/roles/remove_stale_lun/examples/remove_stale_lun.yml and changed the values to match with the environment. > > Thanks.
Following #c9 and #c13, moving to verified.
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 (RHV Engine and Host Common Packages [ovirt-4.4.10]), 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/RHBA-2022:0463