[Spacewalk-list] New CentOS Errata Tool for Spacewalk

Steve Meier email at steve-meier.de
Sun Jul 22 09:11:24 UTC 2012


Hello,

from my experience problems with creation of errata usually come from timeouts.
Either, as in your case, from a proxy, or from a slow database. But I guess your case is solved :-)

Currently I update the Errata XML every one or two weeks depending on the number of announcements
I see on the list. The script and the process around it do require some manual intervention so it is not at
a point where I would like to release it right now. 

Kind regards,
  Steve

Am 22.07.2012 um 02:01 schrieb Velayutham, Prakash:

> Hi,
> 
> I realized it was mostly due to ProxyTimeout. Once I changed that, errata creation seems to be working OK.
> 
> On a side note, how often do you release the Errata XML file? I was wondering if you would be willing to share the conversion script so I can run it in a schedule?
> 
> Thanks,
> Prakash
> 
> On Jul 20, 2012, at 1:54 PM, Velayutham, Prakash wrote:
> 
>> Hi Steve,
>> 
>> I am trying to use your errata application tool, but am running into some issues. I am not sure if the issues are at the Spacewalk end or in the script itself.
>> 
>> Whenever I run the script, it creates a portion of the errata and then I get a "503 Service Temporarily Unavailable" and the script just stops.
>> 
>> INFO: Server is running API version 11.1
>> INFO: API version is supported
>> INFO: Authentication successful
>> INFO: Loading errata XML
>> INFO: Getting server inventory
>> INFO: Scanning channel SLES 11.2 HP Supportpack 64-bit channel
>> INFO: Scanning channel CentOS 6 64-bit VMware Tools channel
>> INFO: Scanning channel SLES 11.1 64-bit HAE base channel
>> INFO: Scanning channel OEL 5 Update 7 base x86_64
>> INFO: Scanning channel SLES 11.1 64-bit base channel
>> INFO: Scanning channel CentOS 6 64-bit extras channel
>> INFO: Scanning channel SLES 11 64-bit SDK updates channel
>> INFO: Scanning channel CentOS 5 Spacewalk Client 32-bit channel
>> INFO: Scanning channel SLES 11 64-bit VMWare Tools channel
>> ...
>> NOTICE: Skipping errata CEBA-2012:0066 (CentOS rgmanager Update) -- No packages found
>> INFO: Errata for CEBA-2012:0068 already exists
>> NOTICE: Skipping errata CEBA-2012:0106 (CentOS selinux-policy Update) -- No packages found
>> INFO: Errata for CEBA-2012:0122 already exists
>> INFO: Errata for CEBA-2012:0123 already exists
>> INFO: Errata for CEBA-2012:0124 already exists
>> INFO: Errata for CEBA-2012:0134 already exists
>> INFO: Errata for CEBA-2012:0145 already exists
>> INFO: Errata for CEBA-2012:0146 already exists
>> INFO: Errata for CEBA-2012:0155 already exists
>> INFO: Errata for CEBA-2012:0156 already exists
>> INFO: Errata for CEBA-2012:0157 already exists
>> INFO: Errata for CEBA-2012:0158 already exists
>> INFO: Errata for CEBA-2012:0159 already exists
>> INFO: Errata for CEBA-2012:0160 already exists
>> INFO: Errata for CEBA-2012:0161 already exists
>> NOTICE: Skipping errata CEBA-2012:0163 (CentOS rgmanager bug fix and enhancement update) -- No packages found
>> INFO: Errata for CEBA-2012:0164 already exists
>> INFO: Errata for CEBA-2012:0165 already exists
>> INFO: Errata for CEBA-2012:0166 already exists
>> INFO: Errata for CEBA-2012:0167 already exists
>> NOTICE: Skipping errata CEBA-2012:0175 (CentOS Cluster_Administration bug fix and enhancement update) -- No packages found
>> NOTICE: Skipping errata CEBA-2012:0176 (CentOS Global_File_System bug fix and enhancement update) -- No packages found
>> NOTICE: Skipping errata CEBA-2012:0177 (CentOS Virtualization_Guide bug fix and enhancement update) -- No packages found
>> NOTICE: Skipping errata CEBA-2012:0178 (CentOS Deployment_Guide bug fix and enhancement update) -- No packages found
>> INFO: Errata for CEBA-2012:0179 already exists
>> INFO: Errata for CEBA-2012:0180 already exists
>> INFO: Errata for CEBA-2012:0181 already exists
>> INFO: Errata for CEBA-2012:0184 already exists
>> INFO: Errata for CEBA-2012:0187 already exists
>> INFO: Errata for CEBA-2012:0188 already exists
>> INFO: Errata for CEBA-2012:0189 already exists
>> INFO: Errata for CEBA-2012:0190 already exists
>> INFO: Errata for CEBA-2012:0191 already exists
>> INFO: Creating errata for CEBA-2012:0192 (CentOS parted bug fix update) (2 of 7)
>> INFO: Creating errata for CEBA-2012:0193 (CentOS libdhcp bug fix update) (2 of 7)
>> INFO: Creating errata for CEBA-2012:0194 (CentOS dhcp bug fix update) (5 of 14)
>> INFO: Creating errata for CEBA-2012:0196 (CentOS freeradius2 bug fix and enhancement update) (9 of 19)
>> 503 Service Temporarily Unavailable
>> 
>> 
>> From the server side logs (run_web_api.log), I see something like the following.
>> 
>>>> [2012-07-20 12:45:32,058] ERROR - REQUESTED FROM: 127.0.0.1 CALL: errata.get_details(67852x5652f87dbcaa8dc80dcefec3419556ee, CEBA-2012:0196) CALLER: (spacewalkadmin) TIME: 0.012 seconds
>> redstone.xmlrpc.XmlRpcFault: The errata CEBA-2012:0196 cannot be found.
>>         at com.redhat.rhn.frontend.xmlrpc.BaseHandler.invoke(BaseHandler.java:124)
>>         at redstone.xmlrpc.XmlRpcDispatcher.dispatch(XmlRpcDispatcher.java:123)
>>         at com.redhat.rhn.frontend.xmlrpc.RhnXmlRpcServer.execute(RhnXmlRpcServer.java:54)
>>         at com.redhat.rhn.frontend.xmlrpc.XmlRpcServlet.doPost(XmlRpcServlet.java:162)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>         at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
>>         at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
>>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>         at com.redhat.rhn.frontend.servlets.LocalizedEnvironmentFilter.doFilter(LocalizedEnvironmentFilter.java:67)
>>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>         at com.redhat.rhn.frontend.servlets.EnvironmentFilter.doFilter(EnvironmentFilter.java:108)
>>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>         at com.redhat.rhn.frontend.servlets.SessionFilter.doFilter(SessionFilter.java:55)
>>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>         at com.redhat.rhn.frontend.servlets.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:97)
>>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>>         at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
>>         at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
>>         at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
>>         at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
>>         at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
>>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
>>         at java.lang.Thread.run(Thread.java:679)
>> [2012-07-20 12:46:36,961] INFO  - REQUESTED FROM: 127.0.0.1 CALL: errata.create(67852x5652f87dbcaa8dc80dcefec3419556ee, {product=CentOS Linux, topic=Not available, references=https://rhn.redhat.com/errata/RHBA-2012-0196.html http://lists.centos.org/pipermail/centos-announce/2012-March/018479.html, advisory_type=Bug Fix Advisory, advisory_release=1, description=Not available, advisory_name=CEBA-2012:0196, synopsis=CentOS freeradius2 bug fix and enhancement update, notes=Not available, solution=Not available}, [], [], [39048, 40834, 39303, 40742, 39156, 39464, 40343, 38921, 38917], 1, [centos5-base-x86, centos5-base-x86, centos5-base-x86, centos5-base-x86, centos5-base-x86, centos5-base-x86, centos5-base-x86, centos5-base-x86, centos5-base-x86]) CALLER: (spacewalkadmin) TIME: 64.893 seconds
>> 
>> Here is some of what is in catalina.out:
>> 
>> Jul 20, 2012 1:48:03 PM redstone.xmlrpc.XmlRpcDispatcher writeError
>> WARNING: redstone.xmlrpc.XmlRpcFault: The errata CEBA-2012:0216 cannot be found.
>> 2012-07-20 13:48:14,552 [TP-Processor3] ERROR com.redhat.rhn.frontend.xmlrpc.BaseHandler - Error calling method: 
>> java.lang.reflect.InvocationTargetException
>>         at sun.reflect.GeneratedMethodAccessor977.invoke(Unknown Source)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:616)
>>         at com.redhat.rhn.frontend.xmlrpc.BaseHandler.invoke(BaseHandler.java:108)
>>         at redstone.xmlrpc.XmlRpcDispatcher.dispatch(XmlRpcDispatcher.java:123)
>>         at com.redhat.rhn.frontend.xmlrpc.RhnXmlRpcServer.execute(RhnXmlRpcServer.java:54)
>>         at com.redhat.rhn.frontend.xmlrpc.XmlRpcServlet.doPost(XmlRpcServlet.java:162)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>         at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
>>         at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
>>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> ...
>> 
>> And, I think this is having an impact on the errata "Advanced Search". Earlier, I received an email from Spacewalk saying errata "CEBA-2012:0192" affects 2 of my systems.
>> 
>> But when I try to search for this errata using Errata -> Advanced Search, it is not displayed in the results. I can see "CEBA-2012:0194", "CEBA-2012:0193", "CEBA-2012:0190", but not "CEBA-2012:0192".
>> 
>> However, if I select one of the affected systems in the Spacewalk WebUI, and go to Software -> Errata, the above errata shows up there as applicable and I am able to go from there and look at the errata details. Any idea what is going on here?
>> 
>> Regards,
>> Prakash
>> 
>> On Apr 14, 2012, at 9:37 AM, Steve Meier wrote:
>> 
>>> Dear Spacewalk-Users,
>>> 
>>> I would like to introduce yet another tool to import CentOS Errata information into
>>> your Spacewalk Server.
>>> 
>>> You can find it here -> http://cefs.steve-meier.de
>>> 
>>> It is written in Perl and CentOS Errata are provided in an XML file available for download.
>>> Errata are created via the API and can be published either automatically or manually.
>>> 
>>> Let me know if you have any questions or feedback. Thank you!
>>> 
>>> Kind regards,
>>> Steve Meier
>>> 
>>> _______________________________________________
>>> Spacewalk-list mailing list
>>> Spacewalk-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>> 
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
> 
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120722/d081d872/attachment.htm>


More information about the Spacewalk-list mailing list