-
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 - new param to support unsafe updates #7843
proxmox_kvm - new param to support unsafe updates #7843
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've added some first comments.
Co-authored-by: Felix Fontein <[email protected]>
Thank you for taking the time to review the PR. While we have the thread open, I'd like to ping the module creator @helldorado and quickly discuss the original While I understand that reducing the number of ways an user can shoot themself in the foot is always a good approach, in this instance I believe the module should not enforce this restriction, and instead transparently implement the Proxmox API. Therefore I believe the module should avoid this opinion, thus removing the lines of code clearing up "unsafe" parameters. What do you think? Thanks for your time |
I don't know the proxmox API (and proxmox in general), but generally options that can avoid in data loss that potentially surprises users should be taken care of specially. For disk-related options, it could be that changing their values would re-create the disks and thus make all the data stored on the current disk(s) vanish. TPM state could contain cryptographic keys that get lost (and can't be recovered if they weren't stored anywhere else). (Losing network access is inconvenient, but nothing that cannot be undone without permanent loss of data. So no idea why |
plugins/modules/proxmox_kvm.py
Outdated
@@ -525,6 +525,12 @@ | |||
- Update of O(pool) is disabled. It needs an additional API endpoint not covered by this module. | |||
type: bool | |||
default: false | |||
update_unsafe: | |||
description: | |||
- If V(true), does not enforce limitations on parameters O(net), O(virtio), O(ide), O(sata), and O(scsi). |
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.
This is missing two affected parameters:
- If V(true), does not enforce limitations on parameters O(net), O(virtio), O(ide), O(sata), and O(scsi). | |
- If V(true), does not enforce limitations on parameters O(net), O(virtio), O(ide), O(sata), O(scsi), O(efidisk0), and O(tpmstate0). |
Actually I just saw that the documentation for the Your PR should also update documentation for |
Sorry it took a while. |
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.
Looks good to me. If nobody objects, I'll merge this in ~a week.
Backport to stable-8: cherry-pick succeededBackport PR branch: PR branch created, proceeding with making a PR. 🤖 @patchback |
* proxmox_kvm - new param to support unsafe updates * changelog fragments * Apply suggestions from code review Co-authored-by: Felix Fontein <[email protected]> * improved docs * updated `version_added` --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit c7a2e28)
@nxet thanks for your contribution! |
Backport to stable-8: cherry-pick succeededBackport PR branch: PR branch created, proceeding with making a PR. 🤖 @patchback |
* proxmox_kvm - new param to support unsafe updates * changelog fragments * Apply suggestions from code review Co-authored-by: Felix Fontein <[email protected]> * improved docs * updated `version_added` --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit c7a2e28)
…7954) proxmox_kvm - new param to support unsafe updates (#7843) * proxmox_kvm - new param to support unsafe updates * changelog fragments * Apply suggestions from code review Co-authored-by: Felix Fontein <[email protected]> * improved docs * updated `version_added` --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit c7a2e28) Co-authored-by: nxet <[email protected]>
@felixfontein thanks to you for the review and merge! |
SUMMARY
Add parameter
update_unsafe
to avoid limitations when updating dangerous values.ISSUE TYPE
COMPONENT NAME
proxmox_kvm
ADDITIONAL INFORMATION
This simply allows to override the limits present on specific config options during
update
.