vmware-samples / validated-solutions-for-cloud-foundation

A companion repository for the VMware Validated Solutions for VMware Cloud Foundation.
https://vmware.com/go/vvs
BSD 2-Clause "Simplified" License
23 stars 5 forks source link

[HRM]CD ROM connected status doesn't change when drive is disconnected. #92

Closed bhumitra closed 2 months ago

bhumitra commented 3 months ago

Code of Conduct

VMware Cloud Foundation

v4.5.2

Environment Details

No response

Description

The cmdlet Request-VmConnectedCdrom in the reporting module only reports the VMs on which the CD ROM is connected. The same information is sent to vrops.

e.g. Lets say we have 2 VMs with drives connected, the information is updated on corresponding objects of those 2 VMs on vrops.

Now if the user disconnects the drive from one of the VMs, and when HRM runs again in the next cycle, the Request-VmConnectedCdrom will report only 1 VM with drive connected. It will not report the other VM. So, on vrops, stale information will continue to exist and will not be removed as we didnt know which VM didnt have the drive connected.

The Request-VmConnectedCdrom needs to be changed to report all vms with drive state as either N/A if no drive is connected, or report the ISO path if drive is connected.

Expected Behavior

NA

Actual Behavior

NA

Steps to Reproduce

No response

Screenshots

No response

References

No response

bhumitra commented 2 months ago

Updated corresponding code in for Reporting Module. Table will display all the VMs, so that the VM status can be updated if a connected CD ROM is removed.

image
bhumitra commented 2 months ago

Will be fixed by #94