-
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
feat: proxmox_vm_info - add network information for guests #8471
feat: proxmox_vm_info - add network information for guests #8471
Conversation
- Uses agent information for qemu-vms - Uses network information for lxc container
This comment was marked as outdated.
This comment was marked as outdated.
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 <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
Thank you. I committed your suggestions. |
As far as I can judge this looks good. If nobody objects, I'll merge this in a week! |
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #8505 🤖 @patchback |
* feat: add network information for guests - Uses agent information for qemu-vms - Uses network information for lxc container * chore: add changelog fragment * fix: change default, add doc * chore: clarify doc * chore: add optional , * chore: fix pep8 indentation warning * Update plugins/modules/proxmox_vm_info.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/proxmox_vm_info.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Jan Wenzel <jan.wenzel@gonicus.de> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 2574cb0)
@coffeelover thanks for your contribution! |
…twork information for guests (#8505) feat: proxmox_vm_info - add network information for guests (#8471) * feat: add network information for guests - Uses agent information for qemu-vms - Uses network information for lxc container * chore: add changelog fragment * fix: change default, add doc * chore: clarify doc * chore: add optional , * chore: fix pep8 indentation warning * Update plugins/modules/proxmox_vm_info.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/proxmox_vm_info.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Jan Wenzel <jan.wenzel@gonicus.de> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit 2574cb0) Co-authored-by: Jan Wenzel <jan@coffeelover.de>
SUMMARY
Information of guests should include current network settings to support waiting on network settings when provisioning new machines. The methods for accessing the information are already present in the API and only need to be called.
The retrieval of network information can be enabled/disabled via new bool param network (default=false)
For qemu vms, agent must be enabled and running. Otherwise, a clear error message from the API is shown:
"msg": "Failed to retrieve QEMU VMs information: 500 Internal Server Error: QEMU guest agent is not running"
For lxc containers, the information is always there.
ISSUE TYPE
COMPONENT NAME
proxmox_vm_info
ADDITIONAL INFORMATION
Information of guests should include current network settings to support waiting on network settings when provisioning new machines. The methods for accessing the information are already present in the API and only need to be called.
New list of network interfaces in the result: