8 Replies Latest reply on Feb 24, 2015 8:17 AM by Santosh Kamble

    CENT OS Patch Repository

    Siddu angadi

      Hi,

       

      I am working on CENT OS Patch Repository creation.

       

      My question do we need to create Cent OS Patch Repository on Cent OS box? or can Create even on Linux box?

       

      And also if anyont has any document or guidelines to create Cent OS patch Repository, can you please share it?

       

      Thanks

      Siddu

        • 1. Re: CENT OS Patch Repository
          Bill Robinson

          You can create one on any box that has rpm and createrepo installed.

          1 of 1 people found this helpful
          • 2. CENT OS Patch Repository
            Siddu angadi

            Hi ,

             

            I have dowlonded RPMS and repodata from below site:

             

            http://mirror.centos.org/centos-5/5/updates/i386/

             

            then I have used Redhatmanager.sh file to yummify the repository.It run successfuly.

             

             

            Is it correct method?

             

             

            Because when I run cent os patch analysis job which says:

             

            No Analysis data found for host:

             

             

             

             

             

            Thanks

            Siddu

            • 3. Re: CENT OS Patch Repository

              What version of BL are you using?

              What scipt are you using to run the analysis?

              What parameters are you passing it?

              • 4. CENT OS Patch Repository
                Bill Robinson

                on the target server look in /var/bladelogic/<something>

                 

                there are a bunch of files in there.  look in the *.log, *.res, *.err files and see if you find anything interesting.

                • 5. CENT OS Patch Repository
                  Siddu angadi

                  Hi Bill,

                   

                  I am making BBSA compatible for cent OS patching.

                   

                  We have successfully achieved with your earlier help on Production Environment.

                   

                  Now I am trying to replicate same this in Pre-production environment and ending with Python compilation error.

                   

                  Please find log below for more information:

                   

                  ---------------------------------------------------------------------------------------

                  TypeMessage
                  InfoStarted running the job 'Linux Patch Analysis' with priority 'NORMAL' on  application server 'BBSA-APP-PP'(2,000,000)
                  InfoExecuting work item NSH Script Job:Linux Patch Analysis;  on application server: BBSA-APP-PP
                  Infodoing analysis and packaging; mode is "ap"
                  InfoDEBUG: nsh -c 'test -d  "//BBSA-APP-PP/opt/bmc/BladeLogic/8.1/NSH/patch/centOS5_64"'
                  InfoDEBUG: DEBUG: child exited with return code: 0
                  InfoDEBUG: return code: 0
                  InfoDEBUG: command returned: 0
                  InfoDEBUG: nsh -c 'test -f  "//BBSA-APP-PP/opt/bmc/BladeLogic/8.1/NSH/patch/centOS5_64/repodata.zip"'
                  InfoDEBUG: DEBUG: child exited with return code: 0
                  InfoDEBUG: return code: 0
                  InfoDEBUG: command returned: 0
                  InfoJob Unique Id: 1b1adc70435bdc10904337c1ddc7b0ad
                  InfoDEBUG: nsh -c 'mkdir -p  /opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work/1b1adc70435bdc10904337c1ddc7b0ad'
                  InfoDEBUG: DEBUG: child exited with return code: 0
                  InfoDEBUG: return code: 0
                  InfoDEBUG: command returned: 0
                  InfoDEBUG: nsh -c 'rm -f  /opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work/job_include_list.txt'
                  InfoDEBUG: DEBUG: child exited with return code: 0
                  InfoDEBUG: return code: 0
                  InfoDEBUG: command returned: 0
                  InfoDEBUG: nsh -c 'rm -f  /opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work/job_exclude_list.txt'
                  InfoDEBUG: DEBUG: child exited with return code: 0
                  InfoDEBUG: return code: 0
                  InfoDEBUG: command returned: 0
                  Infojob exclude file not found: ignoring job exclude list.
                  InfoDEBUG: exclude_list:
                  Infono reports server specified in the  /opt/bmc/BladeLogic/8.1/NSH/patch/blvpc.conf: reports will NOT be generated
                  InfoDEBUG: nsh -c 'rm -rf  /opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work/1b1adc70435bdc10904337c1ddc7b0ad/192.168.78.24  && mkdir -p  /opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work/1b1adc70435bdc10904337c1ddc7b0ad/192.168.78.24'
                  InfoDEBUG: DEBUG: child exited with return code: 0
                  InfoDEBUG: return code: 0
                  InfoDEBUG: command returned: 0
                  InfoDEBUG: Executing Command:  "/opt/bmc/BladeLogic/8.1/NSH/patch/Jython/bljython"   "/opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work/../Scripts/Jython/linux-analysis.py"  "cos5" "/opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work/linuxrepo.conf"  "/Patch Analysis Items/Linux Patch Analysis" "/Patch Analysis  Jobs/Linux Patch Analysis"  "/opt/bmc/BladeLogic/8.1/NSH/tmp/application_server/scripts/job__dfdc8185-947e-4e7a-862e-05b722a9df89/hosts_01f5ab63-d6a5-4d1e-b0b2-fe59c30735b8"  "/opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work" "10"  "0"  "1b1adc70435bdc10904337c1ddc7b0ad-|-DBKey:SJobKeyImpl:2002672-2"  "1" "0" "28314"
                  InfoPrefix = 28314-BBSA-APP-PP
                  InfoUsing yum analysis type: update
                  InfoUsing Host Staging Location:  /var/bladelogic/1b1adc70435bdc10904337c1ddc7b0ad
                  InfoUpdate Bootloader: 0
                  InfoInvalid timeout percentage.. using the default value 70
                  InfoCurrent AppServer version is: 8.1.0.295
                  InfoAppServer version is: 8.1.0.295
                  InfoGroup /Patch Analysis Jobs/Linux Patch Analysis/ScratchPad does not  exist..  Creating it.
                  InfoReading tag file  */opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work/linuxrepo.conf*
                  InfoScanning all hosts for applicability.
                  InfoScanning host 192.168.78.24 for platform...  [COS5x86_64]
                  InfoGenerating base yum.conf for all targets
                  InfoWritting to file  /opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work/1b1adc70435bdc10904337c1ddc7b0ad/yum.conf
                  Infoyum.conf generation complete.
                  Infocd /opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work && cp  linux-*.sh 1b1adc70435bdc10904337c1ddc7b0ad/ && cd  1b1adc70435bdc10904337c1ddc7b0ad && tar -czf patch-meta.tar.gz  rpm-includes.lst linux-*.sh yum.conf && rm -rf rpm* linux*
                  InfoCreating meta zip... Done
                  InfoCreating custom softwares...
                  InfoCreating custom software item 28314-BBSA-APP-PP-cs-meta...  ['DepotSoftware', 'addCustomSoftwareToDepotByGroupName', '/Patch Analysis  Items/Linux Patch Analysis/ScratchPad', 'Linux', 'Custom Software',  '/opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work/1b1adc70435bdc10904337c1ddc7b0ad/patch-meta.tar.gz',  '28314-BBSA-APP-PP-cs-meta', 'Internal Custom Software', 'mkdir -p  /var/bladelogic/1b1adc70435bdc10904337c1ddc7b0ad && mv -f ??SOURCE??  /var/bladelogic/1b1adc70435bdc10904337c1ddc7b0ad', '', '', '', '', 'false',  'AGENT_COPY_AT_STAGING']
                  InfoDone
                  InfoCreating custom softwares...
                  InfoCreating custom software item 28314-BBSA-APP-PP-cs-cos5...  ['DepotSoftware', 'addCustomSoftwareToDepotByGroupName', '/Patch Analysis  Items/Linux Patch Analysis/ScratchPad', 'Linux', 'Custom Software',  '//BBSA-APP-PP/opt/bmc/BladeLogic/8.1/NSH/patch/centOS5_64/repodata.zip',  '28314-BBSA-APP-PP-cs-cos5', 'Internal Custom Software', 'mkdir -p  /var/bladelogic/1b1adc70435bdc10904337c1ddc7b0ad/blrepos" && rm  -rf  "/var/bladelogic/1b1adc70435bdc10904337c1ddc7b0ad/blrepos/repo-cos5"  && mv -f ??SOURCE??  "/var/bladelogic/1b1adc70435bdc10904337c1ddc7b0ad/blrepos/repo-cos5"'
                  InfoDone
                  InfoCreating temporary folder 28314-BBSA-APP-PP in /Patch Analysis Jobs/Linux  Patch Analysis/ScratchPad Done
                  InfoCreating BLPackage 28314-BBSA-APP-PP-blp-COS5x86_64...  Done
                  InfoCreating deploy Job COS5x86_64 in /Patch Analysis Jobs/Linux Patch  Analysis/ScratchPad/28314-BBSA-APP-PP
                  InfoDone
                  InfoFilling Blpackages...
                  InfoImporting 28314-BBSA-APP-PP-cs-meta to  28314-BBSA-APP-PP-blp-COS5x86_64...   Done
                  InfoRunning deploy job DBKey:SJobModelKeyImpl:2002678-1-2060009...
                  InfoTrying to find out RunKeys for job  DBKey:SJobModelKeyImpl:2002678-1-2060009... Couldn't find the runkeys: tryin  again...
                  InfoRun Keys = ['DBKey:SJobRunModelKeyImpl:2007403-2059209',  'DBKey:SJobRunModelKeyImpl:2007402-2059208']
                  InfoChecking if Job Run DBKey:SJobRunModelKeyImpl:2007403-2059209 is  completed...  Complete
                  InfoSetting up BLPackage 28314-BBSA-APP-PP-blp-Linux COS5x86_64 Analysis Job  to cleanup after run
                  InfoChecking if Job Run DBKey:SJobRunModelKeyImpl:2007402-2059208 is  completed...  Still Running
                  InfoChecking if Job Run DBKey:SJobRunModelKeyImpl:2007402-2059208 is  completed...  Still Running
                  InfoChecking if Job Run DBKey:SJobRunModelKeyImpl:2007402-2059208 is  completed...  Failed
                  InfoFailed deploy job is: Linux COS5x86_64 Analysis Job
                  InfoExtracting logs for failed Analysis Deploy Job Linux COS5x86_64 Analysis  Job.
                  ErrorTraceback (innermost last):
                  Error  File  /opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work/../Scripts/Jython/linux-analysis.py"
                  Error  File  /opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work/../Scripts/Jython/linux-analysis.py"
                  Error  File  /opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work/../Scripts/Jython/linux-analysis.py"
                  Error  File  /opt/bmc/BladeLogic/8.1/NSH/patch/linuxpu/Work/../Scripts/Jython/linux-analysis.py"
                  ErrorTypeError: iteration over non-sequence
                  ErrorAnalysis failed, execution of linux-analysis.py failed.
                  InfoExit Code 1
                  InfoThe job 'Linux Patch Analysis' has failed

                   

                   

                   

                  -----------------------------------------------------------------------------------

                  • 6. CENT OS Patch Repository
                    Bill Robinson

                    did you compare the  linux-analysis.py to the working one ?

                    • 7. CENT OS Patch Repository
                      Siddu angadi

                      Hi BIll,

                       

                      Problem was  Nexec 192.168.78.24 ‘sh –c “rpm –qcentos-release”’   command is not working.

                       

                      I have modified this command in linuxpc.pl. Now it is recognizing the cent OS.

                       

                      The same job is getting successful for different server.

                       

                      I am troublshooting and hope able to resolve soon, since I have identified the root cause.

                       

                      Thanks

                      Siddu

                      • 8. Re: CENT OS Patch Repository
                        Santosh Kamble

                        Hi Sidhu,

                         

                        This is quite old post.. but i want to know how did you download CentOS patches. Using Reposync?

                         

                        It will be great help if you share any doc if you have.

                         

                        Thanks
                        Santosh