6 Replies Latest reply on Oct 23, 2012 5:12 PM by Lazar NameToUpdate

    rhel offline downloader xml

      Hi All,

       

      First time configuring the offline downloader for RHEL - I just want to pull down updates to patch a 5.5 target to 5.6

      Attempted the following config and this is not working - can anyone assist?

       

      <redhat-downloader-config>
          <config>
                      <!--<proxy-settings>
                                      <port>8080</port>
                                      <host>127.0.0.1</host>
                                      <username>user</username>
                                      <password></password>
                                      <domain-name></domain-name>
                                      <proxy-type>ntlm-v2</proxy-type>
                      </proxy-settings>-->
                      <temporary-location>/tmp</temporary-location>
                      <payload-repository-location>/opt/repo/</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>
                      <errata-type-filter>
                              <os>RHES5</os>
                              <arch>x86_64</arch>
                              <channel-label>rhel-x86_64-server-5</channel-label>
                              <errata-severity>
                                      <critical>true</critical>
                                      <high>true</high>
                                      <moderate>false</moderate>
                                      <low>false</low>
                              </errata-severity>
                              <errata-type>
                                      <security>true</security>
                                      <bugfix>true</bugfix>
                                      <enhancement>true</enhancement>
                              </errata-type>
                      </errata-type-filter>

                      <errata-ids-filter>
                              <os>RHAS4</os>
                              <arch>x86</arch>
                              <channel-label>rhel-i386-as-4</channel-label>
                              <errata-ids>
                                      <errata-id>RHSA-2009:0429</errata-id>
                                      <errata-id>RHSA-2009:0430</errata-id>
                                      <errata-id>RHEA-2009:0422</errata-id>
                                      <errata-id>RHBA-2009:0407</errata-id>
                                      <errata-id>RHSA-2009:0397</errata-id>
                                      <errata-id>RHBA-2009:0388</errata-id>
                              </errata-ids>
              </errata-ids-filter>
                      <!-- This filter should be used only if the downloader is executed on a Linux machine -->
                      <!-- This filter should not be used if the downloader is executed on a Windows machine -->
                      <update-level-filter>
                              <os>RHES5</os>
                              <arch>x86_64</arch>
                              <channel-label>rhel-x86_64-as-5</channel-label>
                              <update-level>6</update-level>
                      </update-level-filter>
          </subscription>
      </redhat-downloader-config>

        • 1. Re: rhel offline downloader xml

          You are trying to pull updates for the extended RHEL channels like 5.5 and 5.6. RH does not have a channel for 5.6 for this (see KB below), and they may discontinue this going forward (but I may be wrong). For 5.5 you can try the following channel:

           

          rhel-x86_64-server-5.5.z.

           

          Here's RH KB about 5.6 limitation: https://access.redhat.com/knowledge/solutions/45662

           

          In reality blade was meant to pull down the latest patches and rhel-x64_86-server-5 will pull whatever is latest for 5.x. Even if you can use 5.5.z extended channel now, this may not be available for other versions.

          • 2. Re: rhel offline downloader xml

            Thanks Lazar, sorry for a daft question but how do I set that in the xml?

            • 3. Re: rhel offline downloader xml

              <channel-label>rhel-x86_64-server-5.5.z</channel-label>

              instead of:

              <channel-label>rhel-x86_64-server-5</channel-label>

               

               

              this portion can be removed, remember this is a sample that give you multiple options:

               

                              <errata-ids-filter>

                                      <os>RHAS4</os>

                                      <arch>x86</arch>

                                      <channel-label>rhel-i386-as-4</channel-label>

                                      <errata-ids>

                                              <errata-id>RHSA-2009:0429</errata-id>

                                              <errata-id>RHSA-2009:0430</errata-id>

                                              <errata-id>RHEA-2009:0422</errata-id>

                                              <errata-id>RHBA-2009:0407</errata-id>

                                              <errata-id>RHSA-2009:0397</errata-id>

                                              <errata-id>RHBA-2009:0388</errata-id>

                                      </errata-ids>

                      </errata-ids-filter>

               

               

              This portion (from the looks of it) will download rhel 4 as channel 32bit. and some specific erratas.

               

              The User Guide will have more information on how to set this up and what each option is.

              1 of 1 people found this helpful
              • 4. Re: rhel offline downloader xml
                Bill Robinson

                he just needs the rhel 5.6 update level:

                 

                <subscription>

                <update-level-filter>
                <os>RHES5</os>
                <arch>x86_64</arch>
                <channel-label>rhel-x86_64-as-5</channel-label>
                <update-level>6</update-level>
                </update-level-filter>
                </subscription>

                 

                is what you want, except the channel label is not right.  you need to run a '-listChannels' and get the right channel label for rhel 5 server...

                • 5. Re: rhel offline downloader xml

                  just reread the original request... if he wants to simply upgrade 5.5 systems to stock 5.6 dvd image rpms, then yes, you're right bill.

                   

                  I thought he wanted to upgrade 5.5 and 5.6 systems with latest patches but keep them on 5.5 and 5.6 level respectively (something that we have go though recently, so it was in the back of my mind : )

                   

                   

                  rhel-x64_86-server-5 is the label

                  1 of 1 people found this helpful
                  • 6. Re: rhel offline downloader xml

                    Thanks gents,

                    Will give this a go.  In my test environment it just seems to execute but there is no progress indicated and so far nothing downloaded to the payload-repository-location - maybe crud hotel network

                     

                    <redhat-downloader-config>
                    <config>

                      <temporary-location>/tmp</temporary-location>
                      <payload-repository-location>/opt/repo/</payload-repository-location>
                        <download-request-retries>10</download-request-retries>
                      <download-request-timeout>180000</download-request-timeout>
                      <downloader-parallel-threads>10</downloader-parallel-threads>
                    </config>

                    <subscription>
                      <update-level-filter>
                      <os>RHES5</os>
                      <arch>x86_64</arch>
                      <channel-label>rhel-x86_64-server-5</channel-label>
                      <update-level>6</update-level>
                      </update-level-filter>
                    </subscription>
                    </redhat-downloader-config>