[Spacewalk-list] tracebacks with libzypp-16.5.2 on SLES-12.2

Michael Calmer mc at suse.de
Thu Apr 6 14:22:31 UTC 2017


Hi

JFYI: I made a PR https://github.com/spacewalkproject/spacewalk/pull/531 to 
fix this.

Am Donnerstag, 6. April 2017, 11:19:17 schrieb Lichtinger, Bernhard:
> Hi,
> 
> My SLES-12.2 servers started to trigger tracebacks via XMLRPC since libzypp
> was updated to libzypp-16.5.2-27.9.1.x86_64.
> 
> I think the following commit changed libzypp to trigger these exceptions:
> https://github.com/openSUSE/libzypp/commit/27848e716ce912bc437493e2fc941c7a8
> 4261c3d
> 
> My question: Is this a bug in spacewalk or in libzypp?
> 
> 
> some stuff from the traceback:
> 
> Exception type <class 'spacewalk.server.apacheRequest.UnknownXML'>
> Exception while handling function media.1 Request object information:
> URI: /XMLRPC/GET-REQ/sles12.2-module-web-scripting/media.1/media
> [...]
> 	REQUEST_METHOD: GET
> 	REQUEST_SCHEME: http
> 	REQUEST_URI: /XMLRPC/GET-REQ/sles12.2-module-web-scripting/media.1/media
> 	SCRIPT_FILENAME: /usr/share/rhn/wsgi/xmlrpc.py
> 	SCRIPT_NAME: /XMLRPC
> 	SCRIPT_URI:
> http://SW-SERVER/XMLRPC/GET-REQ/sles12.2-module-web-scripting/media.1/media
> SCRIPT_URL: /XMLRPC/GET-REQ/sles12.2-module-web-scripting/media.1/media
> [...]
> Extra information about this error:
> Response sent back to the caller:
> While running 'media.1': caught
> <class 'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request
> received (function 'media.1' invalid; path_info is
> /GET-REQ/sles12.2-module-web-scripting/media.1/media).
> 
> Exception Handler Information
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/site-packages/spacewalk/server/apacheRequest.py",
> line 134, in call_function func = self.method_ref(method)
>   File "/usr/lib/python2.7/site-packages/spacewalk/server/apacheRequest.py",
> line 569, in method_ref method, self.req.path_info))
> UnknownXML: Invalid request received (function 'media.1' invalid; path_info
> is /GET-REQ/sles12.2-module-web-scripting/media.1/media).
> 
> 
> zypper.log on the SLES-12.2 server shows:
> 
> [zypp++] MediaCurl.cc(doGetFileCopyFile):1494 URL:
> http://SW-SERVER/XMLRPC/GET-REQ/sles12.2-module-web-scripting/media.1/media
> ?head_requests=no [zypp] MediaCurl.cc(doGetFileCopyFile):1558 curl error:
> 22: The requested URL returned error: 404 Not Found, temp file size 0
> bytes. [zypp] Exception.cc(log):137 MediaCurl.cc(evaluateCurlCode):1109
> THROW:    File '/media.1/media' not found on medium
> 'http://SW-SERVER/XMLRPC/GET-REQ/sles12.2-module-web-scripting?head_request
> s=no' [zypp] Exception.cc(log):137
> [zypp] Exception.cc(log):137 MediaCurl.cc(doGetFileCopyFile):1570 RETHROW: 
> File '/media.1/media' not found on medium
> 'http:/SW-SERVER/XMLRPC/GET-REQ/sles12.2-module-web-scripting?head_requests
> =no' [zypp] Exception.cc(log):137
> [zypp] PathInfo.cc(unlink):659 unlink
> /var/adm/mount/AP_0x4kL6mL/media.1/media.new.zypp.WpsvO6 [zypp]
> Exception.cc(log):137 MediaMultiCurl.cc(doGetFileCopy):1351 RETHROW:  File
> '/media.1/media' not found on medium
> 'http://SW-SERVER/XMLRPC/GET-REQ/sles12.2-module-web-scripting?head_request
> s=no' [zypp] Exception.cc(log):137
> [zypp] Exception.cc(log):137 MediaCurl.cc(getFileCopy):1008 RETHROW:  File
> '/media.1/media' not found on medium
> 'http://SW-SERVER/XMLRPC/GET-REQ/sles12.2-module-web-scripting?head_request
> s=no' [zypp] Exception.cc(log):137
> [zypp] Exception.cc(log):137 MediaSetAccess.cc(provide):230 CAUGHT:   File
> '/media.1/media' not found on medium
> 'http://SW-SERVER/XMLRPC/GET-REQ/sles12.2-module-web-scripting?head_request
> s=no' [zypp] Exception.cc(log):137
> [zypp++] MediaManager.cc(checkDesired):112 checkDesired(8): desired (cached)
> [zypp++] MediaHandler.cc(getDetectedDevices):1383 No devices for this
> medium [zypp++] MediaSetAccess.cc(provide):242 Media couldn't provide file
> /media.1/media , releasing. [zypp++] MediaManager.cc(release):486
> release(id=8)
> [zypp++] MediaHandler.cc(release):736 Request to release attached media
> http<http://SW-SERVER/XMLRPC/GET-REQ/sles12.2-module-web-scripting?head_req
> uests=no>, use count=1 [zypp++] MediaHandler.cc(release):743 Releasing media
> http<http://SW-SERVER/XMLRPC/GET-REQ/sles12.2-module-web-scripting?head_req
> uests=no> [zypp] MediaHandler.cc(disconnect):715 Disconnected:
> http://SW-SERVER/XMLRPC/GET-REQ/sles12.2-module-web-scripting?head_requests
> =no attached; localRoot "/var/adm/mount/AP_0x4kL6mL" [zypp++]
> MediaHandler.cc(removeAttachPoint):181 MediaHandler - checking if to remove
> attach point [zypp] PathInfo.cc(recursive_rmdir):426 recursive_rmdir
> /var/adm/mount/AP_0x4kL6mL [zypp] MediaHandler.cc(removeAttachPoint):193
> Deleted default attach point /var/adm/mount/AP_0x4kL6mL [zypp]
> MediaHandler.cc(release):797 Released:
> http://SW-SERVER/XMLRPC/GET-REQ/sles12.2-module-web-scripting?head_requests
> =no not attached; localRoot "" [zypp] MediaSetAccess.cc(provide):278 Can't
> provide file. Non-Interactive mode. [zypp] Exception.cc(log):137
> MediaSetAccess.cc(provide):279 RETHROW:  File '/media.1/media' not found on
> medium
> 'http://SW-SERVER/XMLRPC/GET-REQ/sles12.2-module-web-scripting?head_request
> s=no' [zypp] Exception.cc(log):137
> [zypp] Exception.cc(log):137 Fetcher.cc(provideToDest):575 CAUGHT:   File
> '/media.1/media' not found on medium
> 'http://SW-SERVER/XMLRPC/GET-REQ/sles12.2-module-web-scripting?head_request
> s=no' [zypp] Exception.cc(log):137
> [zypp:fetcher] Fetcher.cc(provideToDest):576 optional resource
> [1]/media.1/media{0 B|NoCheckSum} could not be transferred [zypp:fetcher]
> Fetcher.cc(downloadAndReadIndexList):723 No indexes to read. [zypp:fetcher]
> Fetcher.cc(provideFromCache):350 start fetcher with 7 cache directories.
> [zypp:fetcher] Fetcher.cc(provideToDest):547 Not found in cache,
> downloading
> 
> 
> Before the libzypp update I could only see access attemtps for
> "/media.1/media" when rpm packages were downloaded from my SW-server, but
> these attemtps did not trigger exceptions on the SW-server. I can reproduce
> this with every "zypper ref" on any SLES-12.2 with
> libzypp-16.5.2-27.9.1.x86_64.
> 
> 
> 
> Regards,
> Bernhard

-- 
Regards

	Michael Calmer

--------------------------------------------------------------------------
Michael Calmer
SUSE LINUX GmbH, Maxfeldstr. 5, D-90409 Nuernberg
T: +49 (0) 911 74053 0
F: +49 (0) 911 74053575  - e-mail: Michael.Calmer at suse.com
--------------------------------------------------------------------------
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton,
                     HRB 21284 (AG Nürnberg)





More information about the Spacewalk-list mailing list