Skip to content

Commit 78d6710

Browse files
committed
BZ #1802206 - document --legacy-purge not working on EL5
1 parent 82e8ad5 commit 78d6710

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ By default, bootstrap.py does not delete the system's profile from the legacy pl
207207
**NOTES**:
208208

209209
- The `--legacy-purge` switch requires a user account on RHN/Satellite 5 with permissions to remove the systems in question.
210+
- The `--legacy-purge` switch does not work on EL5 systems, as they lack the tooling to instruct the RHN/Satellite5 API to purge the old system entry.
210211
- The `--legacy-login` and `--legacy-password` options allow the correct RHN/Satellite 5 username/password to be provided to bootstrap.py.
211212
- bootstrap.py will prompt the user for the Legacy Password if not provided via CLI parameter.
212213
- If you wish to skip the migration of the system from RHN or Satellite 5 to Foreman, pass `--skip migration` as a CLI option.

bootstrap.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,6 +1403,8 @@ def exec_service(service, command, failonerror=True):
14031403

14041404
# > IF RHEL 5, not removing, and not moving to new capsule prepare the migration.
14051405
if not options.remove and IS_EL5 and not options.new_capsule:
1406+
if options.legacy_purge:
1407+
print_warning("Purging the system from the Legacy environment is not supported on EL5.")
14061408
prepare_rhel5_migration()
14071409

14081410
if options.preserve_rhsm_proxy:

0 commit comments

Comments
 (0)