[Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500 on Release file
Robert Paschedag
robert.paschedag at web.de
Thu Sep 6 15:18:54 UTC 2018
Am 6. September 2018 10:36:15 MESZ schrieb Simon DESEE <simon at dedisoft.com>:
>Hi,
>
>
>Thanks for your reply, but this has already been done.
>
>
>The lines concerned by the patch are after the lines who generates the
>error :
>
>
>
>
>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)
>
I cannot find your traceback logs...
Now... Did you apply the patch or not
>
>Perhaps there's some other required modification missing...
All I can say is that applying PR 636 and 637 works for me (and I think others, too)
Robert
>
>
>Regards,
>
>----- Mail original -----
>
>De: "Robert Paschedag" <robert.paschedag at web.de>
>À: "Simon DESEE" <simon at dedisoft.com>
>Cc: spacewalk-list at redhat.com
>Envoyé: Mercredi 5 Septembre 2018 18:21:36
>Objet : RE: [Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500 on
>Release file
>
>Am 5. September 2018 17:27:25 MESZ schrieb Simon DESEE
><simon at dedisoft.com>:
>>I’ve not found it.
>>There’s some different files for server and client, but not this.
>>Thanks for your help!
>>Envoyé de mon téléphone Windows 10
>>De: Robert Paschedag
>>Envoyé le:mercredi 5 septembre 2018 16:59
>>À: Simon DESEE
>>Cc: spacewalk-list at redhat.com
>>Objet:Re: [Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500 on
>>Release file
>>
>>
>>Am 5. September 2018 12:39:35 MESZ schrieb Simon DESEE
>><simon at dedisoft.com>:
>>>Hi,
>>>
>>>
>>>I think you're right but I can't find patch for 2.8 version of
>>>Spacewalk.
>>>
>
>??
>https://github.com/spacewalkproject/spacewalk/pull/636/files
>
>Look at the "changes"
>
>Robert
>
>
>
>>>
>>>On 2.8, rhnRepository.py file on Spacewalk server contains these
>lines
>>>:
>>>
>>>
>>>
>>>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)
>>>
>>
>>But isn't this the file in PR 635 or 636?
>>
>>>
>>>But I can't find any patch adding InRelease, Release and Release.gz
>>>files support.
>>>
>>>Your link is for version 2.2.
>>>
>>>
>>>Any idea where to find a patch or what to add on this file ?
>>>
>>>
>>>Thanks
>>>
>>>
>>>Regards,
>>>
>>>----- Mail original -----
>>>
>>>De: "Robert Paschedag" <robert.paschedag at web.de>
>>>À: "Simon DESEE" <simon at dedisoft.com>
>>>Cc: spacewalk-list at redhat.com
>>>Envoyé: Mercredi 5 Septembre 2018 07:46:43
>>>Objet : Re: [Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500 on
>>>Release file
>>>
>>>Am 4. September 2018 10:30:00 MESZ schrieb Simon DESEE
>>><simon at dedisoft.com>:
>>>>Hi,
>>>>
>>>>
>>>>I've found the patch here :
>>>>https://github.com/spacewalkproject/spacewalk/pull/636
>>>>
>>>>
>>>>Some on these patches have already been applied, and some others
>not.
>>
>>>>
>>>>
>>>>So now all is patched, but the error still persists. The APT source
>>>>file is now a bit different.
>>>>
>>>>
>>>>There's now the format of spacewalk.list :
>>>>
>>>>
>>>>
>>>>deb spacewalk://xxxx.yyyy.com bionic repodata
>>>>deb spacewalk:// xxxx.yyyy .com bionic-security repodata
>>>>deb spacewalk:// xxxx.yyyy .com bionic-updates repodata
>>>>deb spacewalk:// xxxx.yyyy .com bionic-backports repodata
>>>>deb spacewalk:// xxxx.yyyy .com bionic-zabbix repodata
>>>>
>>>>
>>>>And there's the error found on HTTPD error.log file :
>>>>
>>>
>>>I'm still not sure, if your system is using the patched version or if
>
>>>one file still missed a patch.
>>>
>>>Please look at the bugzilla report.
>>>
>>>https://bugzilla.redhat.com/show_bug.cgi?id=1198723
>>>
>>>Robert
>>>
>>>
>>>>
>>>>
>>>>[Tue Sep 04 10:21:29.440218 2018] [:error] [pid 27318] <class
>>>>'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request
>>>received
>>>>(function 'InRelease' invalid; path_info is
>>>>/GET-REQ/bionic-zabbix/InRelease).
>>>>[Tue Sep 04 10:21:29.440220 2018] [:error] [pid 27318]
>>>>[Tue Sep 04 10:21:29.440225 2018] [:error] [pid 27318]
>>>>[Tue Sep 04 10:21:29.440227 2018] [:error] [pid 27318]
>>>>[Tue Sep 04 10:21:29.440229 2018] [:error] [pid 27318] Exception
>>>>Handler Information
>>>>[Tue Sep 04 10:21:29.440232 2018] [:error] [pid 27318] Traceback
>>(most
>>>
>>>>recent call last):
>>>>[Tue Sep 04 10:21:29.440234 2018] [:error] [pid 27318] File
>>>>"/usr/lib/python2.7/site-packages/spacewalk/server/apacheRequest.py",
>
>>
>>>>line 134, in call_function
>>>>[Tue Sep 04 10:21:29.440237 2018] [:error] [pid 27318] func =
>>>>self.method_ref(method)
>>>>[Tue Sep 04 10:21:29.440239 2018] [:error] [pid 27318] File
>>>>"/usr/lib/python2.7/site-packages/spacewalk/server/apacheRequest.py",
>
>>
>>>>line 569, in method_ref
>>>>[Tue Sep 04 10:21:29.440241 2018] [:error] [pid 27318] method,
>>>>self.req.path_info))
>>>>[Tue Sep 04 10:21:29.440244 2018] [:error] [pid 27318] UnknownXML:
>>>>Invalid request received (function 'InRelease' invalid; path_info is
>
>>>>/GET-REQ/bionic-zabbix/InRelease).
>>>>[Tue Sep 04 10:21:29.440248 2018] [:error] [pid 27318]
>>>>
>>>>
>>>>What am I doing wrong ?
>>>>
>>>>
>>>>Thanks for your help
>>>>
>>>>
>>>>Best regards,
>>>>
>>>>----- Mail original -----
>>>>
>>>>De: "Robert Paschedag" <robert.paschedag at web.de>
>>>>À: spacewalk-list at redhat.com, "Simon DESEE" <simon at dedisoft.com>
>>>>Envoyé: Lundi 3 Septembre 2018 17:22:09
>>>>Objet : Re: [Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500 on
>
>>>>Release file
>>>>
>>>>Am 3. September 2018 14:36:25 MESZ schrieb Simon DESEE
>>>><simon at dedisoft.com>:
>>>>>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
>>>>
>>>>No... You need the updated "apt-transport-spacewalk" so this works
>>>with
>>>>the modified backend.
>>>>
>>>>Robert
--
sent from my mobile device
More information about the Spacewalk-list
mailing list