since a few weeks i am having troubles registering new clients to SUSE Manager 2.1. I had no problems for 400+ Servers but now i can`t register any new maschines. I can easily recreate it with any maschine that is already registered to the SUSE Manager.
When i install a new maschine via Autoyast and try to run the Bootstrapscript afterwards i get this error:
REGISTRATION
registering
Traceback (most recent call last):
File “/usr/sbin/rhnreg_ks”, line 33, in
from up2date_client import rhnreg
File “/usr/share/rhn/up2date_client/rhnreg.py”, line 21, in
import hardware
File “/usr/share/rhn/up2date_client/hardware.py”, line 52, in
from hardware_hal import check_hal_dbus_status, get_hal_computer, read_hal
ImportError: No module named hardware_hal
I tried to recreate it with an updated maschine that is already registered to SUSE Manager. These are my findings on it:
When I delete the System from SUSE Manager and rerun the Bootstrap Script on the target Maschine it is registered without any problem.
When I delete the System from SUSE Manager and follow this “Unregister Maschines Guide” https://www.novell.com/support/kb/doc.php?id=7013242 and try to rerun the Bootstrap Script it fails with the same Error above.
Newly installed Maschines installed via Autoyast with Repositories that are Updated every week also fail to register with the same Error.
Please make sure that the SUSE Manager Server is up to date with latest patches. Then re-create the ‘bootstrap’ repositories with ‘mgr-create-bootstrap-repo’ and try again.
I already checked the SUSE Manager for updates, but there were none. Thanks for pointing out the ‘mgr-create-bootstrap-repo’, i recreated the ‘bootstrap’ repos.
After running ‘zypper rm -u spacewalksd spacewalk-check zypp-plugin-spacewalk spacewalk-client-tools’ again i tried to run the bootstrap script again:
…
Retrieving repository ‘susemanager-client-setup’ metadata …[done]
Building repository ‘susemanager-client-setup’ cache …[done]
Specified repositories have been refreshed.
Loading repository data…
Reading installed packages…
Resolving package dependencies…
The following 8 NEW packages are going to be installed:
python-gobject2 python-gudev python-hwdata spacewalk-check
spacewalk-client-setup spacewalk-client-tools spacewalksd
zypp-plugin-spacewalk
The following package is going to be upgraded:
rhnlib
The following 9 packages are not supported by their vendor:
python-gobject2 python-gudev python-hwdata rhnlib spacewalk-check
spacewalk-client-setup spacewalk-client-tools spacewalksd
zypp-plugin-spacewalk
…
It installs the packages but then fails again with:
REGISTRATION
registering
Traceback (most recent call last):
File “/usr/sbin/rhnreg_ks”, line 37, in
from up2date_client import rhnreg
File “/usr/share/rhn/up2date_client/rhnreg.py”, line 20, in
from up2date_client import hardware
File “/usr/share/rhn/up2date_client/hardware.py”, line 63, in
from up2date_client.hardware_hal import check_hal_dbus_status, get_hal_computer, read_hal
ImportError: No module named hardware_hal
*** Error: Registering the system failed.
Maybe I should point out that any attempt to run ‘rhnreg_ks’ from commandline also fails with the traceback above.
It seems they provided some required Libaries which were somehow incompatible to the Packages required for the SuSe Manager registration process. After removing these packages everything went fine.
I discovered the same error today trying to register a SLES12 SP1 client with an up to date bootstrap repository to a SUSE Manager 3 instance.
In my case I found the following:
Indeed, there is no file ‘/usr/share/rhn/up2date_client/hardware_hal.py’ on the client machine.
Instead there is a file ‘/usr/share/rhn/up2date_client/hardware_gudev.py’, which is the preferred source of import in the ‘/usr/share/rhn/up2date_client/hardware.py’ script. Only if the import from this module fails, functions from the ‘hardware_hal’ module are tried to import.
The imports from the ‘hardware_gudev’ module failed, because a needed shared object file, /usr/lib64/libgobject-2.0.so.0 in my case, was missing.
After installing the corresponding package ‘libgobject-2_0-0’ everything went as expected.
A look into the zypper history showed:
The package ‘libgobject-2_0-0’ has been removed by a previous deinstallation I made.
Running the bootstrap script installed at least the ‘python-gobject2’ package, but not the ‘libgobject-2_0-0’.