Novell Home

My Favorites

Close

Please to see your favorites.

Activation Key Config Auto-Deploy fails during bootstrap

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

Environment

SUSE Manager 1.7

Situation

The auto deployment of config files from a centrally managed channel on SUSE Manager fails during bootstrap. In the web interface (Schedule -> Failed Actions -> Action: Activation Key Config Auto-Deploy -> Failed Systems -> hostname) the following error can be found:

Summary: Deploy config files to system scheduled by (none)
Details: This action will be executed after 06/14/13 8:45:02 AM CEST.

This action's status is: Failed.
The client picked up this action on 06/14/13 8:45:02 AM CEST.
The client completed this action on 06/14/13 8:45:03 AM CEST.
Client execution returned "Fatal error in Python code occured [[6]]" (code -1)
Config Files:
/etc/security/limits.conf (rev. 1)
/root/.ssh (rev. 1)
/root/.ssh/authorized_keys (rev. 1)
Time: 06/14/13 8:45:02 AM CEST

In /var/log/up2date on the client this error is noticed:

[Tue May 28 13:54:51 2013] up2date updateLoginInfo() login info
[Tue May 28 13:54:51 2013] up2date logging into up2date server
[Tue May 28 13:54:51 2013] up2date successfully retrieved authentication token from up2date server
[Tue May 28 13:54:51 2013] up2date
Traceback (most recent call last):
  File "/usr/sbin/rhn_check", line 332, in __run_action
    def __do_call(method, params, kwargs={}):
  File "/usr/sbin/rhn_check", line 325, in __do_call
    for method_params in LOCAL_ACTIONS:
  File "//usr/share/rhn/actions/configfiles.py", line 210, in deploy
    _init()
  File "//usr/share/rhn/actions/configfiles.py", line 424, in _init
    server_url = config.getServerlURL()
<type 'exceptions.AttributeError'>: 'module' object has no attribute 'getServerlURL'

Resolution

Quick Workaround

Edit the bootstrap script and put a
rhncfg-client get
at the end of the script so the client manually fetches the files from the subscribed channels.

Solution

Create bootstrap repositories with recent client packages.

Please execute these steps on the SUSE Manager system:
  1. zypper remove spacewalk-client-repository \
    spacewalk-client-repository-sle-10-4 \
    spacewalk-client-repository-sle-10-3 \
    spacewalk-client-repository-sle-11-1

  2. Execute:

    mgr-create-bootstrap-repo

    Please enter the product label for which a bootstrap repo should get created for.

  3. Depending on if the bootstrap script contains this string:

    if [ "${Z_CLIENT_CODE_VERSION}" = "11" -a ${Z_CLIENT_CODE_PATCHLEVEL} -le 1 ]; then

    change it to:

    if [ "${Z_CLIENT_CODE_VERSION}" = "11" ]; then

This will allow to bootstrap new clients with more recent spacewalk-client-tools versions. If a client was already bootstraped, run

zypper remove spacewalk-check spacewalk-client-setup \
spacewalk-client-tools rhnlib zypp-plugin-spacewalk


and rerun the bootstrap script again to install the most recent client packages.

Cause

During the bootstrap process an older 1.2 version of the spacewalk-client-tools package gets installed. When the auto configuration deployment starts, the function getServerlURL() is called which is not supported by the 1.2 release, which cause the process to fail.

Additional Information

For further information about up to date bootstrap repositories with SUSE Manager please see:
http://wiki.novell.com/index.php/SUSE_Manager/Uptodate_bootstrap_repo

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7012605
  • Creation Date:14-JUN-13
  • Modified Date:19-JUN-13
    • SUSESUSE Manager

Did this document solve your problem? Provide Feedback