Jolynn Schmidt wrote:
> Hello,
>
> I am running koan-1.2.5-1.el5 and cobbler-1.2.5-1.el5.
>
> I created a new cobbler server and used cobbler replicate to populate
> it. I replicated from another server running cobbler-1.2.5-1.el5.
> When I try to run koan to rebuild a box I keep getting a connection
> times out error, but when I run a wget against the same URL I have no
> issue with the download.
FYI: The latest of the 1.2.X series for Cobbler is 1.2.9. I can't
really support older fix back releases. 1.4 is coming out Friday.
That all being said, I've noticed a leading space in your server address
below, so it looks like the "server:" parameter in /etc/cobbler/settings
is wrong.
--Michael
>
> koan -s 172.32.1.10 -p centos5.2-server -r
> - reading URL: http:// 172.32.1.10/cblr/svc/op/ks/profile/centos5.2-server
> downloading initrd initrd.img to /boot/initrd.img
> url=http:// 172.32.1.10/cobbler/images/CentOS5.2os-x86_64/initrd.img
> - reading URL: http://
> 172.32.1.10/cobbler/images/CentOS5.2os-x86_64/initrd.img
> Traceback (most recent call last):
> File "/usr/lib/python2.4/site-packages/koan/app.py", line 840, in
> get_distro_files
> utils.urlgrab(initrd,initrd_save)
> File "/usr/lib/python2.4/site-packages/koan/utils.py", line 144, in
> urlgrab
> data = urlread(url)
> File "/usr/lib/python2.4/site-packages/koan/utils.py", line 126, in
> urlread
> raise InfoException, "Couldn't download: %s" % url
> InfoException: "Couldn't download: http://
> 172.32.1.10/cobbler/images/CentOS5.2os-x86_64/initrd.img"
> error downloading files
>
> but this works:
>
> wget http:// 172.32.1.10/cobbler/images/CentOS5.2os-x86_64/initrd.img
> --10:24:52-- http://
> 172.32.1.10/cobbler/images/CentOS5.2os-x86_64/initrd.img
> Connecting to 172.32.1.10:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 5923367 (5.6M) [application/octet-stream]
> Saving to: `initrd.img.1'
>
> 100%[=======================================>] 5,923,367 --.-K/s
> in 0.05s
>
> 10:24:53 (113 MB/s) - `initrd.img.1' saved [5923367/5923367]
>
>
>
> I grabbed the python code and made a little urlread and urlgrab and
> have the same issue downloading. Error; connection timed out. The
> host running koan and the cobbler server are on the same subnet.
>
> I am not sure what is up. Thoughts?
>
> #!/usr/bin/python
> import urllib2, sys
>
> def urlread(url):
> if url.startswith("http") or url.startswith("ftp"):
> try:
> fd = urllib2.urlopen(url)
> data = fd.read()
> fd.close()
> return data
> except:
> print "Couldn't download: %s" % url
> print "error", sys.exc_info()[0]
> raise
>
> def urlgrab(url,saveto):
> """
> like urlread, but saves contents to disk.
> see comments for urlread as to why it's this way.
> """
> data = urlread(url)
> fd = open(saveto, "w+")
> fd.write(data)
> fd.close()
>
> urlgrab("http://172.32.1.10/cobbler/images/CentOS5.2os-x86_64/initrd.img","gotme")
> #urlread("http://172.32.1.10/cobbler/images/CentOS5.2os-x86_64/initrd.img")
>
> Jolynn Schmidt
>
>
>
> _ ________________________________ _
> This e-mail and its attachments are intended only for the individual
> or entity to whom it is addressed and may contain information that is
> confidential, privileged, inside information, or subject to other
> restrictions on use or disclosure. Any unauthorized use, dissemination
> or copying of this transmission or the information in it is prohibited
> and may be unlawful. If you have received this transmission in error,
> please notify the sender immediately by return e-mail, and permanently
> delete or destroy this e-mail, any attachments, and all copies
> (digital or paper). Unless expressly stated in this e-mail, nothing in
> this message should be construed as a digital or electronic signature.
> ------------------------------------------------------------------------
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler