canonical / ubuntu-pro-client

Ubuntu Pro Client for offerings from Canonical
https://canonical-ubuntu-pro-client.readthedocs-hosted.com/en/latest/
GNU General Public License v3.0
52 stars 73 forks source link

Feature: `--skip-checks` or `--tolerate-errors` flag on `pro enable` to continue instead of undoing when a step goes wrong #3127

Closed orndorffgrant closed 4 months ago

orndorffgrant commented 4 months ago

Please describe the scenario where the new feature would be useful

In special situations, one of the steps during pro enable may fail, but the user wants pro to go as far as it can anyway. Today, it will undo everything when a step fails.

Describe the solution you'd like

Some flag for enable, perhaps --tolerate-errors that tells pro to keep going and not undo anything even if something goes wrong.

Current behavior

Right now, if the apt-helper auth check fails, or if a package fails to install, pro enable will undo everything it has done so far.

orndorffgrant commented 4 months ago

After discussion with the team, we think this carries a lot of risk of abuse (resulting in broken systems) and will bring little benefit. If we discover a strong use-case we will reconsider.