<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">This is what I ended up doing and it seems to have worked<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">mv /etc/sysconfig/rhn/systemid /etc/sysconfig/rhn/systemid.broken<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">yum clean all<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">moved the public.repo into /etc/yum.repos.d<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">yum downgrade httpd httpd-tools mod_ssl<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">/usr/sbin/spacewalk-service restart<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">mv /etc/sysconfig/rhn/systemid.broken /etc/sysconfig/rhn/systemid<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">yum clean all<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">removed public.repo from /etc/yum.repos.d<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">yum clean all<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">I can update clients again<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks all<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> spacewalk-list-bounces@redhat.com [mailto:spacewalk-list-bounces@redhat.com]
<b>On Behalf Of </b>Radovan Drazny<br>
<b>Sent:</b> Friday, April 21, 2017 9:53 AM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] Spacewalk server HTTPS Error 400 - Bad Request<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Robin,<br>
<br>
this behavior is most likely caused by strict whitespace checking in httpd. <br>
Try adding "HttpProtocolOptions Unsafe" directive to httpd config on your SW <br>
server, and restart the httpd daemon. For more info see <a href="https://">https://</a><br>
<a href="httpd.apache.org/docs/2.4/mod/core.html#httpprotocoloptions">httpd.apache.org/docs/2.4/mod/core.html#httpprotocoloptions</a><br>
<br>
When an updated version of yum-rhn-plugin from Oracle will be available and <br>
installed on your clients, you can remove the directive from you httpd config.<br>
<br>
Problem is, I'm not sure this config option is available in the httpd version <br>
shipped with Oracle linux. If httpd fails during the restart, remove the <br>
"HttpProtocolOption". <br>
<br>
In such case, the easiest workaround is what Avi recommended - you just have <br>
to obtain previous versions of httpd, httpd-tools and mod_ssl rpms, and do a <br>
manual downgrade.<br>
<br>
Best regards<br>
<br>
--<br>
Radovan<br>
<br>
On Friday, April 21, 2017 2:49:16 PM CEST Robin Beardsley wrote:<br>
> Avi<br>
> <br>
> Thanks for the info. When I try and downgrade, I still get the same 404<br>
> error.<br>
<br>
> [root@oelsandbox ~]# yum downgrade httpd httpd-tools mod_ssl<br>
> Loaded plugins: langpacks, rhnplugin, versionlock<br>
> This system is receiving updates from Spacewalk server.<br>
> <br>
> <br>
> One of the configured repositories failed (Unknown),<br>
> and yum doesn't have enough cached data to continue. At this point the only<br>
> safe thing yum can do is fail. There are a few ways to work "fix" this: <br>
> 1. Contact the upstream for the repository and get them to fix the<br>
> problem.<br>
<br>
> 2. Reconfigure the baseurl/etc. for the repository, to point to a<br>
> working<br>
upstream. This is most often useful if you are using a newer<br>
> distribution release than is supported by the repository (and the packages<br>
> for the previous distribution release still work). <br>
> 3. Run the command with the repository temporarily disabled<br>
> yum --disablerepo=<repoid> ...<br>
> <br>
> 4. Disable the repository permanently, so yum won't use it by default.<br>
> Yum<br>
will then just ignore the repository until you permanently enable it<br>
> again or use --enablerepo for temporary usage:<br>
> <br>
> yum-config-manager --disable <repoid><br>
> or<br>
> subscription-manager repos --disable=<repoid><br>
> <br>
> 5. Configure the failing repository to be skipped, if it is<br>
> unavailable.<br>
Note that yum will try to contact the repo. when it runs most<br>
> commands, so will have to try and fail each time (and thus. yum will be be<br>
> much slower). If it is a very temporary problem though, this is often a<br>
> nice compromise:<br>
> <br>
> yum-config-manager --save<br>
> --setopt=<repoid>.skip_if_unavailable=true<br>
<br>
> failed to retrieve repodata/repomd.xml from oraclelinux7-x86_64<br>
> error was [Errno 14] HTTPS Error 400 - Bad Request<br>
> <br>
> My repolist:<br>
> [root@oelsandbox ~]# yum repolist<br>
> Loaded plugins: langpacks, rhnplugin, versionlock<br>
> This system is receiving updates from Spacewalk server.<br>
> repo id repo name <br>
> status<br>
oraclelinux7-x86_64 Oracle<br>
> Linux 7 (x86_64) 0<br>
> oraclelinux7-x86_64-addons Addons for Oracle Linux 7 (x86_64) <br>
> 0 oraclelinux7-x86_64-optional Optional<br>
> Packages for Oracle Linux 7 (x86_64) 0<br>
> oraclelinux7-x86_64-scl12 Software Collection Library release<br>
> 1.2 packages for Oracl 0 oraclelinux7-x86_64-spacewalk24-client Spacewalk<br>
> 2.4 Client for Oracle Linux 7 (x86_64) 0<br>
> oraclelinux7-x86_64-spacewalk24-server Spacewalk 2.4 Server for Oracle<br>
> Linux 7 (x86_64) 0 oraclelinux7-x86_64-uek-r3 Latest<br>
> Unbreakable Enterprise Kernel Release 3 for Oracle 0 repolist: 0<br>
> [root@oelsandbox ~]#<br>
> <br>
> From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a><br>
> [<a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a>] On Behalf Of Avi Miller<br>
Sent:<br>
> Thursday, April 20, 2017 4:09 PM<br>
> To: <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
> Subject: Re: [Spacewalk-list] Spacewalk server HTTPS Error 400 - Bad<br>
> Request<br>
<br>
> Hi,<br>
> <br>
> <br>
> > On 21 Apr 2017, at 1:23 am, Robin Beardsley<br>
> > <<a href="mailto:RBeardsley@nedelta.com%3cmailto:RBeardsley@nedelta.com">RBeardsley@nedelta.com<mailto:RBeardsley@nedelta.com</a>>> wrote:<br>
><br>
> ><br>
> ><br>
> > I’m hoping someone can help me. Today I tried to update my one of my<br>
> > clients from my Spacewalker server and got this error.<br>
> <br>
> You need to downgrade httpd on your Spacewalk server and wait for updated<br>
> yum-rhn-plugin packages from Oracle. We’re pushing them out ASAP. Once<br>
> we’ve released the new yum-rhn-plugin RPMs and you’ve upgraded all your<br>
> clients, you can upgrade httpd on your server again.<br>
<br>
> To downgrade, run:<br>
> <br>
> # yum downgrade httpd httpd-tools mod_ssl<br>
> <br>
> On your Spacewalk server. That should restore functionality.<br>
> <br>
> Cheers,<br>
> Avi<br>
> <br>
> --<br>
> Oracle <<a href="http://www.oracle.com">http://www.oracle.com</a><<a href="http://www.oracle.com">http://www.oracle.com</a>>><br>
> Avi Miller | Product Management Director | +61 (3) 8616 3496<br>
> Oracle Linux and Virtualization<br>
> 417 St Kilda Road, Melbourne, Victoria 3004 Australia<br>
> <br>
> <br>
> _______________________________________________<br>
> Spacewalk-list mailing list<br>
> <a href="mailto:Spacewalk-list@redhat.com%3cmailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com<mailto:Spacewalk-list@redhat.com</a>><br>
> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><<a href="https://www.redhat.co">https://www.redhat.co</a><br>
> m/mailman/listinfo/spacewalk-list><br>
<br>
<br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><o:p></o:p></p>
</div>
</body>
</html>