I solved my problem - at least partially.
I was downloading manually/editing file disto_signatures.json in
/etc/cobbler and it had no effect to web gui nor to CLI. It turns out
(looking into settings.py) that I need to fiddle with file of the same
name in /var/lib/cobbler.
Why do we have this file in both places? Somewhat confusing...
I am still struggling to get proxy setting to work. I set as the shell
variable and can run simple python code using urllib2 that would connect
to
and fetch the file - no problem. However, at the same
prompt running 'cobbler signature update' fails with the same error.
Thanks!
Leon
On 07/27/2013 12:51 PM, James Cammarata wrote:
Yes it should honor the http_proxy environment variable, as it's
using
urllib. You can always grab it manually and copy it in place:
http://www.cobblerd.org/signatures/latest.json
On Sat, Jul 27, 2013 at 10:21 AM, Leonid Flaks <flaks(a)bnl.gov
<mailto:flaks@bnl.gov>> wrote:
That is a great catch. It is behind a firewall (actually, more then
one!).
Should it honour http_proxy shell variable setting? I tried to set
it up, so that for example, "wget
www.cnn.com <
http://www.cnn.com>"
works, but I still get the same error.
On the other hand, why is it not using the local updated signature
file that I updated?
Thanks again,
Leon
On 07/26/2013 08:12 PM, James Cammarata wrote:
>
> Can that system talk to the internet? The file is hosted on
>
cobblerd.org <
http://cobblerd.org>, and based that error your
> server can't reach it.
>
> On Jul 26, 2013 6:32 PM, "Leonid Flaks" <flaks(a)bnl.gov
> <mailto:flaks@bnl.gov>> wrote:
>
> Thanks !
>
> I just tried, got this:
>
> [root@cobbler_server ~]# cobbler signature update
> Traceback (most recent call last):
> File "/usr/lib/python2.6/site-packages/cobbler/cli.py", line
> 177, in opt
> data = getattr(options, k)
> AttributeError: Values instance has no attribute 'name'
> task started: 2013-07-26_192406_sigupdate
> task started (id=Updating Signatures, time=Fri Jul 26 19:24:06
> 2013)
> Exception occured: <class 'urllib2.URLError'>
> Exception value: <urlopen error [Errno 111] Connection refused>
> Exception Info:
> File "/usr/lib/python2.6/site-packages/cobbler/api.py", line
> 589, in signature_update
> response = urllib2.urlopen(self.settings().signature_url)
> File "/usr/lib64/python2.6/urllib2.py", line 126, in urlopen
> return _opener.open(url, data, timeout)
> File "/usr/lib64/python2.6/urllib2.py", line 391, in open
> response = self._open(req, data)
> File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
> '_open', req)
> File "/usr/lib64/python2.6/urllib2.py", line 369, in
> _call_chain
> result = func(*args)
> File "/usr/lib64/python2.6/urllib2.py", line 1190, in http_open
> return self.do_open(httplib.HTTPConnection, req)
> File "/usr/lib64/python2.6/urllib2.py", line 1165, in do_open
> raise URLError(err)
>
> !!! TASK FAILED !!!
>
>
> Other cobbler CLI commands work just fine.
> Am I doing something wrong here?
>
> Thanks,
>
> Leon
>
>
> On 07/26/2013 04:55 PM, James Cammarata wrote:
>> If you update the distro signatures file (via "cobbler
>> signature update") you should have it.
>>
>> On Fri, Jul 26, 2013 at 2:50 PM, Leonid Flaks <flaks(a)bnl.gov
>> <mailto:flaks@bnl.gov>> wrote:
>>
>> Hi!
>> I am running cobbler 2.4.0-1 on Scientific Linux 6
>> installed from EPEL, upgraded from the 2.2.x
>> I want to have fedora 19 listed in the web interface
>> under OS version. I downloaded new distro_signatures.json
>> file from github and put it in /etc/cobbler directory,
>> restarted both apache and cobbler daemons, but still can
>> not see it the web interface. I understand that the
>> 'clean' solution would be to build the rpm from the
>> source. I am wondering if there is another file that I
>> need to download to match the new signatures?
>>
>> Thanks!
>>
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org <mailto:cobbler@lists.fedorahosted.org>
https://lists.fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler