Katello / katello-client-bootstrap

Bootstrap Script for migrating systems to Foreman & Katello
GNU General Public License v2.0
52 stars 63 forks source link

Why is migrating CentOS 7 off Spacewalk so difficult? #344

Open B3DTech opened 3 years ago

B3DTech commented 3 years ago

I'm trying to move CentOS 7 systems that are currently using SpaceWalk over to Foreman/Katello/Ansible. Running the bootstrap script causes all sorts of issues that I'm having trouble tracking down.

It was complaining that I couldn't find the subscription-manager-migration repo, so I added the one recommended by candlepin's site. https://copr-be.cloud.fedoraproject.org/results/dgoodwin/subscription-manager/epel-7-x86_64/00273890-subscription-manager/

Try again - this time it complains that the version of subscription manager I have is too new and need to downgrade from 1.24.42-1 to 1.17.6-1. Ok - so I did a yum downgrade.

Next up, it can't find subscription-manager-migration-data RPM. Ugh. Where do I find this one? I see some references for RHEL, but not for CentOS.

Feel like this shouldn't be so frustrating.

louiscbrooks23 commented 2 years ago

Did you ever figure this out as I'm having the same issue? Cannot migrate CentOS7 systems from Spacewalk to Katello due to missing subscription-manager-migration RPM

mlazzarotto commented 2 years ago

Did you ever figure this out as I'm having the same issue? Cannot migrate CentOS7 systems from Spacewalk to Katello due to missing subscription-manager-migration RPM

Did you figured that out? I'm trying to migrate CentOS 7 to Katello but I can't find a mirror for up to date subscription-manager-migration package

louiscbrooks23 commented 2 years ago

This is what we're planning to do, we've tested on one client so far and it seems to work...

  1. Installl subscription-manager on client:

yum install subscription-manager

  1. Deregister client from spacewalk (https://listman.redhat.com/archives/spacewalk-list/2017-June/msg00016.html):

rm /etc/sysconfig/rhn/systemid sed -i 's/enabled *= *1/enabled=0/' /etc/yum/pluginconf.d/rhnplugin.conf systemctl disable rhnsd systemctl disable rhnmd

  1. Register with katello

rpm -Uvh http://**katellohostname**:9090/katello-ca-consumer-latest.noarch.rpm subscription-manager register --org=**org_name** --activationkey=**activationkey**

If you are using remote exectution will also need to add katello public key into authorized_keys of the user on the client and add sudo config (can pull this out of the kickstarts in katello)