-
Notifications
You must be signed in to change notification settings - Fork 63
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
[RFE] Migrating a system from RHSM or SAM using the bootstrap script should not require the --force option. #217
Comments
I agree that to "fix" a system, --force should not be needed. But: What if the script run by error? How to deal with a system to be fully re-registered and re-registered? Plus a corner case: is there a way through bootstrap.py to remove only one module (like puppet, or katello), in example to move from katello to Rex? Maybe --force make sense "as is" as behavior, for sure has to be more robust and avoid DB discrepancies. Hint: My 2 cents, |
If bootstrap is run on a host that is registered to RHN/Sat5 today by error, nothing stops the script from running. My PR just makes that behavior consistent when a system is registered via RHSM or SAM. It is only when the system is registered to a Satellite 6 / Katello instance that we prevent the user from re-running the script. This PR makes the standard workflow (registering/migrating from !(Katello|Satellite) work without --force for all source platforms).
I am pretty sure the
This is a use-case we dont cover at all today.
That's #168 (still WIP) :)
No. But I think that is beyond the scope of what
|
Got it. |
Description of problem from bz 1478769
When migrating a system from RHSM or SAM using bootstrap.py, the script will fail as it believes the system is already registered and the underlying subscription-manager command fails. Passing the --force option to bootstrap.py allows the registration to complete, however, this behavior is inconsistent. migrating from RHN/Sat doesn't require
--force
; migrating from RHSM/SAM does.Additionally, the --force option was originally intended to allow a user to override the logic that bootstrap.py has to prevent a user from running the script against a system which is already properly registered. Having to use the --force switch for a common registration workflow is counter-intuitive and overloads the meaning of --force
the script fails with an error similar to the following
Expected results:
Register should complete without having to pass --force.
The text was updated successfully, but these errors were encountered: