[Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500 on Release file

Simon DESEE simon at dedisoft.com
Mon Sep 3 12:36:25 UTC 2018


Hi, 


Sorry Robert I've never receive your last reply by mail, just seen it on mail-archive.com... 


So yes I've patched the client part by modifying this line on debUtils.py file : 


def parseVRE(version):
     epoch = ''
-    release = '0'
+    release = 'X' Is that all required ? 


Regards, 

----- Mail original -----

De: "Simon DESEE" <simon at dedisoft.com> 
À: spacewalk-list at redhat.com 
Envoyé: Vendredi 24 Août 2018 20:03:55 
Objet : Re: [Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500 on Release file 



Thanks for your reply. 


I've finally found this link : https://github.com/spacewalkproject/spacewalk/pull/636/files 


It seems that this is what you're saying about. 


Now, I've this error : 



[Fri Aug 24 20:00:07.022847 2018] [:error] [pid 9882] <class 'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request received (function 'InRelease' invalid; path_info is /GET-REQ/channels:/InRelease). 
[Fri Aug 24 20:00:07.022850 2018] [:error] [pid 9882] 
[Fri Aug 24 20:00:07.022852 2018] [:error] [pid 9882] 
[Fri Aug 24 20:00:07.022854 2018] [:error] [pid 9882] 
[Fri Aug 24 20:00:07.022856 2018] [:error] [pid 9882] Exception Handler Information 
[Fri Aug 24 20:00:07.022858 2018] [:error] [pid 9882] Traceback (most recent call last): 
[Fri Aug 24 20:00:07.022861 2018] [:error] [pid 9882] File "/usr/lib/python2.7/site-packages/spacewalk/server/apacheRequest.py", line 134, in call_function 
[Fri Aug 24 20:00:07.022863 2018] [:error] [pid 9882] func = self.method_ref(method) 
[Fri Aug 24 20:00:07.022865 2018] [:error] [pid 9882] File "/usr/lib/python2.7/site-packages/spacewalk/server/apacheRequest.py", line 569, in method_ref 
[Fri Aug 24 20:00:07.022867 2018] [:error] [pid 9882] method, self.req.path_info)) 
[Fri Aug 24 20:00:07.022870 2018] [:error] [pid 9882] UnknownXML: Invalid request received (function 'InRelease' invalid; path_info is /GET-REQ/channels:/InRelease). 
[Fri Aug 24 20:00:07.022874 2018] [:error] [pid 9882] 


Have you any idea ? 


I'm searching on Google, but nothing for the moment... 


Thanks a lot 


Simon 

----- Mail original -----

De: "Robert Paschedag" <robert.paschedag at web.de> 
À: spacewalk-list at redhat.com, "Simon DESEE" <simon at dedisoft.com> 
Envoyé: Vendredi 24 Août 2018 17:17:56 
Objet : Re: [Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500 on Release file 

Am 24. August 2018 16:16:25 MESZ schrieb Simon DESEE <simon at dedisoft.com>: 
>Hi all, 
> 
> 
>We have successfully added Ubuntu 16.04 and 1804 repos on Spacewalk. 
> 
> 
>Erratas are fully synced too. 
> 
> 
>The file Release for Ubuntu system is generated using the secureApt.sh 
>script 
>(https://github.com/philicious/spacewalk-scripts/blob/master/secureApt.sh). 
> 
> 
> 
>Now, I think we need to modify the rhnRepository.py file to add 
>reference to the new Release file. 
> 
> 
>As we are using latest version of Spacewalk (2.8), we can't find any 
>diff for that. The only one found is an old reference : 
>https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw. 
> 
> 
> 
>But it seems that some function are now required : 
> 
> 
>On rhnRepository.py file we have found : 
> 
> 
> 
>if file_name == "repomd.xml": 
>content_type = "text/xml" 
>output = repo.get_repomd_file() 
>elif file_name == "primary.xml.gz": 
>output = repo.get_primary_xml_file() 
>elif file_name == "other.xml.gz": 
>output = repo.get_other_xml_file() 
>elif file_name == "filelists.xml.gz": 
>output = repo.get_filelists_xml_file() 
>elif file_name == "updateinfo.xml.gz": 
>output = repo.get_updateinfo_xml_file() 
>elif file_name == "comps.xml": 
>content_type = "text/xml" 
>output = repo.get_comps_file() 
>elif file_name == "modules.yaml": 
>output = repo.get_modules_file() 
>else: 
>log_debug(2, "Unknown repomd file requested: %s" % file_name) 
>raise rhnFault(6) 
> 
> 
>So which output value must we use for the Release file (we are not 
>expert on Python...) ? 
> 
> 
>Many thanks for your help in advance ! 
> 
> 
>Best regards, 
> 
> 
>Simon 

You will find a patch within the closed PRs within spacewalk GitHub 

Robert 
-- 
sent from my mobile device 


_______________________________________________ 
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/20180903/58aa7df8/attachment.htm>


More information about the Spacewalk-list mailing list