On Fri, Mar 8, 2013 at 12:14 PM, Bret Wortman <span dir="ltr">&lt;<a href="mailto:bret.wortman@damascusgrp.com" target="_blank">bret.wortman@damascusgrp.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div dir="ltr"><div><br></div><div><b>Bret Wortman</b></div><div><a href="http://damascusgrp.com/" target="_blank"><img width="200" height="52"></a><br>
</div><div><a href="http://bretwortman.com/" target="_blank">http://damascusgrp.com/</a><br></div><div><a href="http://twitter.com/BretWortman" target="_blank">http://twitter.com/BretWortman</a><span style="font-family:arial,sans-serif;font-size:13px">I&#39;ve got some systems that aren&#39;t connected to the internet, so i have to mirror the repositories I need to them and then import them into Cobbler for use. This is usually problematic, but has gotten especially difficult with F18.</span></div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">My Cobbler instance that <i>can</i> see the internet imported from <a href="http://mirrors.fedora.org/" target="_blank">mirrors.fedora.org</a> just fine, so I mirrored that repo using lftp and brought it over to my other system. So far so good. I made those same directories available via http as server/repo/Fedora/$basearch/os/</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">When I try to import these, though, I get the following behaviors:</div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="courier new, monospace"># cobbler import --name=F18 --path=<a href="http://server/repo/Fedora/18/i386/os" target="_blank">http://server/repo/Fedora/18/i386/os</a> --available-as=<a href="http://server/repo/Fedora/18/i386/os" target="_blank">http://server/repo/Fedora/18/i386/os</a> --arch=i386</font></div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Bombs almost immediately; the log file just says &quot;unsupported protocol&quot;.</div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="courier new, monospace"># cobbler import --name=F18 --path=/path/to/Fedora/18/i386/os --available-as=<a href="http://server/repo/Fedora/18/i386/os" target="_blank">http://server/repo/Fedora/18/i386/os</a> --arch=i386</font></div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">This runs for quite a while, but it rsyncs, which creates two copies of the data -- I thought the --available-as flag was supposed to avoid this; I really don&#39;t need duplicate data on my server. Eventually, though, this too errors out and the log only says:</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="courier new, monospace">an exception occurred while running the import manager</font></div>

<div style="font-family:arial,sans-serif;font-size:13px"><font face="courier new, monospace">error wsa: [Errno 9] Bad file descriptor</font></div><div style="font-family:arial,sans-serif;font-size:13px"><font face="courier new, monospace">No  import managers found a valid signature at the location specified.</font></div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">This is on Cobbler 2.2.3 from the RedHat repos.</div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">Any ideas?</div></div></div>
</div>
</blockquote></div><br><div>The --path must either be local, or rsync. I&#39;d recommend using rsync to avoid copying the data as you noted.</div>