Hi,
In fact, I guess that the idea with that piece of script is that the
BDII (used as site information system) replaces the DN of each object
taken from the GRIS ldif data in such a way that the resulting DNs be
relative to the BDII ldap server instead of the GRIS ones.
I guess that the correction proposed by Jonathan should be adapted in
such a way that the substitution should apply only on the DNs of the
LDIF instead of all the LDIF data. So, according to me, you should have
only to suppress the "g" option of the perl substitution command:
- s/mds-vo-name=local,\s*o=grid/$bdii_bind/ig;
+ s/mds-vo-name=local,\s*o=grid/$bdii_bind/i;
Together with Jonathan, we did this change. As a result, our site
information system looks to work better. I hope we've well understood
the expected BDII (Site SI) behavior. ;)
Pierre
Jonathan Schaeffer a écrit :
> Hi,
>
> Burke, S (Stephen) wrote:
>
>> LHC Computer Grid - Rollout
>>
>>
>>> [mailto:[log in to unmask]] On Behalf Of Johan Gunnarsson
>>> said:
>>> As many others I am planning to move from globus-mds to
>>> lcg-bdii hoping
>>> for increased stability. However my lcg-bdii does not seem to publish
>>> any information when doing an: ldapsearch -x -H
>>> ldap://ingvar.nsc.liu.se:2170 -b "mds-vo-name=nsc,o=grid". I had this
>>> working earlier but it seems to have stopped working some time between
>>> pre-holidays and now.
>>>
>>>
>>
>> You seem to have configured it as a full BDII with all sites, not
>> just yours
>> - did you mean to do that? I can see your site info, e.g.:
>>
>> dn: siteName=nsc,Mds-Vo-name=nsc,mds-vo-name=local,o=grid
>> siteName: nsc
>> sysAdminContact: [log in to unmask]
>> userSupportContact: [log in to unmask]
>> siteSecurityContact: [log in to unmask]
>> dataGridVersion: LCG-2_3_0
>> installationDate: 20041209121212Z
>>
>> but you seem to have an extra mds-vo-name=local in the DN.
>>
>> Stephen
>>
>>
> We have here the same problem... we resolved the multiple mds-vo-name
> apparition in correcting the file
> /opt/lcg/libexec/lcg-bdii-update.
>
> The correction looks like this :
>
> --- lcg-bdii-update 2005-01-12 18:02:17.000000000 +0100
> +++ /opt/lcg/libexec/lcg-bdii-update 2005-01-12 18:01:30.000000000
> +0100
> @@ -177,8 +177,7 @@
> #Modify dn.
> for(@ldif){
> s/,\s+/,/g;
> - s/mds-vo-name=local,o=grid/o=grid/i;
> - s/o=grid/$bdii_bind/g;
> + s/mds-vo-name=local,\s*o=grid/$bdii_bind/ig;
> }
>
>
> I have'nt full tested this correction, so there is no warranty bla bla
> bla.
>
> Regards...
>
--
______________________
Pierre GIRARD
Grid Computing Team Member
IN2P3/CNRS Computing Centre - Lyon (FRANCE)
http://cc.in2p3.fr
Tel. +33 4.78.93.08.80 | Fax. +33 4.72.69.41.70 | e-mail: [log in to unmask]
|