CE not publishing info to BDII
Nowadays there are several causes that make the CE to not publish any information to the BDII; I want to include as many as possible, as soon as I see them either in my daily work or in any other article:
OSError: [Errno 13] Permission denied: '/opt/glite/var/cache/gip/plugin'
(Thanks to Ronald Starink's collaboration)
Issue
After checking the log file /var/log/bdii/bdii-update.log on the BDII you see the message:
mkdir /opt/glite/var/tmp/gip/egee: Permission denied at /opt/glite/libexec/glite-info-update-endpoints line 26 Couldn't open config file /opt/glite/var/tmp/gip/egee/egee-urls No such file or directory Traceback (most recent call last): File "/opt/glite/libexec/glite-info-plugin-fcr", line 53, in ? os.makedirs(os.path.dirname(cache_file)) File "/usr/lib64/python2.4/os.py", line 156, in makedirs makedirs(head, mode) File "/usr/lib64/python2.4/os.py", line 159, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/opt/glite/var/cache/gip/plugin'
Cause
So far there are two possible root causes for this: Either the re-installation with gLite 3.2 or testing the change in user management (grid user like edguser being held by ldap and not being managed by Quattor anymore).
Workaround
1.- Local users and group edguser,edginfo,infosys were removed from /etc/passwd, /etc/group on tbn11 (Site_BDII) and tbn19 (Top_BDII).
2.- Permissions/Ownerships were repaired via the following commands:
find /var/bdii -uid 101 | xargs chown edguser find /var/bdii -gid 103 | xargs chgrp edguser mkdir -p /var/local/edguser cd /opt/glite/var/ chown -R edguser:infosys cache/gip lock/gip tmp/gip/
3.- The BDII was restarted:
service bdii restart
Resolution
There's not a stable resolution for this yet.