ManageIQ / manageiq

ManageIQ Open-Source Management Platform
https://manageiq.org
Apache License 2.0
1.35k stars 899 forks source link

[RFE] add disk storage method returning the information about storage #19597

Open jcarter12 opened 4 years ago

jcarter12 commented 4 years ago
    • Proposed title of this feature request? new add disk storage method with information about storage
    • What is the nature and description of the request? User implementing a use case in my Cloudforms instance to add new disks by automation task. The add_disk method return boolean value , and user would need return with the create storage information.

      code used for the implementation is the following :

size=40 @vm=$evm.vmdb(:vm).find_by_name('CMP1KDTCAPP229') disks=@vm.hardware.disks result = @vm.add_disk("[#{@vm.storage_name}]", size * 1024, :sync => true, :thin_provisioned => true, :dependent => true)



The "result" variable contain a Boolean value : true/false

It would be really better an easier to have the added disk description returned  by such command, especially the SCSI address of the new disk.

In my current implementation, I am counting the number of disk before the disk addition, doing the addition, and then waiting for the number of disk to be higher that initially ... then I select the last disk, found the SCSI address and launch and Ansible playbook to format the new disk based on its SCSI address.

3.  - Why does the user need this? 
    The issue is that if several disk are added at almost the same time I am not able to distinguish them and find which is related to one request and which other is relater to other request.

4. -  How would the user like to achieve this? 
   creating a new method similar like add_disk , just with returned storage info.

5. - Org Source: https://bugzilla.redhat.com/show_bug.cgi?id=1779992
miq-bot commented 4 years ago

This issue has been automatically marked as stale because it has not been updated for at least 3 months.

If you can still reproduce this issue on the current release or on master, please reply with all of the information you have about it in order to keep the issue open.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the traige process documentation.