suse_register updates /etc/zmd/zmd.conf with unnecessary proxy information

  • 7006462
  • 16-Jul-2010
  • 27-Apr-2012

Environment

SUSE Linux Enterprise Server 10 Service Pack 3

Situation

SLES10 SP3 is setup to register with a SMT server.
In /etc/sysconfig/proxy proxy settings are enabled and variable for all _PROXY are set, including NO_PROXY.

When clientSetup4SMT.sh is run, it invokes suse_register which updates proxy-url in /etc/zmd/zmd.conf.
ZMD does not honor the NO_PROXY settings if it is set. This causes problems when the client tries to contact the SMT server and the client doesn't find the SMT server and no updates are available.

Eventually you will see the following error messages in /var/log/zmd-messages.log:

2010-07-19 18:56:28 INFO  WebCache             Retrieval of 'http://host.domain.com/repo/repoindex.xml' (try 1) failed: The remote server returned an error: (503) Service Unavailable.
2010-07-19 18:56:30 INFO  WebCache             Attempting to retrieve 'http://host.domain.com/repo/repoindex.xml' (try 2)
2010-07-19 18:57:45 INFO  WebCache             Retrieval of 'http://host.domain.com/repo/repoindex.xml' (try 2) failed: The remote server returned an error: (503) Service Unavailable.
2010-07-19 18:57:47 INFO  WebCache             Attempting to retrieve 'http://host.domain.com/repo/repoindex.xml' (try 3)
2010-07-19 18:59:02 INFO  WebCache             Retrieval of 'http://host.domain.com/repo/repoindex.xml' (try 3) failed: The remote server returned an error: (503) Service Unavailable.
2010-07-19 18:59:04 INFO  Progress             Progress.Stop Message: Download failed: (http://host.domain.com/repo/repoindex.xml) The remote server returned an error: (503) Service Unavailable.
2010-07-19 18:59:04 INFO  Progress             Progress.Stop Message: Failed to download XML metadata: Download failed: (http://host.domain.com/repo/repoindex.xml) The remote server returned an error: (503) Service Unavailable.
2010-07-19 18:59:04 INFO  ServiceManager       Failed to add service 'http://host.domain.com' (keeping): Failed to download XML metadata: Download failed: (http://host.domain.com/repo/repoindex.xml) The remote server returned an error: (503) Service Unavailable.

Resolution

A workaround is to manually edit /etc/zmd/zmd.conf and remove the values for proxy_url, proxy-password and proxy_username.

Novell built a patch which evaluates the NO_PROXY variable and provides a proxy-excludes to ZMD. This will add a line to /etc/zmd/zmd.conf adding the NO_PROXY value from /etc/sysconfig/proxy.

The suseRegister update, suseRegister-1.2-9.48.2 released September 2010 includes the patch to resolve the problem. Please update the package with the latest available update.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.