Skip to content
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

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

Open
B3DTech opened this issue Feb 19, 2021 · 3 comments
Open

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

B3DTech opened this issue Feb 19, 2021 · 3 comments

Comments

@B3DTech
Copy link

B3DTech commented Feb 19, 2021

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
Copy link

louiscbrooks23 commented Jun 14, 2022

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
Copy link

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
Copy link

louiscbrooks23 commented Jul 20, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants