13 Replies Latest reply on Aug 16, 2016 9:27 AM by Bill Robinson

    BSA RHEL 7 Patch Analysis job getting failed

    Vipul Pawaskar

      Hi,

       

      We are trying to run patch analysis job on RHEL 7 server but it is getting failed. Below is the error.

       

      "STDERR: cat: parsed-include.lst: No such file or directoryERROR::YUM dry run failed. For more details, please execute job in debug mode and check yum.err.logERROR::Package: glibc-static-2.17-78.el7.x86_64 (@/glibc-static-2.17-78.el7.x86_64/7Server)". We have checked above "Package: glibc-static-2.17-78.el7.x86_64" is already installed on target server.

       

      We also ran same job using debut mode. kindly find attached the debug log files.

       

      Any help would be appreciated.

       

       

      Regards,

       

      STDERR: cat: parsed-include.lst: No such file or directoryERROR::YUM dry run failed. For more details, please execute job in debug mode and check yum.err.logERROR::Package: glibc-static-2.17-78.el7.x86_64 (@/glibc-static-2.17-78.el7.x86_64/7Server)

        • 1. Re: BSA RHEL 7 Patch Analysis job getting failed
          Parag Desai

          looks like you have 32 as well 64 bit of glibc installed. It could be that one of the versions is installed forcefully without dependency check. Can you send the below output from the target server?

           

          rpm -qa | grep -i glibc

           

          what happens if you exclude "glibc" entirely and run analysis?

          • 2. Re: BSA RHEL 7 Patch Analysis job getting failed
            Vipul Pawaskar

            Hi Parag, below is the output.

             

            11.JPG

             

            Regards,

            • 3. Re: BSA RHEL 7 Patch Analysis job getting failed
              Parag Desai

              Are you using any include list for analysis? If so, looks like it is missing the dependent rpms for glibc. Create a smart patch group based on on RPM name contains "glibc" and use that for analysis. That should resolve the issues.

              • 4. Re: BSA RHEL 7 Patch Analysis job getting failed
                Bill Robinson

                glibc-statis is part of the optional channel and is probably not in your catalog.

                • 5. Re: BSA RHEL 7 Patch Analysis job getting failed
                  Yanick Girouard

                  This should really be clearer for all in the documentation. After all the talk about it, it seems it's still considered an optional add-on to have child channel support built-in. There should be a huge "ATTENTION !" section in the doc warning about this. It's almost impossible to patch all RHEL servers of a large environment without having the child channels in the catalog at some point. It's very likely that more than one server will have packages from those channels which means it would break dependency resolution if you try to analyze them with BSA using a standard online catalog. This is especially true for web servers using httpd and php, which are very likely to use php modules that are in the optional channel for example. The whole Red Hat patching module is semi-useless for RHEL 7 prior to the added support for child channels in 8.8, and was still a pain to use for RHEL 6 since you had to use the offline downloader to get child channels as well. Hopefully 8.8 and 8.9 will both fix that issue for good !

                  • 6. Re: BSA RHEL 7 Patch Analysis job getting failed
                    Bill Robinson

                    Yeah – the child channels should be in the online catalogs in 8.8 or 8.9.

                    1 of 1 people found this helpful
                    • 7. Re: BSA RHEL 7 Patch Analysis job getting failed
                      Vipul Pawaskar

                      We are using BSA 8.8 offline downloaders utility to download the child channels, but we are getting some error(Screenshot attached). We have tested the credentials and its working fine.

                       

                      Below is the configuration file contents which we are using for RHEL7

                       

                      <redhat-downloader-config>

                          <config>

                        <!--<proxy-settings>

                        <port>8080</port>

                        <host>XXXXXXXXX</host>

                        <username>XXXXXXXX</username>

                        <password>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</password>

                        <domain-name>XXXXXXXX</domain-name>

                        <proxy-type>ntlm-v2</proxy-type>

                        <protocol>https</protocol>

                        </proxy-settings>-->

                        <temporary-location>/Bsa_Patch/offline_RHEL7</temporary-location>

                        <payload-repository-location>/Bsa_Patch/offline_RHEL7/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 use-reposync="true">

                        <os>RHES7</os>

                        <arch>x86_64</arch>

                        <channel-label>rhel-7-server-rpms</channel-label>

                            <channel-url>https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os</channel-url>

                        <errata-severity>

                        <critical>true</critical>

                        <important>true</important>

                        <moderate>true</moderate>

                        <low>true</low>

                        </errata-severity>

                        <errata-type>

                        <security>true</security>

                        <bugfix>true</bugfix>

                        <enhancement>true</enhancement>

                        </errata-type>

                        </errata-type-filter>

                        

                        

                           </subscription>

                      </redhat-downloader-config>

                       

                       

                       

                      Regards,RHEL7.jpg

                      • 8. Re: BSA RHEL 7 Patch Analysis job getting failed
                        Parag Desai

                        One entry in config file is wrong

                        <!--<proxy-settings>

                         

                        basically that means it is instructed to bypass proxy.

                         

                        remove the exclamation mark and retry. It should look like below

                         

                        <proxy-settings>

                        • 9. Re: BSA RHEL 7 Patch Analysis job getting failed
                          Bill Robinson

                          the whole proxy block is commented.  you need to remove both comment tags - the opening <!-- and closing -->

                           

                            <!--<proxy-settings>

                            <port>8080</port>

                            <host>XXXXXXXXX</host>

                            <username>XXXXXXXX</username>

                            <password>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</password>

                            <domain-name>XXXXXXXX</domain-name>

                            <proxy-type>ntlm-v2</proxy-type>

                            <protocol>https</protocol>

                            </proxy-settings>-->

                           

                           

                          <proxy-settings>

                            <port>8080</port>

                            <host>XXXXXXXXX</host>

                            <username>XXXXXXXX</username>

                            <password>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</password>

                            <domain-name>XXXXXXXX</domain-name>

                            <proxy-type>ntlm-v2</proxy-type>

                            <protocol>https</protocol>

                            </proxy-settings>

                          • 10. Re: BSA RHEL 7 Patch Analysis job getting failed
                            Vipul Pawaskar

                            Hi Bill,

                             

                            We tried this but no luck, still getting same error.

                             

                             

                             

                            Regards,

                            • 11. Re: BSA RHEL 7 Patch Analysis job getting failed
                              Bill Robinson

                              are the proxy creds correct?

                              do you see a request go through the proxy?

                              the rhn creds are correct ?

                              • 12. Re: BSA RHEL 7 Patch Analysis job getting failed
                                Bhim Singh

                                Hello Bill,

                                 

                                We have checked and found that the Proxy user is locked, after unlocking the user we are getting below error-

                                 

                                below is the content of yum_metadata_generator.log file-

                                 

                                Error setting up repositories: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-7-server-rpms. Please verify its path and try again

                                Thu Aug  4 10:00:47 IST 2016 : Error occurred in reposync --download-metadata for repo rhel-7-server-rpms. Error: Error setting up repositories: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-7-server-rpms. Please verify its path and try again

                                Thu Aug  4 10:00:47 IST 2016 : Executing reposync again without --download-metadata option. Errata details may not be available.

                                Config time: 0.007

                                repo time: 0.000

                                Setting up Package Sacks

                                Error setting up repositories: Cannot retrieve repository metadata (repomd.xml) for repository: rhel-7-server-rpms. Please verify its path and try again

                                Thu Aug  4 10:00:48 IST 2016 : Error occurred in reposync for repo rhel-7-server-rpms, Command Exit Code - 1

                                 

                                Regards

                                Bhim Singh

                                • 13. Re: BSA RHEL 7 Patch Analysis job getting failed
                                  Bill Robinson

                                  do you see a connection going through the proxy now ?  or is there still some error ?  can you bypass the proxy ?