8 Replies Latest reply on Feb 3, 2016 10:11 AM by Bill Robinson

    Why is the SuSE patch download failing?

    Alex Bron

      I am using Bladelogic Server Automation 8.5.01 and its associated Offline Patch Downloader (All-OS-Patch-Downloaders-linux-build-8.5.01.tar.gz). For downloading Red Hat patches this works just fine. However when I try to download SuSE patches, it failes:

       

      ./suse_downloader.sh -configFile /patchrepo/configuration/suse-sles11-SP3-Pool.xml

      Initializing

      Downloader failed with errors: Error while updating metadata, Error: com.bmc.sa.patchfeed.FeedException: Request for url:

      ./suse_downloader.sh -configFile /patchrepo/configuration/suse-sles11-SP3-Pool.xml

      Initializing

      Downloader failed with errors: Error while updating metadata, Error: com.bmc.sa.patchfeed.FeedException: Request for url: https://nu.novell.com/repo/$RCE/SLES11-SP3-Pool/sle-11-x86_64/repodata/primary.xml.gz failed with status code: 400 (Caused By: Request for url: https://nu.novell.com/repo/$RCE/SLES11-SP3-Pool/sle-11-x86_64/repodata/primary.xml.gz failed with status code: 400) --- Cause:

       

       

      ======================= Download Result ================================

       

               RPMs downloaded         - 0

               RPMs download skipped   - 0

               RPMs download failed    - 0

       

       

      ========================================================================

       

      For testing purposes, I installed the offline patch downloader on my Linux desktop, configured it correctly and re-ran it, and again it fails with the same error message. However when I paste the url https://nu.novell.com/repo/$RCE/SLES11-SP3-Pool/sle-11-x86_64/repodata/primary.xml.gz using the same proxy server and the same credentials in my web browser, I can easily download the files.

       

      SO I'm stuck. I don't know why the patch downloader fails, and I don't know how to troubleshoot this issue. N.B. I'm using the latest All-OS-Patch-Downloader as available from BMC.

       

      Config file:

       

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>

      <!--

           Please categorize the os-arch filter as per one of the valid OS, Architecture values.

           Valid values for OS are SLES9, SLES10 and SLES11

           Valid values for Architecture are s390x, x86 and x86_64

          

           For more information regarding the URLs please refer to the documentation.

          

           Expect Suse Analysis to fail if OS Arch values are not from the above valid set of values.

           User is responsible for selecting correct combination of OS Arch, downloader will

           not validate it.

      -->

      <suse-downloader-config>

        <config>

          <proxy-settings>

            <port>8080</port>

            <host>www-proxy.my.internal.domain.com</host>

            <username/>

            <password/>

            <domain-name/>

            <proxy-type>squid</proxy-type>

          </proxy-settings>

          <temporary-location>/patchrepo/tmp/suse</temporary-location>

          <payload-repository-location>/patchrepo/SUSE/SLES11-SP3/Pool</payload-repository-location>

          <!-- The default value for download-request-retries will be 10 if no value is specified -->

          <download-request-retries>10</download-request-retries>

          <download-request-timeout>180000</download-request-timeout>

          <downloader-parallel-threads>10</downloader-parallel-threads>

        </config>

        <subscription>

          <os-arch-filter>

            <os>SLES11</os>

            <arch>x86_64</arch>

            <url>https://nu.novell.com/repo/$RCE/SLES11-SP3-Pool/sle-11-x86_64/rpm/</url>

            <username>(username here)</username>

            <password>(password encoded here)</password>

          </os-arch-filter>

        </subscription>

      </suse-downloader-config>