<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>So,  I resurrected the old server from the grave and copied the contents of "/var/cach/rhn/reposync/rhel-6-server-rpms" to "/var/cach/rhn/reposync/<span>content_dist_rhel_server_6_$releasever_$basearch_os" and ran a sync.  The sync worked.</span></p>
<p><span><br>
</span></p>
<p><span>The sync worked, but it caused a new error.  A team member registered a Red Hat server just after I made these changes.  The server registered, but  with the following error:</span></p>
<p><span><br>
</span></p>
<p><span><i></i><span><i>Bad id for repo: logstash 5.x, byte =   8</i></span><br>
</span></p>
<p><span><br>
</span></p>
<p><span>I'm guessing that something within the data that I copied over does not align with the repository on SW?  </span></p>
<p><span><br>
</span></p>
<p><span>Another thing that I noticed is that the directory structure in the old reposync directory is different than the new server.  For example:</span></p>
<p><span><br>
</span></p>
<p><span>OLD:</span></p>
<p><span><span>/var/cache/rhn/reposync</span></span><span style="font-size: 12pt;">/</span><span style="font-size: 12pt;">centos-7-extra</span></p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p><span><span><span>/<span>centos-7-server-rpms</span></span></span></span></p>
<p><span><span><span><span>/<span>centos-7-updae</span></span></span></span></span></p>
<p><span><span><span><span><span>/<span>centos_7_channel</span></span></span></span></span></span></p>
<p><span><span><span><span><span><span>/<span>centos_7_plus</span></span></span></span></span></span></span></p>
<p><span><span><span><span><span><span><span><br>
</span></span></span></span></span></span></span></p>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
NEW:
<div>/var/cache/rhn/reposync<span style="font-size: 12pt;">/</span><span style="font-size: 12pt;">centos_7_centosplus_x86_64_</span></div>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div><span>/<span>centos_7_extras_x86_64_</span></span></div>
<div><span><span>/<span>centos_7_os_x86_64_</span></span></span></div>
<div><span><span><span>/<span>centos_7_updates_x86_64_</span></span></span></span></div>
<div><span><span><span><span><br>
</span></span></span></span></div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
Is that a SW v2.3 vs. v2.6 change?  
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Daryl<br>
<div><br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com> on behalf of Daryl Rose <darylrose@outlook.com><br>
<b>Sent:</b> Thursday, December 8, 2016 10:32 AM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] RHEL 6.x repository not syncing from parentchannel</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>More questions:</p>
<p><br>
</p>
<p>When I run "<span>spacewalk-repo-sync --channel=rhel-6-server-rpms",  I get the error:</span></p>
<p><span><br>
</span></p>
<p><span><i><span>ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: content_dist_rhel_server_6_$releasever_$basearch_os. Please verify its path and try again</span><br>
</i></span></p>
<br>
What creates the content in "<span>/var/cache/rhn/reposync/content_dist_rhel_server_6_$releasever_$basearch_os"?</span>
<div><br>
</div>
<div>All of the other channels that I created all have "<span>cachecookie, <span>packages, <span>primary.xml.gz, <span>primary.xml.gz.sqlite, <span>repomd.xml and <span>updateinfo.xml.gz".  </span></span></span></span></span></span></div>
<div><br>
</div>
<div>There must be a process that creates this content, but what, I'm not sure.  How can I manually create this content?<span></span></div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Daryl</div>
<div><span></span><br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com> on behalf of Daryl Rose <darylrose@outlook.com><br>
<b>Sent:</b> Thursday, December 8, 2016 9:26 AM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] RHEL 6.x repository not syncing from parentchannel</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Quick update.</p>
<p><br>
</p>
<p>Poking around on Red Hat I found a doc that suggested that I look at the  name in /etc/sysconfig/network and ensure that the hostname is FQDN and then run "<span>spacewalk-hostname-rename".   Host name was not FQDN, so I renamed it, but b</span><span style="font-size:12pt">ecause
 I use a signed cert, will running </span><span style="font-size:12pt">spacewalk-hostname-rename cause a problem with that cert?  </span></p>
<p><span><span></span></span></p>
<p><span><span><br>
</span></span></p>
<p><span><span>Thanks</span></span></p>
<p><span><span><br>
</span></span></p>
<p><span><span>Daryl</span></span></p>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com> on behalf of Daryl Rose <darylrose@outlook.com><br>
<b>Sent:</b> Thursday, December 8, 2016 8:55 AM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] RHEL 6.x repository not syncing from parentchannel</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Robert,</p>
<p><br>
</p>
<p>Yes, the server is registered and has an active subscription with Red Hat.  As a matter of fact, I just now re-registered to make sure that all is good.   I can see from the command line subscription manager that the server is subscribed, and I confirmed
 that it is entitled.  <span></span></p>
<p><br>
</p>
<p>I use a "signed" cert so I'm wondering if the signed cert has something to do with this?  However, I found a troubleshooting document on Red Hat that verifies that I am entitled and using the certificate provided by Red Hat to communicate back to them.  </p>
<div><br>
</div>
<div>Thank you</div>
<div><br>
</div>
<div>Daryl</div>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com> on behalf of Robert Paschedag <robert.paschedag@web.de><br>
<b>Sent:</b> Wednesday, December 7, 2016 11:48 PM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] RHEL 6.x repository not syncing from parentchannel</font>
<div> </div>
</div>
<div>
<div>
<div style="font-family:Calibri,sans-serif; font-size:11pt">I think you should check your entitlements. But I also don't know, how you could "manually" connect to the repo (with username/password or token inline in URL).<br>
<br>
Is your server listed as entitled within your RedHat account?<br>
</div>
</div>
<div dir="ltr">
<hr>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Von:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:darylrose@outlook.com">Daryl Rose</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Gesendet:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">‎06.‎12.‎2016 17:26</span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">An:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Betreff:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">Re: [Spacewalk-list] RHEL 6.x repository not syncing from parentchannel</span><br>
<br>
</div>
<div id="divtagdefaultwrapper" dir="ltr" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<p>I decided to try the sync from the command line.  This time I received an error:</p>
<p><br>
</p>
<p><i><span>ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: content_dist_rhel_server_6_6Server_x86_64_os_. Please verify its path and try again</span><br>
</i></p>
<div><br>
</div>
The path came out of the redhat.repo file that came from Red Hat when I registered the server.  Its the same path that was used on the previous server.  
<div><br>
</div>
<div>Any suggestions?</div>
<div><br>
</div>
<div>Thank you.</div>
<div><br>
</div>
<div>Daryl</div>
<div><br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="width:98%; display:inline-block">
<div id="divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com> on behalf of Daryl Rose <darylrose@outlook.com><br>
<b>Sent:</b> Monday, December 5, 2016 3:00 PM<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> [Spacewalk-list] RHEL 6.x repository not syncing from parent channel</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="color:rgb(0,0,0); font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt">
<p>I just realized that the last Red Hat errata for RHEL 6.x is from August.  I looked at the sync logs and it doesn't appear that anything is syncing at all from the RHEL channel.  </p>
<p><br>
</p>
<p>I just recently migrated to a physical server.  I successfully registered the server and attached an entitlement to the server.  If I run "yum update" on the server, it lists latest updates from the RHEL channel.  </p>
<p><br>
</p>
<p>This is what I see in the reposync log:</p>
<p><i><br>
</i></p>
<p><i></i></p>
<div><i>2016/12/05 14:49:42 -05:00 Command: ['/usr/bin/spacewalk-repo-sync', '--channel', 'rhel-6-server-rpms', '--type', 'yum']</i></div>
<div><i>2016/12/05 14:49:42 -05:00 Sync of channel started.</i></div>
<div><i>2016/12/05 14:49:42 -05:00 Repo URL: https:<rhel 6 rpm channel></i></div>
<div><i>2016/12/05 14:49:42 -05:00 Sync of channel completed in 0:00:00.</i></div>
<br>
<p></p>
<p>If I haven't received any syncs since August, then this broke long before I migrated to the physical server.</p>
<p><br>
</p>
<p>Any thoughts?</p>
<p><br>
</p>
<p>Daryl</p>
<p><br>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>