can we automate "list the hostnames of each server to be upgraded" #5
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
in the instructions it says "list the hostnames of each server to be upgraded". The output from upgradable was like 1200 lines. Shouldn't it be possible to automatically create a list of hosts to upgrade from this? Or at least parse the output from
upgradableto display an easier to work with list?Short answer yes, also it's been in my plans since I started multiball, also I have started working on that project.
Long answer:
The upgrade process is meant to require you to reason about the upgradable output. We don't show the lines to have a long thing you have to paste for the sake of it: you're meant to look at the list and decide to reboot (or not) servers in question based on what needs to be upgraded. It also allows us to see when a particular package was upgraded for debugging purposes in case things break unexpectedly and/or invisibly after the upgrade process.
This reasoning step is part of the labor of the upgrade process which I hope to simplify but not eliminate: upgrading isn't meant to be a hands-off process, it's meant to be a safe process that doesn't leave us with mysterious breakages.