To decrease the need of restarting the BDII and following the discussion on tb-support I decided to upgrade to openldap2.4. Since I was at it I also updated both glite-BDII_site and glite-BDII_top (below the list of new rpms) to the latest repositories division since we still had the older common glite-BDII repo. The newest version of BDII has also new paths for most things. For example some config files have been moved to /etc/bdii and /var/run/bdii is the new SLAPD_VAR_DIR. The setting up of the repos are peculiar to Manchester where we mirror a latest version every day but the machines pick up from a stable repository that is updated when needed.
1) rsync glite-BDII_site and glite-BDII_top from Glite-3.2-latest to Glite-3.2 stable
2) Added the rpm to the local external repository from the BDII_top RPMS.external dir so it can be picked up also by BDII_site and if the case also CEs and SE.
3) Create new repo files and added them to cvs
4) Edited cf.yaim-repos to copy them
5) Installed manually (yum install) the rpms openldap2.4 openldap2.4-servers and their dependencies lib64ldap2.4 openldap2.4-extraschemas on BDII_site. In the glite-BDII_top case they are called in as dependencies so there is no need for this.
# This step can be added in cfengine at a later stage if needed.
6) mv /opt/bdii/etc/bdii.conf.rpmnew /opt/bdii/etc/bdii.conf
# Contains the pointer to the new bdii-slapd.conf which contains the new paths. bdii/slapd won't restart with the old bdii.conf.
7) Add SLAPD=/usr/sbin/slapd2.4 to the new /opt/bdii/etc/bdii.conf
# This can go in yaim post function if one really wants.
8) Rerun YAIM
9) Reduced the rate the cron job checks the bdii from 5 to 20 mins. Top bdii seemed to take longer to rebuild probably due to an expired cache causing a loop.
Crossing fingers it will work and stop the BDII periodically hanging.
New Site BDII RPMS
bdii-5.1.22-1
bdii-config-site-0.9.1-1
glite-BDII_site-3.2.11-1.sl5
glite-yaim-bdii-4.1.12-1
New Top BDII RPMS
bdii-5.1.22-1
bdii-config-top-0.0.9-1
glite-BDII_top-3.2.11-1.sl5
glite-yaim-bdii-4.1.12-1
Openldap2.4 RPMS
lib64ldap2.4_2-2.4.22-1.el5
openldap2.4-2.4.22-1.el5
openldap2.4-extra-schemas-1.3-10.el5
openldap2.4-servers-2.4.22-1.el5
UPDATE 20/
1 comment:
Thank you for posting this article.
When I tried installing bdii from glite-BDII_top.repo, bdii-5.1.22-1 didn't require openldap2.4 and instead it installed openldap-server (2.3 on RHEL5.5).. Also, bdii-5.1.22-1 installed /etc/init.t/bdii that uses openldap v2.3. So, it doesn't look like there was any effort to make openldap2.4 used by default for top level BDII.
Also, for site level BDII (glite-BDII_site.repo), openldap2.4 RPMs aren't published through this repo, so I had to pull them from top level BDII repo even though I am using site level BDII..
Post a Comment