<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:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" 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=us-ascii">
<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:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi Pulp list,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am trying to get Pulp to serve up RHEL repositories, but having an issue and hoped someone might help.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have a CentOS 7 system I am using to serve up s/w repositories with Pulp.  I am able to successfully use CentOS 6 and 7 repositories.  I am having trouble with RHEL repos.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I copies over Certificate files from an existing RHEL 6 machine:<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">root@sacpulp:/root #  cd /etc/pki<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">root@sacpulp:/etc/pki #  mkdir entitlement<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">root@sacpulp:/etc/pki #  cd entitlement<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">root@sacpulp:/etc/pki/entitlement #  scp sacrhel6:/etc/pki/entitlement/4559066367770050104.pem .<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">root@sacpulp:/etc/pki/entitlement #  scp sacrhel6:/etc/pki/entitlement/4559066367770050104-key.pem .<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">root@sacpulp:/etc/pki/entitlement #  cd /etc/pki/rpm-gpg<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">root@sacpulp:/etc/pki/rpm-gpg #  scp sacrhel6:/etc/pki/rpm-gpg/* .<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"><o:p> </o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">And then I add a repo definition for RHEL 6 server:<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">root@sacpulp:/etc/pki/entitlement #  pulp-admin rpm repo create --repo-id=rhel-6-server-rpms \<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">        --feed=https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os \<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">        --feed-ca-cert=/etc/rhsm/ca/redhat-uep.pem \<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">        --feed-key=/etc/pki/entitlement/4559066367770050104-key.pem \<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">        --feed-cert=/etc/pki/entitlement/4559066367770050104.pem \<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">        --relative-url=rhel-6-server-rpms \<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">        --gpg-key=/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release \<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">        --serve-http=True<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"><o:p> </o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">No errors...<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"><o:p> </o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">Then I try and sync it up, and it runs for a while and bombs with this message:<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"><o:p> </o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">root@sacpulp:/etc/pki/rpm-gpg # pulp-admin rpm repo sync run --repo-id=rhel-6-server-rpms<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">+----------------------------------------------------------------------+<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">             Synchronizing Repository [rhel-6-server-rpms]<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">+----------------------------------------------------------------------+<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">This command may be exited via ctrl+c without affecting the request.<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">Downloading metadata...<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">[\]<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">... completed<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">Downloading repository content...<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">[/]<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">[================                                  ] 33%<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">RPMs:       6573/19742 items<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">Delta RPMs: 0/0 items<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">An internal error occurred on the Pulp server:<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">RequestException: GET request on<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">/pulp/api/v2/tasks/64e8e910-084a-454b-89ff-228a5dd863d6/ failed with 500 -<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">localhost:27017: [Errno 111] Connection refused<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"><o:p> </o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">When I ran it again, it bombed immediately:<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">root@sacpulp:/etc/pki/rpm-gpg # pulp-admin rpm repo sync run --repo-id=rhel-6-server-rpms<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">+----------------------------------------------------------------------+<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">             Synchronizing Repository [rhel-6-server-rpms]<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">+----------------------------------------------------------------------+<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">An internal error occurred on the Pulp server:<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">RequestException: POST request<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">on /pulp/api/v2/tasks/search/ failed with 500 - localhost:27017: [Errno 111]<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">Connection refused<o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"><o:p> </o:p></p>
<p style="margin:0in;margin-bottom:.0001pt">Any ideas would be appreciated...<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
<p class="MsoNormal">Thank you, and best regards,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Don<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Times New Roman",serif">Office:  (925) 948-2829<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
Disclaimer: This communication and any attachments contain private, confidential, privileged and/or proprietary information intended solely for the Recipient(s) named above. If you are not the intended Recipient, any use, dissemination, distribution or copying
 of the communication is strictly prohibited. If received in error, we apologize and ask that you please notify the Sender by returning this e-mail and permanently deleting this communication from your computer, including destruction of any printed copies.
 Any views expressed herein are not necessarily those of the Company represented by this e-mail source. No contracts, agreements or legally binding understandings may be entered into solely by an e-mail communication.
</body>
</html>