<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">OK<br>
<br>
I think I may have found the issue with RHEL 5 Workstation sync failing on distribution files<br>
<br>
I compared my RHEL 5 Workstation repo (which was failing) against a RHEL 5 Server repo (which was working). Stepping through syncs on both sides, on RHEL 5 Workstation sync, the following errors were recorded in /var/log/pulp/nectar.log (in addition to the
 original error in ~/.pulp/admin.log recordered earlier)<br>
<br>
...<br>
2014-03-13 08:29:49,355 nectar.downloaders.threaded:ERROR: Download of https://cdn.redhat.com/content/dist/rhel/workstation/5/5Client/x86_64/os/images/pxeboot/initrd.img failed with code 404: Not Found<br>
2014-03-13 08:29:49,392 nectar.downloaders.threaded:ERROR: Download of https://cdn.redhat.com/content/dist/rhel/workstation/5/5Client/x86_64/os/images/boot.iso failed with code 404: Not Found<br>
2014-03-13 08:29:49,476 nectar.downloaders.threaded:ERROR: Download of https://cdn.redhat.com/content/dist/rhel/workstation/5/5Client/x86_64/os/images/pxeboot/vmlinuz failed with code 404: Not Found<br>
2014-03-13 08:29:49,620 nectar.downloaders.threaded:ERROR: Download of https://cdn.redhat.com/content/dist/rhel/workstation/5/5Client/x86_64/os/images/xen/vmlinuz failed with code 404: Not Found<br>
2014-03-13 08:29:49,628 nectar.downloaders.threaded:ERROR: Download of https://cdn.redhat.com/content/dist/rhel/workstation/5/5Client/x86_64/os/images/minstg2.img failed with code 404: Not Found<br>
2014-03-13 08:29:49,794 nectar.downloaders.threaded:ERROR: Download of https://cdn.redhat.com/content/dist/rhel/workstation/5/5Client/x86_64/os/images/diskboot.img failed with code 404: Not Found<br>
2014-03-13 08:29:49,876 nectar.downloaders.threaded:ERROR: Download of https://cdn.redhat.com/content/dist/rhel/workstation/5/5Client/x86_64/os/images/xen/initrd.img failed with code 404: Not Found<br>
2014-03-13 08:29:49,940 nectar.downloaders.threaded:ERROR: Download of https://cdn.redhat.com/content/dist/rhel/workstation/5/5Client/x86_64/os/images/stage2.img failed with code 404: Not Found<br>
...<br>
<br>
These errors were not duplicated when I do the RHEL 5 Server sync. <br>
<br>
I compared both the contents of the respective treeinfos (which were similar) but the images directory for RHEL 5 Workstation is empty even the the treeinfo says files are there. I believe this is where the sync is failing.
<br>
<br>
To get around this, I am just adding --skip=distribution to my RHEL 5 Workstation repo and everything flows nicely<br>
<br>
Thanks<br>
Harold<br>
<br>
#####<br>
<br>
I have added snippets of both the treeinfos and the contents of the images directory on both repos<br>
<br>
#<br>
### RHEL 5 Workstation - treeinfo<br>
#<br>
# curl -v https://cdn.redhat.com/content/dist/rhel/workstation/5/5Client/x86_64/os/treeinfo --cacert <CACERT> --cert <CERT> --key <KEY><br>
... <br>
[images-xen]<br>
initrd = images/xen/initrd.img<br>
kernel = images/xen/vmlinuz<br>
<br>
[stage2]<br>
instimage = images/minstg2.img<br>
mainimage = images/stage2.img<br>
<br>
[images-x86_64]<br>
client_productid.gz = Client/repodata/productid.gz<br>
kernel = images/pxeboot/vmlinuz<br>
client_comps-rhel5-client-core.xml = Client/repodata/bf6f9230de34cf661d5b32b7b400aa27a44ecc4c-comps-rhel5-client-core.xml<br>
client_filelists.xml.gz = Client/repodata/6b48c1588e50490c95581da6a00aacac1fcc1947-filelists.xml.gz<br>
client_primary.xml.gz = Client/repodata/83a2daa416ff1b576656fcde9942a878feceb8ae-primary.xml.gz<br>
client_other.xml.gz = Client/repodata/fe53175fa95170f8a5f61c7da1eecd84855459d4-other.xml.gz<br>
boot.iso = images/boot.iso<br>
initrd = images/pxeboot/initrd.img<br>
client_filelists.sqlite.bz2 = Client/repodata/03cad7c9ab0d0a03edecdc277f6c4a2256c438c5-filelists.sqlite.bz2<br>
client_primary.sqlite.bz2 = Client/repodata/973aca31d29bf53d5f8991de9928d0365d7177b8-primary.sqlite.bz2<br>
client_comps-rhel5-client-core.xml.gz = Client/repodata/f3313764d343443ee3a667cc8c1ad47b6e4e96a5-comps-rhel5-client-core.xml.gz<br>
client_repomd = Client/repodata/repomd.xml<br>
client_other.sqlite.bz2 = Client/repodata/f9f8226b553bdff322a44364b5cc2434bca2ca1b-other.sqlite.bz2<br>
diskboot.img = images/diskboot.img<br>
...<br>
<br>
#<br>
### RHEL 5 Server - treeinfo<br>
#<br>
# curl -v https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/treeinfo -l --cacert <CACERT> --cert <CERT> --key <KEY><br>
...<br>
[images-x86_64]<br>
kernel = images/pxeboot/vmlinuz<br>
server_filelists.xml.gz = Server/repodata/c39cb72d4c91f421065e7148981f8e32bcdae38f-filelists.xml.gz<br>
server_primary.xml.gz = Server/repodata/a50108b5e810bc84474d5a423a096d536c8ecd9c-primary.xml.gz<br>
server_other.sqlite.bz2 = Server/repodata/c534d188e424cae8a3c53159df297046b2b3d0a9-other.sqlite.bz2<br>
server_productid.gz = Server/repodata/productid.gz<br>
server_comps-rhel5-server-core.xml = Server/repodata/c4e4a37f4f4a2c78e2cf2fd1b8e2feb79e46bdc0-comps-rhel5-server-core.xml<br>
server_updateinfo.xml.gz = Server/repodata/329cf55bc21b6c16fcc54fbcb0edd91bcf27d3bd-updateinfo.xml.gz<br>
server_primary.sqlite.bz2 = Server/repodata/9fe5f344917a5b58321f4294e51f4e53adb8d367-primary.sqlite.bz2<br>
server_comps-rhel5-server-core.xml.gz = Server/repodata/8badf71c14fd63da2ab307f1bc51e50caa83a2a4-comps-rhel5-server-core.xml.gz<br>
boot.iso = images/boot.iso<br>
initrd = images/pxeboot/initrd.img<br>
server_repomd = Server/repodata/repomd.xml<br>
diskboot.img = images/diskboot.img<br>
server_filelists.sqlite.bz2 = Server/repodata/9d18189201e2869fedccd4f15c27a92607efcd3a-filelists.sqlite.bz2<br>
server_other.xml.gz = Server/repodata/080fca7752409b03114f2efa43b6e27c14c8d1c5-other.xml.gz<br>
<br>
[images-xen]<br>
initrd = images/xen/initrd.img<br>
kernel = images/xen/vmlinuz<br>
<br>
[stage2]<br>
instimage = images/minstg2.img<br>
mainimage = images/stage2.img<br>
...<br>
<br>
<br>
#<br>
### RHEL 5 Workstation - list of the images directory<br>
#<br>
# curl -v https://cdn.redhat.com/content/dist/rhel/workstation/5/5Client/x86_64/os/images -l --cacert <CACERT> --cert <CERT> --key <KEY><br>
...<br>
<H1>Index of /98675/rcm/content/dist/rhel/workstation/5/5Client/x86_64/os/images</H1><br>
<PRE>   <A HREF="?N=D">Name</A>                              <A HREF="?M=A">Last modified</A>        <A HREF="?S=A">Size</A> 
<br>
<HR><br>
<IMG SRC="/icons/dir.gif" ALT="[DIR]"> <A HREF="images/..">Parent Directory</A>                  11-Mar-2014 16:58     1k 
<br>
</PRE><HR><br>
</BODY></HTML><br>
...<br>
<br>
#<br>
### RHEL 5 Server - list of the images directory<br>
#<br>
# curl -v https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/os/images -l --cacert <CACERT> --cert <CERT> --key <KEY><br>
...<br>
<H1>Index of /98675/rcm/content/dist/rhel/server/5/5Server/x86_64/os/images</H1><br>
<PRE>   <A HREF="?N=D">Name</A>                              <A HREF="?M=A">Last modified</A>        <A HREF="?S=A">Size</A> 
<br>
<HR><br>
<IMG SRC="/icons/dir.gif" ALT="[DIR]"> <A HREF="images/..">Parent Directory</A>                  12-Mar-2014 21:53     1k 
<br>
<IMG SRC="/icons/generic.gif" ALT="[FILE]"> <A HREF="images/README">README</A>                            10-Sep-2013 19:42     1k 
<br>
<IMG SRC="/icons/generic.gif" ALT="[FILE]"> <A HREF="images/boot.iso">boot.iso</A>                          10-Sep-2013 19:43  14.6M 
<br>
<IMG SRC="/icons/generic.gif" ALT="[FILE]"> <A HREF="images/diskboot.img">diskboot.img</A>                      10-Sep-2013 19:43  15.0M 
<br>
<IMG SRC="/icons/generic.gif" ALT="[FILE]"> <A HREF="images/minstg2.img">minstg2.img</A>                       10-Sep-2013 19:44  42.5M 
<br>
<IMG SRC="/icons/dir.gif" ALT="[DIR]"> <A HREF="images/pxeboot/">pxeboot/</A>                          19-Jan-2014 20:52     1k 
<br>
<IMG SRC="/icons/generic.gif" ALT="[FILE]"> <A HREF="images/stage2.img">stage2.img</A>                        10-Sep-2013 19:45  90.0M 
<br>
<IMG SRC="/icons/dir.gif" ALT="[DIR]"> <A HREF="images/xen/">xen/</A>                              19-Jan-2014 20:34     1k 
<br>
</PRE><HR><br>
</BODY></HTML><br>
...<br>
<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF645118"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Ditchfield, Harold (Calgary)<br>
<b>Sent:</b> Monday, March 10, 2014 5:52 AM<br>
<b>To:</b> Christina Plummer<br>
<b>Cc:</b> pulp-list@redhat.com<br>
<b>Subject:</b> RE: [Pulp-list] Key-error on repo sync of distribution files of RHEL 5 Workstation/Client<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hey Christina<br>
<br>
Unfortunately I haven't found the solution yet .. I hope to be able to devote some time this week to step through the download process so I can identify what the issue is ... I also have an alternate server (RedHat 6) to test on as well. I'll let the list know
 how it works out<br>
<br>
Thanks<br>
Harold<br>
<br>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<hr tabindex="-1">
<div id="divRpF556743" style="direction:ltr"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Christina Plummer [cplummer@gmail.com]<br>
<b>Sent:</b> Friday, March 07, 2014 1:29 PM<br>
<b>To:</b> Ditchfield, Harold (Calgary)<br>
<b>Cc:</b> pulp-list@redhat.com<br>
<b>Subject:</b> Re: [Pulp-list] Key-error on repo sync of distribution files of RHEL 5 Workstation/Client<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div>
<div>Hi Harold,<br>
<br>
</div>
Did you ever find a solution to this one?  I am in the process of migrating to a new Pulp 2.3.1 server and have been running into the same issue with the RHEL5 repos.  I am getting the error on the Distributions even when I use my old Pulp 2.1.3 server as the
 feed instead of the Red Hat CDN.<br>
<br>
</div>
Thanks,<br>
Christina<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Jan 14, 2014 at 3:31 PM, Ditchfield, Harold (Calgary)
<span dir="ltr"><<a href="mailto:Harold.Ditchfield@nexencnoocltd.com" target="_blank">Harold.Ditchfield@nexencnoocltd.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div lang="EN-US">
<div>
<p class="MsoNormal">Has anybody seen the following and can point me in the right direction ..<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Receive the following error when I try to sync the RHEL 5 Workstation .. packages (repository content downloads fine) but not the distribution files.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">####### pulp-admin rpm repo sync run --repo-id=rhel-5-workstation<u></u><u></u></p>
<p class="MsoNormal">...<u></u><u></u></p>
<p class="MsoNormal">Downloading distribution files...<u></u><u></u></p>
<p class="MsoNormal">[===============================================   ] 94%<u></u><u></u></p>
<p class="MsoNormal">Distributions: 17/18 items<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Errors encountered during distribution sync:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">An unexpected error has occurred. More information can be found in the client<u></u><u></u></p>
<p class="MsoNormal">log file ~/.pulp/admin.log.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">###### This is the corresponding error in ~/.pulp/admin.log<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">2014-01-13 13:32:18,720 - ERROR - Client-side exception occurred<u></u><u></u></p>
<p class="MsoNormal">Traceback (most recent call last):<u></u><u></u></p>
<p class="MsoNormal">  File "/usr/lib/python2.6/site-packages/pulp/client/extensions/core.py", line 478, in run<u></u><u></u></p>
<p class="MsoNormal">    exit_code = Cli.run(self, args)<u></u><u></u></p>
<p class="MsoNormal">  File "/usr/lib/python2.6/site-packages/okaara/cli.py", line 974, in run<u></u><u></u></p>
<p class="MsoNormal">    exit_code = command_or_section.execute(self.prompt, remaining_args)<u></u><u></u></p>
<p class="MsoNormal">  File "/usr/lib/python2.6/site-packages/pulp/client/extensions/extensions.py", line 224, in execute<u></u><u></u></p>
<p class="MsoNormal">    return self.method(*arg_list, **clean_kwargs)<u></u><u></u></p>
<p class="MsoNormal">  File "/usr/lib/python2.6/site-packages/pulp/client/commands/repo/sync_publish.py", line 101, in run<u></u><u></u></p>
<p class="MsoNormal">    status.display_group_status(self.context, self.renderer, task_group_id)<u></u><u></u></p>
<p class="MsoNormal">  File "/usr/lib/python2.6/site-packages/pulp/client/commands/repo/status/status.py", line 64, in display_group_status<u></u><u></u></p>
<p class="MsoNormal">    _display_status(context, renderer, task_list)<u></u><u></u></p>
<p class="MsoNormal">  File "/usr/lib/python2.6/site-packages/pulp/client/commands/repo/status/status.py", line 96, in _display_status<u></u><u></u></p>
<p class="MsoNormal">    _display_task_status(context, renderer, task.task_id, quiet_waiting=quiet_waiting)<u></u><u></u></p>
<p class="MsoNormal">  File "/usr/lib/python2.6/site-packages/pulp/client/commands/repo/status/status.py", line 123, in _display_task_status<u></u><u></u></p>
<p class="MsoNormal">    renderer.display_report(response.response_body.progress)<u></u><u></u></p>
<p class="MsoNormal">  File "/usr/lib/python2.6/site-packages/pulp_rpm/extension/admin/status.py", line 77, in display_report<u></u><u></u></p>
<p class="MsoNormal">    self.render_distribution_sync_step(progress_report)<u></u><u></u></p>
<p class="MsoNormal">  File "/usr/lib/python2.6/site-packages/pulp_rpm/extension/admin/status.py", line 160, in render_distribution_sync_step<u></u><u></u></p>
<p class="MsoNormal">   'message' : error[1]['error_message'],<u></u><u></u></p>
<p class="MsoNormal">KeyError: 'error_message'<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">###### Pulp and OS version<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Net new install of pulp-server-2.3.1-1.el6.noarch running on Oracle Linux 6.4 (so far everything else works including RHEL 5 Server repos)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">###### pulp repo config<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Id:                  rhel-5-workstation<u></u><u></u></p>
<p class="MsoNormal">Display Name:        rhel-5-workstation<u></u><u></u></p>
<p class="MsoNormal">Description:         None<u></u><u></u></p>
<p class="MsoNormal">Content Unit Counts: <u></u><u></u></p>
<p class="MsoNormal">  Erratum:                1404<u></u><u></u></p>
<p class="MsoNormal">  Package Group:          27<u></u><u></u></p>
<p class="MsoNormal">  Rpm:                    6550<u></u><u></u></p>
<p class="MsoNormal">  Yum Repo Metadata File: 1<u></u><u></u></p>
<p class="MsoNormal">Notes:               <u></u><u></u></p>
<p class="MsoNormal">Importers:           <u></u><u></u></p>
<p class="MsoNormal">  Config:           <u></u><u></u></p>
<p class="MsoNormal">    Feed:            <a href="https://cdn.redhat.com/content/dist/rhel/workstation/5/5Client/x86_64/os" target="_blank">
https://cdn.redhat.com/content/dist/rhel/workstation/5/5Client/x86_64/os</a><u></u><u></u></p>
<p class="MsoNormal">    SSL CA Cert: <INSERT CERT HERE><u></u><u></u></p>
<p class="MsoNormal">  Id:               yum_importer<u></u><u></u></p>
<p class="MsoNormal">  Importer Type Id: yum_importer<u></u><u></u></p>
<p class="MsoNormal">  Last Sync:        2014-01-14T10:05:18-07:00<u></u><u></u></p>
<p class="MsoNormal">  Repo Id:          rhel-5-workstation<u></u><u></u></p>
<p class="MsoNormal">  Scheduled Syncs:  <u></u><u></u></p>
<p class="MsoNormal">Distributors:        <u></u><u></u></p>
<p class="MsoNormal">  Auto Publish:        True<u></u><u></u></p>
<p class="MsoNormal">  Config:              <u></u><u></u></p>
<p class="MsoNormal">    Checksum Type: sha1<u></u><u></u></p>
<p class="MsoNormal">    Http:          False<u></u><u></u></p>
<p class="MsoNormal">    Https:         True<u></u><u></u></p>
<p class="MsoNormal">    Relative URL:  /content/dist/rhel/workstation/5/5Workstation/x86_64/os<u></u><u></u></p>
<p class="MsoNormal">  Distributor Type Id: yum_distributor<u></u><u></u></p>
<p class="MsoNormal">  Id:                  yum_distributor<u></u><u></u></p>
<p class="MsoNormal">  Last Publish:        2014-01-14T10:06:24-07:00<u></u><u></u></p>
<p class="MsoNormal">  Repo Id:             rhel-5-workstation<u></u><u></u></p>
<p class="MsoNormal">  Scheduled Publishes: <u></u><u></u></p>
<p class="MsoNormal">  Auto Publish:        False<u></u><u></u></p>
<p class="MsoNormal">  Config:              <u></u><u></u></p>
<p class="MsoNormal">    Http:  False<u></u><u></u></p>
<p class="MsoNormal">    Https: True<u></u><u></u></p>
<p class="MsoNormal">  Distributor Type Id: export_distributor<u></u><u></u></p>
<p class="MsoNormal">  Id:                  export_distributor<u></u><u></u></p>
<p class="MsoNormal">  Last Publish:        None<u></u><u></u></p>
<p class="MsoNormal">  Repo Id:             rhel-5-workstation<u></u><u></u></p>
<p class="MsoNormal">  Scheduled Publishes: <u></u><u></u></p>
</div>
<p>************************************************************ <br>
IMPORTANT NOTICE: This message is intended for the individual or entity to which it is addressed and may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are
 hereby notified that copying, forwarding or other dissemination or distribution of this message is prohibited and that taking any action in reliance on the content of this message is to be avoided. Should you receive this e-mail in error, please notify the
 sender immediately via e-mail or call <a href="tel:%28403%29%20699-4000" value="+14036994000" target="_blank">
(403) 699-4000</a> and delete this message from your system. Thank you. <br>
************************************************************<br>
</p>
</div>
<br>
_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<P>************************************************************ <br>
IMPORTANT NOTICE: This message is intended for the individual or entity to which it is addressed
and may contain information that is privileged, confidential, and/or exempt from disclosure under 
applicable law. If you are not the intended recipient, you are hereby notified that copying, 
forwarding or other dissemination or distribution of this message is prohibited and that taking 
any action in reliance on the content of this message is to be avoided. Should you receive this 
e-mail in error, please notify the sender immediately via e-mail or call (403) 699-4000 
and delete this message from your system. Thank you. <br>
************************************************************<br/></P></body>
</html>