[Feature] REST API rolling updates - notifications + local VMs
Got an idea? Nice! 💡 We love hearing what features would make PegaProx better for you.
A friendly reminder: PegaProx is built by volunteers in our spare time. We can't promise timelines or guarantee every feature will be implemented — but every suggestion helps shape the roadmap!
Want to help move things faster?
- 💖 Become a Sponsor — sponsored features get prioritized
- ⭐ Star the project — helps with visibility
- 🤝 Even better: submit a PR with your idea!
Describe the feature
It would be nice to add 2 features to rolling update via REST API.
- Add Notification for your WebHook setup
- Live Migration of VMs with local Storage
Use Case
/
Alternatives considered
/
How important is this for you?
Would improve the REST API.
Checklist
- [x] I have searched existing issues and discussions to make sure this hasn't been requested before
- [x] I understand this is a wishlist and not a work order — volunteers decide what gets built, and when
- [x] I'm aware that "this should be easy, it's only a few lines" has never once turned out to be true 🪄
Hi, good news: both are already in the rolling update endpoint, they just never made it into the API reference. POST /api/clusters/<id>/updates/rolling takes notify_channels, a list of alert channel ids (your webhooks, GET /api/alert-channels lists them), and fires rolling_update.started, rolling_update.finished and rolling_update.interrupted at them. allow_local_disks: true live-migrates the VMs on local storage with --with-local-disks, which copies the disks over the network, so give the run some time. I'll get both into the OpenAPI docs, and if PegaProx saves you some work, https://opencollective.com/pegaprox is how the project keeps going.
@mkellermann97
So this json body should be fine?
{
"include_reboot": true,
"node_order": [],
"skip_up_to_date": true,
"force_all": false,
"allow_local_disks": true,
"notify_channels": [ "..." ]
}
Yep, that body works. node_order: [] just means every node in the default order, so you can drop it, and skip_up_to_date: true / force_all: false are the defaults anyway. Two things to keep in mind: include_reboot needs the node.reboot permission on the user the token belongs to, and the POST needs an X-Requested-With: XMLHttpRequest header, API token or not. The channel ids are the 12-character id values from GET /api/alert-channels.
Thank you so much. Works like a charm.