<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>Hello Paul,</p>
<p><br>
</p>
<p>Thank you for the information.</p>
<p><br>
</p>
<p>In response to your statement about angry reply.  No, I am not angry. Frustrated yes, angry no.  Comments made by Robert, and then you do frustrate me. I've been trying to figure this out now for several weeks, posting questions with no answer.  I<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 16px;">n
 more than one reply </span>I had specifically said where I had obtained the URL.    I've tried to be as specific as I could about what I am seeing and what specific steps I've taken to resolve this issue.  <span style="font-size: 12pt;">I've asked multiple
 times, where does the data in the reposync directory </span><span style="font-size: 12pt;">come from?  What creates it?  What frustrates me is the few replies that I had received were not very clear as to where to
<span style="font-family: Constantia, serif;">look</span>, or how to troubleshoot this product.   I personally felt that Roberts response to me was laced with angry tones.  In my reply to him, I tried to make it clear that the URL is not the issue, the missing
 data in the reposync directory is the issue.    The error that I am receiving is miss leading.  spacewalk-repo-sync can't find repond.xml because its not there, not because of the path being wrong, but because it and the other keys required are not there.
  The question that I've been asking, is <u>WHAT CREATES THAT DATA? </u></span></p>
<p><br>
</p>
<p><span style="font-size: 12pt;">Also, one thing that you are correct about is that I don't have a lot of knowledge with the product.  I have over 1500 servers that I have to maintain and keep running.  I don't have a lot of time to dig into the product and
 learn every single little feature and component.  That is why I post questions to forums, mailing lists and yes, Google.  But, as of right now, I haven't been able to find anything that would help me resolve this issue. </span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><span style="font-size: 12pt;">In response to the steps that you outlined below.  I'll review them and see if I can use them to troubleshoot the product more.  </span></p>
<p><span style="font-size: 12pt;"><br>
</span></p>
<p><snip></p>
<p><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">2) using a the same URL and keys as subscription manager, the
 URLs for</span><br style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">the repos and the SSL keys can be retrieved from subscritpion manager</span><br style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">on a registered host or through access.redhat.com by drilling into
 the</span><br style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">subscriptions.</span><br style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">either way you debug it by looking at the output of the reposync</span><br style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">command. normally reposync is executed by taskomatic and a log file
 is</span><br style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">created with the output for each repository. in addition taskomatic</span><br style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">has the output in its logs.</span><br style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">the scheduling and exact options like the URL and if a SSL cert
 is</span><br style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">used are configured on each repository through the spacewalk web</span><br style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">
<span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;">interface. by the way this is the url you were being asked about.</span></p>
<p><span style="font-size: 12pt;"></snip></span></p>
<p><span style="font-family: Calibri, Arial, Helvetica, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; font-size: 13.3333px;"><br>
</span></p>
<p><span style="font-size: 12pt;"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">The URL that I am using IS the same URL that subscription manager uses.  Again, I posted that several time before.  As a matter of fact, in
 my troubleshooting, I ran the native reposync command and successfully downloaded the RHEL repo.  So, this is why I kept focusing my attention on spacewalk-repo-sync.  From looking at the spacewalk-repo-sync script, it appears that it calls the native reposync
 command, but I am not a python developer, and I can only follow the script so much.  But I can see where it imports reposync, and then executes in within the script, but I can't debug the script, or trace the script, because I don't know python, nor do I know
 anyone who does that can help me figure out how it works.</span><br>
</span></p>
<p><span style="font-size: 12pt;"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;"><br>
</span></span></p>
<p><span style="font-size: 12pt;"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">I'll look at some of the other items that you mentioned, but I really doubt that its a corrupt RPM, or a stuck taskomatic job. I've ran the
 spacewalk-data-fsck command more that once, and I've stopped started Spacewalk more than once and this problem is still an issue.  </span></span></p>
<p><span style="font-size: 12pt;"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;"><br>
</span></span></p>
<p><span style="font-size: 12pt;"><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">I would still like to have one question answered; what creates the data in the /var/cache/rhn/reposync directory?   </span></span><font face="Calibri, Arial, Helvetica, sans-serif"><span style="font-size: 12pt;">e.g.
 repomd.xml, mirrorlist.txt, cachecookie and keys?  I can copy the data over from the old server to the new server and work around this issue, but that is just a work around. It does not resolve the issue and I need to resolve the issue.  So, if you or someone
 else on this list can answer that question, I think that I can use that to figure out how to
</span>resolve<span style="font-size: 12pt;"> this.  Something creates the data, I would like to know what.</span></font></p>
<p><br>
</p>
<p><font face="Calibri, Arial, Helvetica, sans-serif"><span style="font-size: 12pt;">Thank you very much for your reply Paul, and thank you for the information.</span></font></p>
<p><font face="Calibri, Arial, Helvetica, sans-serif"><span style="font-size: 12pt;"><br>
</span></font></p>
<p><font face="Calibri, Arial, Helvetica, sans-serif">Daryl</font></p>
<p><br>
</p>
<p><br>
</p>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_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 Paul Robert Marino <prmarino1@gmail.com><br>
<b>Sent:</b> Monday, December 19, 2016 3:02 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>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Daryl<br>
<br>
Im going to lay out a plan for you to debug this situation, but since<br>
you gave angry responses when you obviously did not understand the<br>
questions you were being asked I think you really need to read the<br>
manuals. so I will point you in the right direction in a way so you<br>
will better get to know spacewalk.<br>
<br>
potential problem 1 - repos not syncing from Red Hat.<br>
there are 2 methods used to sync repos from RedHat.<br>
1) Mrepo - this is the legacy method. mrepo is a python script which<br>
uses a username and password to mirror Red Hats repos locally, then<br>
spacewalk syncs from it using reposync. optionally an other script is<br>
also used to sync erratas with this because mrepo does not sync them.<br>
2) using a the same URL and keys as subscription manager, the URLs for<br>
the repos and the SSL keys can be retrieved from subscritpion manager<br>
on a registered host or through access.redhat.com by drilling into the<br>
subscriptions.<br>
either way you debug it by looking at the output of the reposync<br>
command. normally reposync is executed by taskomatic and a log file is<br>
created with the output for each repository. in addition taskomatic<br>
has the output in its logs.<br>
the scheduling and exact options like the URL and if a SSL cert is<br>
used are configured on each repository through the spacewalk web<br>
interface. by the way this is the url you were being asked about.<br>
<br>
Potential problem 2 - repos are syncing but taskomatic doesn't update<br>
the meta data correctly.<br>
the primary cause for this is the repo-metadata job exceeding the<br>
memory limits configured in taskomatic. This is common known tuning<br>
issue with the RHEL 5 and 6 repositories because they are huge, and<br>
some other large repositories as well. the root cause is poor error<br>
handling in taskomatic's upstream code. if one job is killed in the<br>
middle then none of the future jobs will run until taskomatic is<br>
restarted.<br>
the first step to diagnosing it is to go into spacewalks admin tab and<br>
drill down into it to find the internally scheduled tasks which do not<br>
appear in the main scheduling tab. drill down into the history of the<br>
metadata job to see if it shows a job hung for a day or more (if so<br>
that job actually died). if there is one hung restart taskomatic and<br>
you should see it try to execute the tasks it missed. next you want to<br>
look at taskomatics logs to find out if any jobs exceded the maximum<br>
memory limits. if any have then you need to increase the limit in<br>
taskomitics configuration.<br>
<br>
other 2 potential problems which are less likely.<br>
1) corrupt RPM files or database checksums, both can be diagnosed and<br>
fixed by the spacewalk-data-fsck command.<br>
2) in some rare cases 2 RPM's with the same name and version but<br>
different checksums have been know to be put in the same channel the<br>
results in Yum and the Red hat installer saying the file cant be found<br>
or has a corrupt check sum. usually this was caused by a errats sync<br>
script which is not aware of a known bug in the errata API's which has<br>
never been fixed. the way to fix this to delete all packages with the<br>
offending name and version from the repository then re run reposync<br>
manually via the command line, or spacewalk web interface on the<br>
affected repos.<br>
<br>
<br>
<br>
<br>
for further reading on this you may want to look at spacewalks<br>
documentation and the Red hat documentation for RHN Satellite 5.x on<br>
access.redhat.com  additionally all of these issues have been<br>
discussed many times on this mailing list and can be found easilly by<br>
a google search<br>
<br>
<br>
<br>
<br>
On Mon, Dec 19, 2016 at 2:54 PM, Daryl Rose <darylrose@outlook.com> wrote:<br>
> Robert,<br>
><br>
><br>
> Perhaps I don't understand what you're telling me.<br>
><br>
><br>
> How do I fix problem 1?  What steps do I have to do to fix problems 1?<br>
><br>
><br>
> I know that it's not syncing the remote repository, but the error that I am<br>
> seeing points to problem 2.  To me, problem 2 is what is preventing problem<br>
> 1 from being achieved that is why I am focusing on problem 2.<br>
><br>
><br>
> Thanks<br>
><br>
><br>
> Daryl<br>
><br>
><br>
> ________________________________<br>
> From: Robert Paschedag <robert.paschedag@web.de><br>
> Sent: Monday, December 19, 2016 1:43 PM<br>
><br>
> To: Daryl Rose; spacewalk-list@redhat.com<br>
> Subject: AW: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
> We are talking about 2 problems.<br>
><br>
> 1. Your server doesn't sync the remote repository.<br>
> 2. Your server is not creating repository meta data.<br>
><br>
> You have to fix problem 1 first. If that works, you can think about fixing<br>
> problem 2.<br>
><br>
> From what you are telling.... You're trying to fix problem 2. I'm taking<br>
> about problem 1 all the time.<br>
><br>
> Again... First fix number 1.<br>
><br>
> Regards<br>
> Robert<br>
><br>
><br>
> ------ Originalnachricht------<br>
> Von: Daryl Rose<br>
> Datum: Mo., 19. Dez. 2016 20:14<br>
> An: spacewalk-list@redhat.com;<br>
> Cc:<br>
> Betreff:Re: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
> Sorry about the reply.  Normally when I reply, it does go to the group, not<br>
> just to the individual who sent the reply, but for whatever reason, I have<br>
> to specify the mailing list when replying to your emails.<br>
><br>
><br>
> The path that the error is referring to is:<br>
><br>
><br>
> /var/cache/rhn/reposync/content_dist_rhel_server_6_$releasever_$basearch_os/repomd.xml<br>
><br>
> or<br>
><br>
> /var/cache/rhn/reposync/content_dist_rhel_server_6_6Server_x86_64_os_/repomd.xml<br>
><br>
> As I stated in the past, repomd.xml and additional content is not created<br>
> when spacewalk-repo-sync runs.  I've been able to prove that<br>
> spacewalk-repo-sync creates this directory because I've removed it multiple<br>
> times and the directory is created and a sub-directory called "packages",<br>
> but that is it.  None of the keys are created, and repomd.xml is not<br>
> created.<br>
><br>
> spacewalk-repo-sync is a python script.  I don't know anything about python<br>
> and I don't know how to trace the script.  I've tried "phthon -m reposync<br>
> --trace spacewalk-repo-sync", but that doesn't work.  I would really like to<br>
> see what is happening when the script tries to execute the reposync module,<br>
> but I get "reposync module doesn't exists".<br>
><br>
> Maybe if I can see what is going on in the spacewalk-repo-sync script, then<br>
> I can figure out what is causing my issue.<br>
><br>
> Thanks<br>
><br>
> Daryl<br>
> ________________________________<br>
> From: Robert Paschedag ><br>
> Sent: Monday, December 19, 2016 11:35 AM<br>
> To: Daryl Rose<br>
> Cc: spacewalk-list@redhat.com<br>
> Subject: AW: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
> Please, answer to "all" so the list gets informed, too.<br>
><br>
> And there is no path mentioned anywhere! Is there no path in the logs that<br>
> the script tries to connect to?<br>
> LikeHTTP://ftp.redhat.com/some/path/repomd.xml<br>
><br>
> I don't care the name of the repository or path on your local machine....<br>
> The download URL is the thing that matters...<br>
><br>
> Regards<br>
> Robert<br>
><br>
> ------ Originalnachricht------<br>
> Von: Daryl Rose<br>
> Datum: Mo., 19. Dez. 2016 18:11<br>
> An: Robert Paschedag;<br>
> Cc:<br>
> Betreff:Re: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
> I tried both with and without variables.   This is an example of without the<br>
> variables.  Same error:<br>
><br>
><br>
> 11:08:18 ERROR: Cannot retrieve repository metadata (repomd.xml) for<br>
> repository: content_dist_rhel_server_6_6Server_x86_64_os_. Please verify its<br>
> path and try again<br>
><br>
><br>
> [root reposync]# ls -l<br>
> drwxr-xr-x. 3 root root     4096 Dec 19 11:08<br>
> content_dist_rhel_server_6_6Server_x86_64_os_<br>
><br>
> Daryl<br>
><br>
> ________________________________<br>
> From: Robert Paschedag><br>
> Sent: Monday, December 19, 2016 10:08 AM<br>
> To: Daryl Rose; spacewalk-list@redhat.com<br>
> Subject: AW: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
> Daryl,<br>
><br>
> I don't think, that you can use the URL that is used by "yum" within<br>
> spacewalk. Just because of these variables in it! I think this is why you<br>
> get the "invalid path" errors. So just print also the paths within your logs<br>
> just before the error occurs to verify. Then... Try to use the "resolved"<br>
> URL within spacewalk.<br>
><br>
> Regards<br>
> Robert<br>
><br>
><br>
> ------ Originalnachricht------<br>
> Von: Daryl Rose<br>
> Datum: Mo., 19. Dez. 2016 16:20<br>
> An: spacewalk-list@redhat.com;<br>
> Cc:<br>
> Betreff:Re: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
> Robert,<br>
><br>
><br>
> The URL came from the /etc/yum.repos.d/redhat.repo.redhat.repo, which is<br>
> created when registering to Red Hat.   The path in question is created when<br>
> I run the spacewalk-repo-sync command.  I've removed that particular path<br>
> several times, modified the URL and every time I run the spacewalk-repo-sync<br>
> command, the directory in question get recreated.<br>
><br>
><br>
> I do know that there is a difference between the original reposync directory<br>
> and the new reposync directory.<br>
><br>
><br>
> This is the content of the reposync directory on the original server:<br>
><br>
><br>
> [root]# cd /var/cache/rhn/reposync<br>
><br>
> [root reposync]# ls -l<br>
> total 104<br>
> drwxr-xr-x. 3 root root 4096 Oct 12 11:18 centos-7-extra<br>
> drwxr-xr-x. 3 root root 4096 Nov  8 21:00 centos-7-updae<br>
> drwxr-xr-x. 3 root root 4096 Aug 24 12:10 centos_7_channel<br>
> drwxr-xr-x. 3 root root 4096 Aug 29 13:10 centos_7_plus<br>
> drwxr-xr-x. 3 root root 4096 Dec  9 14:03 rhel-6-server-rpms<br>
> drwxr-xr-x. 3 root root 4096 Aug 23 18:00 sles11-sp3-pool<br>
> drwxr-xr-x. 3 root root 4096 Aug 23 19:00 sles11-sp3-pool-x86<br>
> drwxr-xr-x. 3 root root 4096 Nov  8 18:01 sles11-sp3-update<br>
> drwxr-xr-x. 3 root root 4096 Dec  8 19:00 sles11-sp3-update-pool-x86<br>
> drwxr-xr-x. 3 root root 4096 Aug 23 20:00 sles11-sp4-pool<br>
> drwxr-xr-x. 3 root root 4096 Nov  8 20:00 sles11-sp4-update<br>
><br>
><br>
> This is the contents of the reposync directory on the new server:<br>
><br>
><br>
> [root]# cd /var/cache/rhn/reposync<br>
><br>
> [root reposync]# ls -l<br>
> total 71328<br>
> drwxr-xr-x. 3 root root     4096 Dec 18 17:00 centos_7_centosplus_x86_64_<br>
> drwxr-xr-x. 3 root root     4096 Dec 18 18:00 centos_7_extras_x86_64_<br>
> drwxr-xr-x. 3 root root     4096 Dec 18 17:30 centos_7_os_x86_64_<br>
> drwxr-xr-x. 3 root root     4096 Dec 18 18:30 centos_7_updates_x86_64_<br>
> drwxr-xr-x. 3 root root     4096 Dec 15 15:38<br>
> content_dist_rhel_server_6_$releasever_$basearch_os<br>
> drwxr-xr-x. 3 root root     4096 Dec 18 20:30<br>
> repo_$RCE_SLES11-SP3-Pool_sle-11-i586<br>
> drwxr-xr-x. 3 root root     4096 Dec 18 19:30<br>
> repo_$RCE_SLES11-SP3-Pool_sle-11-x86_64<br>
> drwxr-xr-x. 3 root root     4096 Dec 18 21:00<br>
> repo_$RCE_SLES11-SP3-Updates_sle-11-i586<br>
> drwxr-xr-x. 3 root root     4096 Dec 18 20:00<br>
> repo_$RCE_SLES11-SP3-Updates_sle-11-x86_64<br>
> drwxr-xr-x. 3 root root     4096 Dec 18 21:30<br>
> repo_$RCE_SLES11-SP4-Pool_sle-11-x86_64<br>
> drwxr-xr-x. 3 root root     4096 Dec 18 22:00<br>
> repo_$RCE_SLES11-SP4-Updates_sle-11-x86_64<br>
><br>
> Notice the difference in the sub-directories?  The original server was SW<br>
> v2.5, the new server is SW v2.6.  I'm assuming that the spacewalk-repo-sync<br>
> command changed the way the sub-directories were created.  However these are<br>
> created shouldn't make any difference, because they all work, except the Red<br>
> Hat repo.<br>
><br>
><br>
> The path is correct.  The issue is that repomd.xml and additional content is<br>
> not created when the sub-directory<br>
> "content_dist_rhel_server_6_$releasever_$basearch_os" is created, and I have<br>
> no idea how the contents is created.<br>
><br>
><br>
> The error message saying to check the path is not correct. The path is<br>
> correct, its just the contents is not there.<br>
><br>
><br>
> Daryl<br>
><br>
><br>
> ________________________________<br>
> From: spacewalk-list-bounces@redhat.com> on behalf of Robert Paschedag><br>
> Sent: Friday, December 16, 2016 9:37 AM<br>
> To: spacewalk-list@redhat.com<br>
> Subject: Re: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
> It says... The path is wrong. So what did you put into the URL line?????<br>
><br>
><br>
><br>
> Am 16.12.2016 15:50 schrieb Daryl Rose>:<br>
><br>
> So, today I decided to create a new RHEL 6 channel and repo and then run the<br>
> "spacewalk-repo-sync" command and see if I can't get this repo to populate<br>
> with packages from Red Hat.  The same erroroccurred.<br>
><br>
><br>
> ERROR: Cannot retrieve repository metadata (repomd.xml) for repository:<br>
> content_dist_rhel_server_6_6Server_x86_64_os_. Please verify its path and<br>
> try again<br>
><br>
><br>
> This tells me that there isn't anything corrupt.  I'm really think that I<br>
> missed something in the configuration or setup of the new server.<br>
><br>
><br>
> When I setup the original server, v2.3, I'm thinking there were<br>
> someadditional steps that I had to do once I registered the server to Red<br>
> Hat.  I've been reviewing the installation instructions, but I don't see<br>
> anything extra that I missed. In the SW, v2.6, installation instructions,<br>
> all I see is to make sure that the server is properly registered to<br>
> theappropriate channel:<br>
><br>
><br>
><br>
> Red Hat Optional Server (Red Hat Enterprise Linux)<br>
><br>
> When using Red Hat Enterprise Linux 6 or 7, make sure you are subscribed to<br>
> the appropriate Red Hat Optional Server channel:<br>
><br>
> Red Hat Optional Server 6 , OR<br>
> Red Hat Optional Server 7<br>
><br>
><br>
> The server is properly registered and entitled.  I can run a yum repolist<br>
> and see the repository.  I can issue the subscription-manager command and<br>
> see that the server is subscribed and I can see what repos are enabled.  But<br>
> for some reason, that is not getting passed onto the Spacewalk repo.<br>
><br>
><br>
> I tried opening a ticket with Red Hat just so I could verify that everything<br>
> was registered correctly, but since I don't have a satellite subscription,<br>
> they closed the ticket without even answering my question.<br>
><br>
><br>
> I've run out of idea's.  If someone can give me more suggestions, I'm<br>
> willing to listen.<br>
><br>
><br>
> Thanks<br>
><br>
><br>
> Daryl<br>
><br>
><br>
><br>
> ________________________________<br>
> From: spacewalk-list-bounces@redhat.com> on behalf of Robert Paschedag><br>
> Sent: Friday, December 16, 2016 12:44 AM<br>
> To: spacewalk-list@redhat.com<br>
> Subject: Re: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
> Oh... Just saw that the checksum error occurs when run on a "client"..<br>
><br>
><br>
><br>
> Am 15.12.2016 22:48 schrieb Daryl Rose>:<br>
><br>
> One more thought....<br>
><br>
><br>
> What would happen if I were to delete the current RHEL channel and<br>
> repository and recreate them?  What will happen to all of the packages and<br>
> clients currently registered to the channel/repo?  I know that the packages<br>
> will become orphan, but can I put them back into the new repo, or do I just<br>
> have to remove them and re-download them from Red Hat?  How about the<br>
> registered clients?   Do I have to re-register them, or if I keep the same<br>
> activation key, the same channel/repo names, will they just pickup the<br>
> change?<br>
><br>
><br>
> Thanks<br>
><br>
><br>
> Daryl<br>
><br>
><br>
><br>
> ________________________________<br>
> From: spacewalk-list-bounces@redhat.com> on behalf of Daryl Rose ><br>
> Sent: Thursday, December 15, 2016 2:59 PM<br>
> To: spacewalk-list@redhat.com<br>
> Subject: Re: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
><br>
> Hello Chris,<br>
><br>
><br>
> Thank you for the following steps.  I think this resolved this immanent<br>
> issue, but the issue of not being able to sync from the parent Red Hat<br>
> repository is still an issue.<br>
><br>
><br>
> Do you know how the contents of ./cache/rhn/reposync are created?  As a work<br>
> around, I copied the contents ofreposyncfrom the original server to the new<br>
> server, and I'm able to sync from the Red Hat repository, but that is not a<br>
> long term solution.<br>
><br>
><br>
> I thought that perhaps I had found a solution.  Yum can access the<br>
> repository just fine so I copied the contents<br>
> from/var/cache/yum/x86_64/6Server/rhel-6-server-rpms to the reposync<br>
> directory.  It started off just fine, but eventually failing due to not<br>
> being able to find some keys.  Actually the keys were generated, but they<br>
> were of zero length and that won't work.<br>
><br>
><br>
> It seems to be obvious that there is something else wrong with my<br>
> installation, I just don't know what it is. If you, or anyone else have any<br>
> thoughts are suggestion, I'm willing to take a look and give it a try.<br>
><br>
><br>
> Thank you.<br>
><br>
><br>
> Daryl<br>
><br>
><br>
> ________________________________<br>
> From: spacewalk-list-bounces@redhat.com> on behalf of Snyder, Chris ><br>
> Sent: Wednesday, December 14, 2016 7:07 PM<br>
> To: spacewalk-list@redhat.com<br>
> Subject: Re: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
><br>
> The “metadata ….” Error indicates that your yum cache (provided by the<br>
> Spacewalk server) is out of with what is actually available through the<br>
> Spacewalk package database.  This can be because taskomatic isn’t running or<br>
> there’s a problem somewhere.  Check your logs under /var/log/rhn/ for any<br>
> issues with taskomatic or any other components.<br>
><br>
><br>
><br>
> However, I’ve run into this before and I do the following to get around it<br>
> (NOTE: your paths will probably be different than mine):<br>
><br>
><br>
><br>
> # Blow away all cached metadata<br>
><br>
> rm -fr /data/pkg/cache/rhn/repodata/<br>
><br>
><br>
><br>
> # restart spacewalk so empty repodata cache directory is recreated.<br>
><br>
> spacewalk-service stop<br>
><br>
> spacewalk-service start<br>
><br>
><br>
><br>
> # If not already, cache credentials forspacecmd (This assumes you have<br>
> configured ~/.spacecmd/config previously)<br>
><br>
> spacecmd softwarechannel_list<br>
><br>
><br>
><br>
> # Regenerate repo data forall channels<br>
><br>
> for i in `spacecmd softwarechannel_list`; do spacecmd<br>
> softwarechannel_regenerateyumcache $i; done<br>
><br>
><br>
><br>
> # Waited a few minutes fordata to regenerate<br>
><br>
><br>
><br>
> Once that’s done and the metadata caches are updated (you’ll see updated<br>
> directories under the cache dir and you should see info in the taskomatic<br>
> logs), go to each registered spacewalk client and run<br>
><br>
><br>
><br>
> yum clean all<br>
><br>
><br>
><br>
> If this doesn’t work, I would have to say that you’ve got something else<br>
> wrong somewhere else.<br>
><br>
><br>
><br>
> Good luck.<br>
><br>
><br>
><br>
> From: spacewalk-list-bounces@redhat.com<br>
> [<a href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a>]On Behalf Of Daryl Rose<br>
> Sent: Wednesday, December 14, 2016 5:58 PM<br>
> To: spacewalk-list@redhat.com<br>
> Subject: Re: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
><br>
><br>
> Hello everyone,<br>
><br>
><br>
><br>
> I have not received any replies from my previous posting, so I thought that<br>
> I would post an update hoping someone would see it and reply.<br>
><br>
><br>
><br>
> This error seems to go deeper than just syncing from Red Hat.  Server that<br>
> are currently registered to the Spacewalk server are not able to access the<br>
> RHEL repository on SW.  If issuing the "yum update" command, we receive the<br>
> error:<br>
><br>
><br>
><br>
> Error: failed to retrieve repodata/primary.xml.gz from rhel-6-server-rpms<br>
><br>
> error was [Errno -1] Metadata file does not match checksum<br>
><br>
><br>
><br>
> If I issue the "yum repolist" command, I only see "0" for packages.<br>
><br>
><br>
><br>
> So, this issue is larger that what I initially thought. Anyone have any<br>
> thoughts or idea's?<br>
><br>
><br>
><br>
> Daryl<br>
><br>
> ________________________________<br>
><br>
> From:spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com><br>
> on behalf of Daryl Rose <darylrose@outlook.com><br>
> Sent: Friday, December 9, 2016 2:56 PM<br>
> To: spacewalk-list@redhat.com<br>
> Subject: Re: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
><br>
><br>
> So,  I resurrected the old server from the grave and copied the contents of<br>
> "/var/cach/rhn/reposync/rhel-6-server-rpms" to<br>
> "/var/cach/rhn/reposync/content_dist_rhel_server_6_$releasever_$basearch_os"<br>
> and ran a sync.  The sync worked.<br>
><br>
><br>
><br>
> The sync worked, but it caused a new error.  A team member registered a Red<br>
> Hat server just after I made these changes.  The server registered, but<br>
> with the following error:<br>
><br>
><br>
><br>
> Bad id for repo: logstash 5.x, byte =   8<br>
><br>
><br>
><br>
> I'm guessing that something within the data that I copied over does not<br>
> align with the repository on SW?<br>
><br>
><br>
><br>
> Another thing that I noticed is that the directory structure in the old<br>
> reposync directory is different than the new server.  For example:<br>
><br>
><br>
><br>
> OLD:<br>
><br>
> /var/cache/rhn/reposync/centos-7-extra<br>
><br>
> /centos-7-server-rpms<br>
><br>
> /centos-7-updae<br>
><br>
> /centos_7_channel<br>
><br>
> /centos_7_plus<br>
><br>
><br>
><br>
> NEW:<br>
><br>
> /var/cache/rhn/reposync/centos_7_centosplus_x86_64_<br>
><br>
> /centos_7_extras_x86_64_<br>
><br>
> /centos_7_os_x86_64_<br>
><br>
> /centos_7_updates_x86_64_<br>
><br>
><br>
><br>
> Is that a SW v2.3 vs. v2.6 change?<br>
><br>
><br>
><br>
> Thanks<br>
><br>
><br>
><br>
> Daryl<br>
><br>
><br>
><br>
> ________________________________<br>
><br>
> From:spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com><br>
> on behalf of Daryl Rose <darylrose@outlook.com><br>
> Sent: Thursday, December 8, 2016 10:32 AM<br>
> To: spacewalk-list@redhat.com<br>
> Subject: Re: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
><br>
><br>
> More questions:<br>
><br>
><br>
><br>
> When I run "spacewalk-repo-sync --channel=rhel-6-server-rpms",  I get the<br>
> error:<br>
><br>
><br>
><br>
> ERROR: Cannot retrieve repository metadata (repomd.xml) for repository:<br>
> content_dist_rhel_server_6_$releasever_$basearch_os. Please verify its path<br>
> and try again<br>
><br>
><br>
> What creates the content in<br>
> "/var/cache/rhn/reposync/content_dist_rhel_server_6_$releasever_$basearch_os"?<br>
><br>
><br>
><br>
> All of the other channels that I created all have "cachecookie, packages,<br>
> primary.xml.gz, primary.xml.gz.sqlite, repomd.xml and updateinfo.xml.gz".<br>
><br>
><br>
><br>
> There must be a process that creates this content, but what, I'm not sure.<br>
> How can I manually create this content?<br>
><br>
><br>
><br>
> Thanks<br>
><br>
><br>
><br>
> Daryl<br>
><br>
><br>
><br>
> ________________________________<br>
><br>
> From:spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com><br>
> on behalf of Daryl Rose <darylrose@outlook.com><br>
> Sent: Thursday, December 8, 2016 9:26 AM<br>
> To: spacewalk-list@redhat.com<br>
> Subject: Re: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
><br>
><br>
> Quick update.<br>
><br>
><br>
><br>
> Poking around on Red Hat I found a doc that suggested that I look at the<br>
> name in /etc/sysconfig/network and ensure that the hostname is FQDN and then<br>
> run "spacewalk-hostname-rename".   Host name was not FQDN, so I renamed it,<br>
> but because I use a signed cert, will running spacewalk-hostname-rename<br>
> cause a problem with that cert?<br>
><br>
><br>
><br>
> Thanks<br>
><br>
><br>
><br>
> Daryl<br>
><br>
><br>
><br>
> ________________________________<br>
><br>
> From:spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com><br>
> on behalf of Daryl Rose <darylrose@outlook.com><br>
> Sent: Thursday, December 8, 2016 8:55 AM<br>
> To: spacewalk-list@redhat.com<br>
> Subject: Re: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
><br>
><br>
> Robert,<br>
><br>
><br>
><br>
> Yes, the server is registered and has an active subscription with Red Hat.<br>
> As a matter of fact, I just now re-registered to make sure that all is good.<br>
> I can see from the command line subscription manager that the server is<br>
> subscribed, and I confirmed that it is entitled.<br>
><br>
><br>
><br>
> I use a "signed" cert so I'm wondering if the signed cert has something to<br>
> do with this?  However, I found a troubleshooting document on Red Hat that<br>
> verifies that I am entitled and using the certificate provided by Red Hat to<br>
> communicate back to them.<br>
><br>
><br>
><br>
> Thank you<br>
><br>
><br>
><br>
> Daryl<br>
><br>
> ________________________________<br>
><br>
> From:spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com><br>
> on behalf of Robert Paschedag <robert.paschedag@web.de><br>
> Sent: Wednesday, December 7, 2016 11:48 PM<br>
> To: spacewalk-list@redhat.com<br>
> Subject: Re: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
><br>
><br>
> I think you should check your entitlements. But I also don't know, how you<br>
> could "manually" connect to the repo (with username/password or token inline<br>
> in URL).<br>
><br>
> Is your server listed as entitled within your RedHat account?<br>
><br>
> ________________________________<br>
><br>
> Von: Daryl Rose<br>
> Gesendet:‎06.‎12.‎2016 17:26<br>
> An: spacewalk-list@redhat.com<br>
> Betreff:Re: [Spacewalk-list] RHEL 6.x repository not syncing from<br>
> parentchannel<br>
><br>
> I decided to try the sync from the command line.  This time I received an<br>
> error:<br>
><br>
><br>
><br>
> ERROR: Cannot retrieve repository metadata (repomd.xml) for repository:<br>
> content_dist_rhel_server_6_6Server_x86_64_os_. Please verify its path and<br>
> try again<br>
><br>
><br>
><br>
> The path came out of the redhat.repo file that came from Red Hat when I<br>
> registered the server.  Its the same path that was used on the previous<br>
> server.<br>
><br>
><br>
><br>
> Any suggestions?<br>
><br>
><br>
><br>
> Thank you.<br>
><br>
><br>
><br>
> Daryl<br>
><br>
><br>
><br>
> ________________________________<br>
><br>
> From:spacewalk-list-bounces@redhat.com <spacewalk-list-bounces@redhat.com><br>
> on behalf of Daryl Rose <darylrose@outlook.com><br>
> Sent: Monday, December 5, 2016 3:00 PM<br>
> To: spacewalk-list@redhat.com<br>
> Subject: [Spacewalk-list] RHEL 6.x repository not syncing from parent<br>
> channel<br>
><br>
><br>
><br>
> I just realized that the last Red Hat errata for RHEL 6.x is from August.  I<br>
> looked at the sync logs and it doesn't appear that anything is syncing at<br>
> all from the RHEL channel.<br>
><br>
><br>
><br>
> I just recently migrated to a physical server.  I successfully registered<br>
> the server and attached an entitlement to the server.  If I run "yum update"<br>
> on the server, it lists latest updates from the RHEL channel.<br>
><br>
><br>
><br>
> This is what I see in the reposync log:<br>
><br>
><br>
><br>
> 2016/12/05 14:49:42 -05:00 Command: ['/usr/bin/spacewalk-repo-sync',<br>
> '--channel', 'rhel-6-server-rpms', '--type', 'yum']<br>
><br>
> 2016/12/05 14:49:42 -05:00 Sync of channel started.<br>
><br>
> 2016/12/05 14:49:42 -05:00 Repo URL: https:<br>
><br>
> 2016/12/05 14:49:42 -05:00 Sync of channel completed in 0:00:00.<br>
><br>
><br>
><br>
> If I haven't received any syncs since August, then this broke long before I<br>
> migrated to the physical server.<br>
><br>
><br>
><br>
> Any thoughts?<br>
><br>
><br>
><br>
> Daryl<br>
><br>
><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Spacewalk-list mailing list<br>
> Spacewalk-list@redhat.com<br>
> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
Spacewalk-list@redhat.com<br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></div>
</span></font></div>
</div>
</body>
</html>