<div dir="ltr">Also, I shut the service down and ensured it wasn't running and while the entitlement file in /etc/pki/entitltements didn't change the syncs still failed with the issue...so while yes, it rhsmcertd can be the culprit, there's something else on Red Hat side maybe?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 28, 2020 at 12:24 PM Myers, Mike <<a href="mailto:Mike.Myers@nike.com">Mike.Myers@nike.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div class="gmail-m_7403790777430193934WordSection1">
<p class="MsoNormal">It’s 100% the rhsmcertd process that’s doing it.  From the man page:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">       rhsmcertd - Periodically scans and updates the entitlement certificates on a registered system.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">What I’m unclear on is why the certs get changed by Red Hat so often when our entitlements certainly haven’t.  And more importantly, what, if anything, we can do to integrate that process more closely with Pulp.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">And to be clear, I’m not trying to call this out as a Pulp project problem or issue, just wondering if others who use the project have insights or solutions they’re willing to share.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Cheers,<span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="color:black">Mike Myers</span></b><span style="color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(127,127,127)"><u></u> <u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12pt;color:black">From: </span></b><span style="font-size:12pt;color:black">Brian Bouterse <<a href="mailto:bmbouter@redhat.com" target="_blank">bmbouter@redhat.com</a>><br>
<b>Date: </b>Thursday, May 28, 2020 at 8:52 AM<br>
<b>To: </b>Gravel Bone <<a href="mailto:gravelbone@gmail.com" target="_blank">gravelbone@gmail.com</a>><br>
<b>Cc: </b>Mike Myers <<a href="mailto:Mike.Myers@nike.com" target="_blank">Mike.Myers@nike.com</a>>, "<a href="mailto:pulp-list@redhat.com" target="_blank">pulp-list@redhat.com</a>" <<a href="mailto:pulp-list@redhat.com" target="_blank">pulp-list@redhat.com</a>><br>
<b>Subject: </b>Re: [Pulp-list] <External> Syncing Red hat Repos entitlement issue<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">One idea to track down which process is editing those certs/files would be to use auditd or systemtap
<a href="https://urldefense.com/v3/__https:/unix.stackexchange.com/a/99091__;!!KLCbKzk!3-4lUfRz-2wFNgovtknDNZUEiyn20AZ72aaznXiV_QGBFFfkIRrb454_Sjx08Ns$" target="_blank">
https://unix.stackexchange.com/a/99091</a>  Just a thought I wanted to share.<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Thu, May 28, 2020 at 9:18 AM Gravel Bone <<a href="mailto:gravelbone@gmail.com" target="_blank">gravelbone@gmail.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal">In this case the entitlement certs themselves aren't expired from a date perspective, they just no longer work connecting to Red Hat.    It's more like they've been revoked because the server they are on got new entitlement certs which
 is happening automatically, I just have not figured out how to prevent that.   I've tried turning of rhsmcertd, disabled subscription management, and combinations in between.<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Wed, May 27, 2020 at 2:23 PM Brian Bouterse <<a href="mailto:bmbouter@redhat.com" target="_blank">bmbouter@redhat.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">If the certs are short-lived, then there isn't much to do except ask the issuer to give you longer ones. You could inspect the certs more closely I believe using the `rct cat-crt` command. Pulp-certguard has some docs showing an example
 with that tool <a href="https://urldefense.com/v3/__https:/pulp-certguard.readthedocs.io/en/latest/debugging.html*checking-authorized-urls-in-rhsm-certificates__;Iw!!KLCbKzk!3-4lUfRz-2wFNgovtknDNZUEiyn20AZ72aaznXiV_QGBFFfkIRrb454_MFyqH7A$" target="_blank">
https://pulp-certguard.readthedocs.io/en/latest/debugging.html#checking-authorized-urls-in-rhsm-certificates</a><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Wed, May 27, 2020 at 11:20 AM Myers, Mike <<a href="mailto:Mike.Myers@nike.com" target="_blank">Mike.Myers@nike.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">We’ve faced that too.  I’ve love some deeper insight, but what I’ve found so far is that “rhsmcertd” process does some sort of check/update on those certs.  We’ve just set a process
 to pull those from /etc/pki/entitlement into Pulp when such a failure occurs.  It would be nice if there were a Pulp native way to address this (short of running the whole Satellite suite)<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">Cheers,<u></u><u></u></p>
<p class="MsoNormal"><b><span style="color:black">Mike Myers</span></b><u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div style="border-right:none currentcolor;border-bottom:none currentcolor;border-left:none currentcolor;border-top:1pt solid currentcolor;padding:3pt 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black"><<a href="mailto:pulp-list-bounces@redhat.com" target="_blank">pulp-list-bounces@redhat.com</a>> on behalf of Gravel Bone <<a href="mailto:gravelbone@gmail.com" target="_blank">gravelbone@gmail.com</a>><br>
<b>Date: </b>Wednesday, May 27, 2020 at 5:48 AM<br>
<b>To: </b>"<a href="mailto:pulp-list@redhat.com" target="_blank">pulp-list@redhat.com</a>" <<a href="mailto:pulp-list@redhat.com" target="_blank">pulp-list@redhat.com</a>><br>
<b>Subject: </b><External>[Pulp-list] Syncing Red hat Repos entitlement issue</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">This is probably something straight forward, but my searches have found nothing...<u></u><u></u></p>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I pull an entitlement files from our server (well three for three different subscriptions) and create repos using them to sync the corresponding Red Hat repository.    The problem
 is, the entitlements seem to expire about every month.   I'm sure it's something I'm missing that stupid obvious, but google has not been my friend nor has the documentation...help would be appreciated...<u></u><u></u></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://urldefense.com/v3/__https:/www.redhat.com/mailman/listinfo/pulp-list__;!!KLCbKzk!3-4lUfRz-2wFNgovtknDNZUEiyn20AZ72aaznXiV_QGBFFfkIRrb454_ppGV4nQ$" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><u></u><u></u></p>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</div>
</div>

</blockquote></div>