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

Hyper-V Inventory Doesn't Add Storage for VMs with VHDs on Network Drive #5383

Open
jerryk55 opened this issue Nov 11, 2015 · 6 comments
Open

Comments

@jerryk55
Copy link
Member

VMs with VHDs residing on network-mounted drives, starting with \ - have a NULL Storage_ID in the database. An attempt to run smart state analysis on one of these vms fails with the message "Is not located on a storage". The drive letter can be obtained via the PowerShell command "Net Use". Querying the VM settings shows the "" address rather than the drive letter. The inventory script should probably do the right thing. In addition the code for obtaining the actual VHD file in Smart State Analysis needs to do the right thing.
@blomquisg this is probably an issue for your team (at least partially).

jerryk55 added a commit to jerryk55/manageiq that referenced this issue Mar 10, 2016
Add changes to implement running SSA on HyperV virtual disks which are
network mounted on the server.

1) in the MiqScvmmVm.init_disk_info determine whether a disk is network mounted.
2) in the Vhdx and Vhd disk modules pass the network attribute when instantiating
   a MiqHyperVDisk, and pass the attribute along when getting a parent disk (in the
   case of checkpoints/snapshots).
3) Add the winrm-elevated accessor to MiqWinRM, and make sure MiqHyperVDisk uses the correct
accessor to run remote commands depending upon whether the virtual disk is remote-mounted
or not.
4) Allow scanning of Microsoft VMs without storage in the DB (See Issue ManageIQ#5383)
jerryk55 added a commit to jerryk55/manageiq that referenced this issue Mar 10, 2016
Add changes to implement running SSA on HyperV virtual disks which are
network mounted on the server.

1) in the MiqScvmmVm.init_disk_info determine whether a disk is network mounted.
2) in the Vhdx and Vhd disk modules pass the network attribute when instantiating
   a MiqHyperVDisk, and pass the attribute along when getting a parent disk (in the
   case of checkpoints/snapshots).
3) Add the winrm-elevated accessor to MiqWinRM, and make sure MiqHyperVDisk uses the correct
accessor to run remote commands depending upon whether the virtual disk is remote-mounted
or not.
4) Allow scanning of Microsoft VMs without storage in the DB (See Issue ManageIQ#5383)
@bronaghs
Copy link

Hi @jerryk55 - I see a lot of commits / PRs made against this issue. Should this still be open?

@jerryk55
Copy link
Member Author

@bronaghs I think so. The commits were a work-around to allow SSA to work in this situation, but the storage_id is still NULL in the database for these VMs. Assuming we want the storage to be populated correctly for these VMs, the issue would be still open. Your mileage may vary.

@bronaghs
Copy link

Ok, Thanks @jerryk55

@miq-bot miq-bot added the stale label Sep 16, 2017
@miq-bot
Copy link
Member

miq-bot commented Sep 16, 2017

This issue has been automatically marked as stale because it has not been updated for at least 6 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!

@JPrause
Copy link
Member

JPrause commented Nov 30, 2018

@jerryk55 if this issue is no longer relevant then please close.

@JPrause
Copy link
Member

JPrause commented Jan 16, 2019

@miq-bot close_issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants