PDA

View Full Version : Crashed SUMA server - howto unregister clients



jdoeconsulting
21-Mar-2014, 09:56
Hi all,

I've got a crashed SUMA test server that isn't going
to be fixed. I've got 2 RHEL 6 servers that are connected
to this SUMA server.

Any ideas how to unregister these 2 RHEL servers from SUMA
so I can get them connected to the normal RHN again?

Thanks

kwk
24-Mar-2014, 09:17
For RHEL, these pages should help
- https://access.redhat.com/site/solutions/8036
- http://www.redhat.com/archives/spacewalk-list/2008-September/msg00128.html

Just for completeness, here are the instructions for SLES
- http://www.novell.com/support/kb/doc.php?id=7013242

Hth,
Klaus

jdoeconsulting
27-Mar-2014, 16:08
Thanks Klaus,

That helped me out, but I needed to also fix the up2date file
as that was pointing to the SUMA Server.

pgurzick
19-Jan-2015, 08:09
Hi all,

I've got a crashed SUMA test server that isn't going
to be fixed. I've got 2 RHEL 6 servers that are connected
to this SUMA server.

Any ideas how to unregister these 2 RHEL servers from SUMA
so I can get them connected to the normal RHN again?

Thanks


https://www.novell.com/support/kb/doc.php?id=7013242

How to unregister SUSE Manager Client

This document (7013242) is provided subject to the disclaimer at the end of this document.
Environment


SUSE Manager
Situation

A client is registered to SUSE Manager, but needs to be unregistered.
Resolution

In order to unregister a SUSE Manager client, several rpms must be removed. Try the following method first:

# zypper rm -u spacewalksd spacewalk-check zypp-plugin-spacewalk spacewalk-client-tools

This will show the following:

Refreshing service 'spacewalk'.
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following packages are going to be REMOVED:
spacewalk-check spacewalk-client-setup spacewalksd zypp-plugin-python zypp-plugin-spacewalk

5 packages to remove.
After the operation, 301.0 KiB will be freed.
Continue? [y/n/?] (y):

The above 5 rpm packages are client specific, and should be removed.

If this fails, you'll have to do this manually. Don't do the "rpm -e" commands unless the "zypper rm" command above fails.

rpm -e spacewalk-client-setup
rpm -e spacewalksd
rpm -e spacewalk-check
rpm -e zypp-plugin-spacewalk
rpm -e zypp-plugin-python

After this is complete, remove the following file:
/etc/sysconfig/rhn/systemid

That file only exists on a client machine and is used to register itself with SUSE Manager.

When this is done, refresh the repositories on the server (zypper ref -s), and then list them out (zypper lr) and make sure everything looks good.

If any repositories pointing to spacewalk still exist, remove them using the following:

# zypper repos -d
# zypper removerepo <ID of the repo in the output from previous command>