PDA

View Full Version : Problems when Registering new Clients



mal90
17-Aug-2016, 10:00
Hi,

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 <module>
from up2date_client import rhnreg
File "/usr/share/rhn/up2date_client/rhnreg.py", line 21, in <module>
import hardware
File "/usr/share/rhn/up2date_client/hardware.py", line 52, in <module>
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:

1. When I delete the System from SUSE Manager and rerun the Bootstrap Script on the target Maschine it is registered without any problem.

2. 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.

3. Newly installed Maschines installed via Autoyast with Repositories that are Updated every week also fail to register with the same Error.



Could somebody point out what i am missing?

Thanks alot in advance

Malcolm

kwk
18-Aug-2016, 07:36
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.

mal90
18-Aug-2016, 08:04
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 <module>
from up2date_client import rhnreg
File "/usr/share/rhn/up2date_client/rhnreg.py", line 20, in <module>
from up2date_client import hardware
File "/usr/share/rhn/up2date_client/hardware.py", line 63, in <module>
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.

mal90
06-Sep-2016, 11:03
Hi,

the Problem was solved!

I found out that the Netbackup RPMs we added to SUSE Manager were causing these Problems.

Package-List:


Package 

Summary

Content Provider

SYMCnbclt-7.6.0.1-1.x86_64 NetBackup Client
SYMCnbjava-7.6.0.1-1.x86_64 NetBackup Java Console
SYMCnbjre-7.6.0.1-1.x86_64 NetBackup Java JRE
SYMCpddea-8.0.1.0-0.x86_64 Symantec Deduplication Agent
VRTSpbx-1.5.4.0-0.x86_64 Symantec Private Branch Exchange

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.

Greetings

Malcolm

hwirths_nde
28-Mar-2017, 16:34
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'.

amaxiprivate
06-Apr-2017, 10:24
Hello,

I installed the latest packages to the SM3 server, but after the new client registration hasn't worked.

Problem caused: apache2-2.4.16-19.1

Solution: You can downgrade the apache2 from 2.4.16-19.1 to 2.4.16-12.1.

Command to downgrade: zypper in --oldpackage apache2=2.4.16-12.1 apache2-prefork=2.4.16-12.1 apache2-utils=2.4.16-12.1