-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
proxmox_kvm: enable 'force' restart of vm (as documented) #6914
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
I'm not 100% sure whether this is a good idea. Right now, the documentation does not say what should happen if force=true
is used with state=restarted
. Changing the current behavior from reboot to reset could break quite a lot of user.
Maybe it's better to fix this by updating the docs to no longer claim that force
is used for restarts as well, and by adding (in a separate PR) a new state resetted
that does a reset instead of a reboot?
recheck |
I would argue that this implementation follows the same design pattern as That said, you have authority, and I don't :P. If you'd like it done as you suggested, then I will do it that way. |
This is something for the module maintainers to decide... I don't know proxmox and the proxmox_kvm module good enough for that. |
I agree with @J4RF in this case. If the documentation for the whole time states the |
Ok, sounds good to me then. @J4RF can you update the changelog fragment to use double backticks instead of single quotes? (See my suggestion above.) Thanks. |
Co-authored-by: Felix Fontein <felix@fontein.de>
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #6997 🤖 @patchback |
* enable 'force' restart of vm * added changelog fragment * Update changelogs/fragments/6914-proxmox_kvm-enable-force-restart.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 17b4219)
@J4RF thanks for fixing this! |
…start of vm (as documented) (#6997) proxmox_kvm: enable 'force' restart of vm (as documented) (#6914) * enable 'force' restart of vm * added changelog fragment * Update changelogs/fragments/6914-proxmox_kvm-enable-force-restart.yml Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 17b4219) Co-authored-by: Jeff Turner <jeff@torusoft.com>
…xmox_kvm: enable 'force' restart of vm (as documented) (ansible-collections#6997)" This reverts commit 7d68af5.
* Revert "[PR #7020/b46d5d81 backport][stable-7] redfish_utils: Add support for "nextLink" property tag pagination (#7026)" This reverts commit 1dad953. * Revert "[PR #6914/17b4219b backport][stable-7] proxmox_kvm: enable 'force' restart of vm (as documented) (#6997)" This reverts commit 7d68af5. * Revert "[PR #6976/d7c1a814 backport][stable-7] [proxmox_vm_info] Re-use cluster resources API to use module without requiring node param (#6993)" This reverts commit fb3768a.
SUMMARY
The documentation states the follow for the the
force
parameter:Despite that,
force
is not actually used whenstate=restarted
, this PR aims to fix that by executing a VM "reset" when force isTrue
, and a "restart" otherwise.ISSUE TYPE
COMPONENT NAME
proxmox_kvm
ADDITIONAL INFORMATION
N/A