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

Add flags in vm.upgrade for scheduling #2647

Closed
mdechiaro opened this issue Nov 2, 2021 · 3 comments · Fixed by #2705
Closed

Add flags in vm.upgrade for scheduling #2647

mdechiaro opened this issue Nov 2, 2021 · 3 comments · Fixed by #2705

Comments

@mdechiaro
Copy link
Contributor

Is your feature request related to a problem? Please describe.
There is an option to schedule a VM hardware upgrade, so it upgrades when the system is rebooted. It would be a useful feature to have in govc, especially when you need to automate the upgrade of VMs so that they upgrade themselves during a scheduled patch cycle.

Describe the solution you'd like
govc vm.upgrade -vm $VM -scheduled -policy < always | never | onSoftPowerOff >

Describe alternatives you've considered
Currently the VM needs to be powered off, upgraded, then powered on. It's more efficient, especially when dealing with many VMs, to schedule this during a patch cycle and reboot.

Additional context
API docs I can find about it:

https://vdc-download.vmware.com/vmwb-repository/dcr-public/b50dcbbf-051d-4204-a3e7-e1b618c1e384/538cf2ec-b34f-4bae-a332-3820ef9e7773/vim.vm.ScheduledHardwareUpgradeInfo.HardwareUpgradeStatus.html

https://vdc-download.vmware.com/vmwb-repository/dcr-public/b50dcbbf-051d-4204-a3e7-e1b618c1e384/538cf2ec-b34f-4bae-a332-3820ef9e7773/vim.vm.ScheduledHardwareUpgradeInfo.html

https://vdc-download.vmware.com/vmwb-repository/dcr-public/b50dcbbf-051d-4204-a3e7-e1b618c1e384/538cf2ec-b34f-4bae-a332-3820ef9e7773/vim.vm.ScheduledHardwareUpgradeInfo.HardwareUpgradePolicy.html

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2021

Howdy 🖐   mdechiaro ! Thank you for your interest in this project. We value your feedback and will respond soon.

If you want to contribute to this project, please make yourself familiar with the CONTRIBUTION guidelines.

@dougm
Copy link
Member

dougm commented Jan 7, 2022

Hi @mdechiaro , just catching up here I see some commits in your fork referencing this issue.. do you want to open a PR against the govmomi repo so we can review and merge your changes?

@mdechiaro
Copy link
Contributor Author

@dougm Thanks for the reminder about this. I had to re-prioritize my workload last month and then took a long vacation. I plan revisiting this within the next two weeks and will submit a PR.

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

Successfully merging a pull request may close this issue.

2 participants