Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jcarter12 opened this issue Dec 5, 2019 · 1 comment
Open

Comments

@jcarter12
Copy link
Member

    • 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.

    • 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.
    • How would the user like to achieve this?
      creating a new method similar like add_disk , just with returned storage info.
@miq-bot
Copy link
Member

miq-bot commented Jun 11, 2020

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.

@gtanzillo gtanzillo added pinned and removed stale labels Jul 13, 2020
@Fryguy Fryguy added the size/m label May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Roadmap
  
Awaiting triage
Development

No branches or pull requests

6 participants