Thanks for looking into this, Michael and Vincent.
Alas no solution yet.
More than 900 seconds have passed by now, but still no hosts seen with the
script:
*[root@geppetto ansible]# cobbler system list metop-20.oma.be
metop-28.oma.be zotac-09 zotac-24.oma.be zotac-29
zotac-36[root@geppetto ansible]# ./cobbler.py --list{}[root@geppetto
ansible]# ./cobbler.py{}[root@geppetto ansible]# datewo jan 22 23:04:40 CET
2014[root@geppetto ansible]# cat cobbler.ini # Ansible Cobbler external
inventory script settings#[cobbler]host =
http://geppetto.oma.be/cobbler_api# API calls to Cobbler can be slow. For
this reason, we cache the results of an API# call. Set this to the path you
want cache files to be written to. Two files# will be written to this
directory:# - ansible-cobbler.cache# - ansible-cobbler.indexcache_path
= /tmp# The number of seconds a cache file is considered valid. After this
many# seconds, a new API call will be made, and the cache file will be
updated.cache_max_age = 900[root@geppetto ansible]#*I forgot to mention, on
suggestion of Benno, I did some tests to get that page and get strangely:
proxy-errors:
*[root@geppetto ansible]# wget http://geppetto.oma.be/cobbler_api
--2014-01-22 23:13:40-- http://geppetto.oma.be/cobbler_apiResolving
geppetto.oma.be... 192.168.16.49Connecting to
geppetto.oma.be|192.168.16.49|:80... connected.HTTP request sent, awaiting
response... 502 Proxy Error2014-01-22 23:13:40 ERROR 502: Proxy
Error.[root@geppetto ansible]# [root@geppetto ansible]# wget
http://geppetto.oma.be/cobbler_web --2014-01-22 23:15:54--
http://geppetto.oma.be/cobbler_webResolving geppetto.oma.be...
192.168.16.49Connecting to geppetto.oma.be|192.168.16.49|:80...
connected.HTTP request sent, awaiting response... 302 FoundLocation:
https://geppetto.oma.be/cobbler_web [following]--2014-01-22 23:15:54--
https://geppetto.oma.be/cobbler_webConnecting to
geppetto.oma.be|192.168.16.49|:443... connected.ERROR: cannot verify
geppetto.oma.be's certificate, issued by
`/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=geppetto.oma.be/emailAddress=root_at_geppetto.oma.be':
Self-signed certificate encountered.To connect to geppetto.oma.be
insecurely, use `--no-check-certificate'.[root@geppetto ansible]# wget
http://geppetto.oma.be/cobbler_web --no-check-certificate--2014-01-22
23:16:21-- http://geppetto.oma.be/cobbler_webResolving geppetto.oma.be...
192.168.16.49Connecting to geppetto.oma.be|192.168.16.49|:80...
connected.HTTP request sent, awaiting response... 302 FoundLocation:
https://geppetto.oma.be/cobbler_web [following]--2014-01-22 23:16:21--
https://geppetto.oma.be/cobbler_webConnecting to
geppetto.oma.be|192.168.16.49|:443... connected.WARNING: cannot verify
geppetto.oma.be's certificate, issued by
`/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=geppetto.oma.be/emailAddress=root_at_geppetto.oma.be':
Self-signed certificate encountered.HTTP request sent, awaiting response...
200 OKLength: unspecified [text/html]Saving to: `cobbler_web' [
<=>
] 1.356 --.-K/s in 0s 2014-01-22 23:16:22 (23,2 MB/s) -
`cobbler_web' saved [1356][root@geppetto ansible]# [root@geppetto ansible]#
wget https://geppetto.oma.be/cobbler_api --no-check-certificate--2014-01-22
23:18:19-- https://geppetto.oma.be/cobbler_apiResolving geppetto.oma.be...
192.168.16.49Connecting to geppetto.oma.be|192.168.16.49|:443...
connected.WARNING: cannot verify geppetto.oma.be's certificate, issued by
`/C=--/ST=SomeState/L=SomeCity/O=SomeOrganization/OU=SomeOrganizationalUnit/CN=geppetto.oma.be/emailAddress=root_at_geppetto.oma.be':
Self-signed certificate encountered.HTTP request sent, awaiting response...
502 Proxy Error2014-01-22 23:18:19 ERROR 502: Proxy Error.[root@geppetto
ansible]# *This might point that the problem is rather with cobbler api
than with ansible
*.*BTW: there is imho no firewalling:
*[root@geppetto ansible]# iptables -LChain INPUT (policy ACCEPT)target
prot opt source destination Chain FORWARD (policy
ACCEPT)target prot opt source destination Chain
OUTPUT (policy ACCEPT)target prot opt source
destination [root@geppetto ansible]# *
Michael you suggest debugging the script, what should I look for?
I'll post a grep in next message.
--
>
> Michael DeHaan <[email protected] <javascript:>>
> CTO, AnsibleWorks, Inc.
> http://www.ansibleworks.com/
>
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.