Hola Arnau,
> we've been debugging the script /usr/bin/glite-info-update-endpoints
>
> There's a bucle where it gets :
>
> osg_goc_url = "http://myosg.grid.iu.edu/rgsummary/xml?datasource=summary&summary_attrs_showwlcg=on&all_resources=on&gridtype=on&gridtype_1=on&active=on&active_value=1&disable_value=1"
>
> *OSG site list
>
> and then parses entries looking for LDAPURL entries.
> The script sees sites like:
>
>
> Site: FLTECH
> LDAPURL: ldap://is.grid.iu.edu:2180/mds-vo-name=FLTECH,o=grid
>
> which is correct
>
> Site: GLOW
> LDAPURL: ldap://is.grid.iu.edu:2180/mds-vo-name=GLOW,o=grid
> LDAPURL: None
> LDAPURL: None
> LDAPURL: None
> LDAPURL: None
> LDAPURL: ldap://is.grid.iu.edu:2180/mds-vo-name=GLOW,o=grid
> LDAPURL: None
>
> which is not correct cause last entry is none (don't know why it has so
> many entries)
Try the attached patch...
--- usr/bin/glite-info-update-endpoints.bug 2010-09-13 12:27:11.000000000 +0200
+++ usr/bin/glite-info-update-endpoints.fix 2010-12-01 17:30:14.000000000 +0100
@@ -114,7 +114,8 @@
if attribute.tag == 'WLCGInformation':
for information in attribute.getchildren():
if information.tag == 'LDAPURL':
- site_url = information.text
+ if information.text:
+ site_url = information.text
if site_url:
if not site_url in seen_urls:
osg_urls['OSG'].append((site_name, site_url))
|