Discussion:
[Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500 on Release file
Simon DESEE
2018-08-24 14:16:25 UTC
Permalink
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
Robert Paschedag
2018-08-24 15:17:56 UTC
Permalink
Post by Simon DESEE
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
https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
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
Simon DESEE
2018-08-24 18:03:55 UTC
Permalink
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" <***@web.de>
À: spacewalk-***@redhat.com, "Simon DESEE" <***@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
Post by Simon DESEE
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
https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
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
Robert Paschedag
2018-08-24 20:52:24 UTC
Permalink
Post by Simon DESEE
Thanks for your reply.
https://github.com/spacewalkproject/spacewalk/pull/636/files
It seems that this is what you're saying about.
Did you also patch the client packages on the servers like stated within the PR conversion?
Post by Simon DESEE
[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.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))
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 -----
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
Post by Simon DESEE
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
https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
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
Simon DESEE
2018-09-03 12:36:25 UTC
Permalink
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" <***@dedisoft.com>
À: spacewalk-***@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" <***@web.de>
À: spacewalk-***@redhat.com, "Simon DESEE" <***@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
Post by Simon DESEE
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
https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
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-***@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
Robert Paschedag
2018-09-03 15:22:09 UTC
Permalink
Post by Simon DESEE
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
epoch = ''
- release = '0'
+ release = 'X' Is that all required ?
Regards,
----- Mail original -----
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.
https://github.com/spacewalkproject/spacewalk/pull/636/files
It seems that this is what you're saying about.
[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.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))
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 -----
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
Post by Simon DESEE
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
https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
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
Simon DESEE
2018-09-04 08:30:00 UTC
Permalink
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 :



[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" <***@web.de>
À: spacewalk-***@redhat.com, "Simon DESEE" <***@dedisoft.com>
Envoyé: Lundi 3 Septembre 2018 17:22:09
Objet : Re: [Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500 on Release file
Post by Simon DESEE
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
epoch = ''
- release = '0'
+ release = 'X' Is that all required ?
Regards,
----- Mail original -----
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.
https://github.com/spacewalkproject/spacewalk/pull/636/files
It seems that this is what you're saying about.
[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.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))
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 -----
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
Post by Simon DESEE
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
https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
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
Robert Paschedag
2018-09-05 05:46:43 UTC
Permalink
Post by Simon DESEE
Hi,
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.
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
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
Post by Simon DESEE
[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.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))
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 -----
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
Post by Simon DESEE
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
epoch = ''
- release = '0'
+ release = 'X' Is that all required ?
Regards,
----- Mail original -----
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.
https://github.com/spacewalkproject/spacewalk/pull/636/files
It seems that this is what you're saying about.
[Fri Aug 24 20:00:07.022847 2018] [:error] [pid 9882] <class
'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request
received
Post by Simon DESEE
(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
Post by Simon DESEE
Information
[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))
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 -----
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
Post by Simon DESEE
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
Post by Simon DESEE
Post by Simon DESEE
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
https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
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
Simon DESEE
2018-09-05 10:39:35 UTC
Permalink
Hi,


I think you're right but I can't find patch for 2.8 version of Spacewalk.


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 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" <***@web.de>
À: "Simon DESEE" <***@dedisoft.com>
Cc: spacewalk-***@redhat.com
Envoyé: Mercredi 5 Septembre 2018 07:46:43
Objet : Re: [Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500 on Release file
Post by Simon DESEE
Hi,
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.
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
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
Post by Simon DESEE
[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.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))
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 -----
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
Post by Simon DESEE
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
epoch = ''
- release = '0'
+ release = 'X' Is that all required ?
Regards,
----- Mail original -----
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.
https://github.com/spacewalkproject/spacewalk/pull/636/files
It seems that this is what you're saying about.
[Fri Aug 24 20:00:07.022847 2018] [:error] [pid 9882] <class
'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request
received
Post by Simon DESEE
(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
Post by Simon DESEE
Information
[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))
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 -----
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
Post by Simon DESEE
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
Post by Simon DESEE
Post by Simon DESEE
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
https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
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
Robert Paschedag
2018-09-05 14:59:32 UTC
Permalink
Post by Simon DESEE
Hi,
I think you're right but I can't find patch for 2.8 version of
Spacewalk.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
log_debug(2, "Unknown repomd file requested: %s" % file_name)
raise rhnFault(6)
But isn't this the file in PR 635 or 636?
Post by Simon DESEE
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 -----
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
Post by Simon DESEE
Hi,
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.
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
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
Post by Simon DESEE
[Tue Sep 04 10:21:29.440218 2018] [:error] [pid 27318] <class
'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request
received
Post by Simon DESEE
(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
[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))
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 -----
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
Post by Simon DESEE
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
epoch = ''
- release = '0'
+ release = 'X' Is that all required ?
Regards,
----- Mail original -----
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.
https://github.com/spacewalkproject/spacewalk/pull/636/files
It seems that this is what you're saying about.
[Fri Aug 24 20:00:07.022847 2018] [:error] [pid 9882] <class
'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request
received
Post by Simon DESEE
(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
Post by Simon DESEE
Information
[Fri Aug 24 20:00:07.022858 2018] [:error] [pid 9882] Traceback (most
[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))
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 -----
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
Post by Simon DESEE
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
Post by Simon DESEE
Post by Simon DESEE
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
https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
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
Post by Simon DESEE
the modified backend.
Robert
--
sent from my mobile device
Simon DESEE
2018-09-05 15:27:25 UTC
Permalink
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-***@redhat.com
Objet:Re: [Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500 on Release file
Post by Simon DESEE
Hi,
I think you're right but I can't find patch for 2.8 version of
Spacewalk.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
log_debug(2, "Unknown repomd file requested: %s" % file_name)
raise rhnFault(6)
But isn't this the file in PR 635 or 636?
Post by Simon DESEE
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 -----
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
Post by Simon DESEE
Hi,
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.
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
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
Post by Simon DESEE
[Tue Sep 04 10:21:29.440218 2018] [:error] [pid 27318] <class
'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request
received
Post by Simon DESEE
(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
[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))
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 -----
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
Post by Simon DESEE
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
epoch = ''
- release = '0'
+ release = 'X' Is that all required ?
Regards,
----- Mail original -----
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.
https://github.com/spacewalkproject/spacewalk/pull/636/files
It seems that this is what you're saying about.
[Fri Aug 24 20:00:07.022847 2018] [:error] [pid 9882] <class
'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request
received
Post by Simon DESEE
(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
Post by Simon DESEE
Information
[Fri Aug 24 20:00:07.022858 2018] [:error] [pid 9882] Traceback (most
[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))
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 -----
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
Post by Simon DESEE
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
Post by Simon DESEE
Post by Simon DESEE
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
https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
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
Post by Simon DESEE
the modified backend.
Robert
--
sent from my mobile device
Robert Paschedag
2018-09-05 16:21:36 UTC
Permalink
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
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
Post by Simon DESEE
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
Post by Simon DESEE
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
log_debug(2, "Unknown repomd file requested: %s" % file_name)
raise rhnFault(6)
But isn't this the file in PR 635 or 636?
Post by Simon DESEE
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 -----
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
Post by Simon DESEE
Hi,
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.
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
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
Post by Simon DESEE
[Tue Sep 04 10:21:29.440218 2018] [:error] [pid 27318] <class
'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request
received
Post by Simon DESEE
(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
Post by Simon DESEE
Post by Simon DESEE
[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))
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 -----
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
Post by Simon DESEE
Hi,
Sorry Robert I've never receive your last reply by mail, just seen
it
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
on mail-archive.com...
epoch = ''
- release = '0'
+ release = 'X' Is that all required ?
Regards,
----- Mail original -----
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.
https://github.com/spacewalkproject/spacewalk/pull/636/files
It seems that this is what you're saying about.
[Fri Aug 24 20:00:07.022847 2018] [:error] [pid 9882] <class
'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request
received
Post by Simon DESEE
(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
Post by Simon DESEE
Information
[Fri Aug 24 20:00:07.022858 2018] [:error] [pid 9882] Traceback
(most
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
[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))
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 -----
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
Post by Simon DESEE
Hi all,
We have successfully added Ubuntu 16.04 and 1804 repos on
Spacewalk.
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
Erratas are fully synced too.
The file Release for Ubuntu system is generated using the
secureApt.sh
Post by Simon DESEE
Post by Simon DESEE
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
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
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
Post by Simon DESEE
the modified backend.
Robert
--
sent from my mobile device
Simon DESEE
2018-09-06 08:36:15 UTC
Permalink
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)


Perhaps there's some other required modification missing...


Regards,

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

De: "Robert Paschedag" <***@web.de>
À: "Simon DESEE" <***@dedisoft.com>
Cc: spacewalk-***@redhat.com
Envoyé: Mercredi 5 Septembre 2018 18:21:36
Objet : RE: [Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500 on Release file
Post by Simon DESEE
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
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
Post by Simon DESEE
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
Post by Simon DESEE
Post by Simon DESEE
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
log_debug(2, "Unknown repomd file requested: %s" % file_name)
raise rhnFault(6)
But isn't this the file in PR 635 or 636?
Post by Simon DESEE
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 -----
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
Post by Simon DESEE
Hi,
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.
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
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
Post by Simon DESEE
[Tue Sep 04 10:21:29.440218 2018] [:error] [pid 27318] <class
'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request
received
Post by Simon DESEE
(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
Post by Simon DESEE
Post by Simon DESEE
[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))
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 -----
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
Post by Simon DESEE
Hi,
Sorry Robert I've never receive your last reply by mail, just seen
it
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
on mail-archive.com...
epoch = ''
- release = '0'
+ release = 'X' Is that all required ?
Regards,
----- Mail original -----
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.
https://github.com/spacewalkproject/spacewalk/pull/636/files
It seems that this is what you're saying about.
[Fri Aug 24 20:00:07.022847 2018] [:error] [pid 9882] <class
'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request
received
Post by Simon DESEE
(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
Post by Simon DESEE
Information
[Fri Aug 24 20:00:07.022858 2018] [:error] [pid 9882] Traceback
(most
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
[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))
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 -----
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
Post by Simon DESEE
Hi all,
We have successfully added Ubuntu 16.04 and 1804 repos on
Spacewalk.
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
Erratas are fully synced too.
The file Release for Ubuntu system is generated using the
secureApt.sh
Post by Simon DESEE
Post by Simon DESEE
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
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
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
Post by Simon DESEE
the modified backend.
Robert
--
sent from my mobile device
Robert Paschedag
2018-09-06 15:18:54 UTC
Permalink
Post by Simon DESEE
Hi,
Thanks for your reply, but this has already been done.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
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
Post by Simon DESEE
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
Post by Simon DESEE
Regards,
----- Mail original -----
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
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
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
Post by Simon DESEE
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
Post by Simon DESEE
On 2.8, rhnRepository.py file on Spacewalk server contains these
lines
Post by Simon DESEE
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
log_debug(2, "Unknown repomd file requested: %s" % file_name)
raise rhnFault(6)
But isn't this the file in PR 635 or 636?
Post by Simon DESEE
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 -----
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
Post by Simon DESEE
Hi,
https://github.com/spacewalkproject/spacewalk/pull/636
Some on these patches have already been applied, and some others
not.
Post by Simon DESEE
Post by Simon DESEE
So now all is patched, but the error still persists. The APT source
file is now a bit different.
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
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
Post by Simon DESEE
[Tue Sep 04 10:21:29.440218 2018] [:error] [pid 27318] <class
'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request
received
Post by Simon DESEE
(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
Post by Simon DESEE
Post by Simon DESEE
[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))
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 -----
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
Post by Simon DESEE
Hi,
Sorry Robert I've never receive your last reply by mail, just seen
it
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
on mail-archive.com...
epoch = ''
- release = '0'
+ release = 'X' Is that all required ?
Regards,
----- Mail original -----
Envoyé: Vendredi 24 Août 2018 20:03:55
Objet : Re: [Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500
on
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
Release file
Thanks for your reply.
https://github.com/spacewalkproject/spacewalk/pull/636/files
It seems that this is what you're saying about.
[Fri Aug 24 20:00:07.022847 2018] [:error] [pid 9882] <class
'spacewalk.server.apacheRequest.UnknownXML'> : Invalid request
received
Post by Simon DESEE
(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
Post by Simon DESEE
Information
[Fri Aug 24 20:00:07.022858 2018] [:error] [pid 9882] Traceback
(most
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
[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))
Invalid request received (function 'InRelease' invalid; path_info
is
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
/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 -----
Envoyé: Vendredi 24 Août 2018 17:17:56
Objet : Re: [Spacewalk-list] Ubuntu and Spacewalk 2.8 : Error 500
on
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
Release file
Am 24. August 2018 16:16:25 MESZ schrieb Simon DESEE
Post by Simon DESEE
Hi all,
We have successfully added Ubuntu 16.04 and 1804 repos on
Spacewalk.
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
Erratas are fully synced too.
The file Release for Ubuntu system is generated using the
secureApt.sh
Post by Simon DESEE
Post by Simon DESEE
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
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
Post by Simon DESEE
https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw.
content_type = "text/xml"
output = repo.get_repomd_file()
output = repo.get_primary_xml_file()
output = repo.get_other_xml_file()
output = repo.get_filelists_xml_file()
output = repo.get_updateinfo_xml_file()
content_type = "text/xml"
output = repo.get_comps_file()
output = repo.get_modules_file()
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
Post by Simon DESEE
the modified backend.
Robert
--
sent from my mobile device
Loading...