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 72 forks source link

Feature: config `dont_cleanup_on_failed_enable` #3200

Open orndorffgrant opened 1 month ago

orndorffgrant commented 1 month ago

Please describe the scenario where the new feature would be useful

Somewhat frequently, there are issues with dependency versions or other package installability issues that cause pro enable fips to fail. In some cases, a valid workaround would be to enable access to the fips repo and then install the packages manually.

Describe the solution you'd like

pro enable fips --access-only should work for fips, fips-updates, and fips-preview.

Current behavior

root@teast:~# pro enable fips --access-only
One moment, checking your subscription first
FIPS does not support being enabled with --access-only
Could not enable FIPS.
orndorffgrant commented 1 month ago

This would mostly be useful for situations where pro enable fips fails and something needs to be debugged with fips sources enabled. An alternative could be a config item of dont_cleanup_on_failed_enable, so that the system could be examined after the failure with the fips sources still in place.

orndorffgrant commented 3 weeks ago

Discussed with team. +1 to config dont_cleanup_on_failed_enable in some form.