Hi Sam,
AFAIK The dmlite puppet module configures /etc/bdii/bdii.conf, which looks relatively simple [1].
Looking through the log file it looks like the dpm-listspaces is crashing [2], however if I execute the command mentioned in the log
dpm-listspaces --gip --protocols --basedir home --site UKI-SOUTHGRID-BRIS-HEP
--glue2 --use-dmlite-conf /etc/dmlite.conf
by hand, I do get a nicely looking response which includes
This looks to me if whatever is executing the script is calling an incompatible java version [3].
Since we have both Java 6 and 7 installed and HDFS only works with Java 7 I tried removing Java 6 - however it tries to pull the DMLite HDFS plugin with it :(.
After checking the java installed I realised that only Java 6 has the -devel package installed - /usr/sbin/alternatives is confused by it!
So, once that was fixed the error message is much shorter:
Cheers,
Luke
[1]
/etc/bdii/bdii.con
[2]
Hi Winnie:
So, the BDII stuff is configured by
/etc/bdii/bdii.conf
which points (usually) at
/var/lib/bdii/gip
as the base path for stuff.
On my SE, I see in that path:
glite-info-service-srm2.2.conf
and the usual plugins, providers, ldif directories
plugins is empty
ldif contains a basic default.ldif
providers contains two scripts:
se-dpm service-srm2.2
Obviously, as you don't have an SRM, I would guess you only should have se-dpm?
Our se-dpm does what I expected it to (we discussed this in the Storage Group meeting this morning), and runs dpm-listspaces in --glue2 mode:
export X509_USER_CERT=/var/lib/ldap/hostcert.pem
export X509_USER_KEY=/var/lib/ldap/hostkey.pem
dpm-listspaces --gip --protocols --basedir home --site UKI-SCOTGRID-GLASGOW --glue2
Can you check which of these things exist on your SE?
Sam
Good day all,
Not a meeting today but can request SE help anyway.
Bristol SE doesna speak SRM. It is publishing a GlueService object, but main
GlueSE missing. (CAVEAT: Sadly, my bdii/GLUE knowhow = .00001)
I asked Stephen Burke (GLUE Guru) about this, he said:
> In GLUE 1 your SE is publishing a GlueService object, but the main GlueSE
> is missing:
>
>ldapsearch -x -h lcgbdii02.phy.bris.ac.uk -p 2170 -b o=grid objectclass=GlueSE
># extended LDIF
>#
># LDAPv3
># base <o=grid> with scope subtree
># filter: objectclass=GlueSE
># requesting: ALL
>#
>
># search result
>search: 2
>result: 0 Success
>
># numResponses: 1
>
>Similarly in GLUE 2:
>
>ldapsearch -x -h lcgbdii02.phy.bris.ac.uk -p 2170 -b o=glue objectclass=GLUE2StorageService
># extended LDIF
>#
># LDAPv3
># base <o=glue> with scope subtree
># filter: objectclass=GLUE2StorageService
># requesting: ALL
>#
>
># search result
>search: 2
>result: 0 Success
>
># numResponses: 1
>
> The publishing isn't intrinsically connected to whether it's an SRM or
> not, but if no-one has written an info provider for it then obviously
> it won't be visible.
Possibly relevant installed:
apr-util-ldap-1.3.9-3.el6_0.1.x86_64.rpm
bdii-5.2.23-1.el6.noarch.rpm
openldap-2.4.40-6.el6_7.x86_64.rpm
openldap-clients-2.4.40-6.el6_7.x86_64.rpm
openldap-servers-2.4.40-6.el6_7.x86_64.rpm
perl-LDAP-0.40-1.el6.noarch.rpm
python-ldap-2.3.10-1.el6.x86_64.rpm
also possibly relevant installed:
dmlite-plugins-hdfs-0.7.8-1.20161117.1205rc.el6.x86_64.rpm
dmlite-plugins-memcache-0.8.5-1.el6.x86_64.rpm
dmlite-plugins-mysql-0.8.5-1.el6.x86_64.rpm
gstreamer-plugins-base-0.10.29-2.el6.x86_64.rpm
hadoop-0.20-mapreduce-2.6.0+cdh5.7.1+1335-1.cdh5.7.1.p0.15.el6.x86_64.rpm
hadoop-2.6.0+cdh5.7.1+1335-1.cdh5.7.1.p0.15.el6.x86_64.rpm
hadoop-client-2.6.0+cdh5.7.1+1335-1.cdh5.7.1.p0.15.el6.x86_64.rpm
hadoop-hdfs-2.6.0+cdh5.7.1+1335-1.cdh5.7.1.p0.15.el6.x86_64.rpm
hadoop-libhdfs-2.6.0+cdh5.7.1+1335-1.cdh5.7.1.p0.15.el6.x86_64.rpm
hadoop-mapreduce-2.6.0+cdh5.7.1+1335-1.cdh5.7.1.p0.15.el6.x86_64.rpm
hadoop-yarn-2.6.0+cdh5.7.1+1335-1.cdh5.7.1.p0.15.el6.x86_64.rpm
perl-Module-Pluggable-3.90-141.el6.x86_64.rpm
xrootd-server-atlas-n2n-plugin-2.2-0.el6.x86_64.rpm
in /etc/bdii:
-rw-r----- 1 ldap ldap 3720 Jun 8 2016 bdii-slapd.conf
-rw-r--r-- 1 root root 329 Mar 18 2015 bdii.conf
drwxr-xr-x 2 root root 4096 Mar 18 2015 gip/
-rw-r----- 1 ldap ldap 4012 Mar 18 2015 bdii-top-slapd.conf
-rw-r--r-- 1 root root 3970 Oct 13 2014 BDII.schema
-rw-r--r-- 1 root root 276 Oct 13 2014 DB_CONFIG
-rw-r--r-- 1 root root 510 Oct 13 2014 DB_CONFIG_top
gip is empty.
In /var/lib/bdii:
-rw-r--r-- 1 ldap ldap 0 Dec 15 2016 add.err
-rw-r--r-- 1 ldap ldap 52 Aug 23 10:36 add.ldif
drwxr-xr-x 2 ldap ldap 4096 Aug 23 10:36 archive/
drwxr-xr-x 5 ldap ldap 100 Dec 15 2016 db/
-rw-r--r-- 1 ldap ldap 0 Sep 30 2016 delete.err
-rw-r--r-- 1 ldap ldap 0 Aug 23 10:36 delete.ldif
drwxr-xr-x 5 ldap ldap 4096 Mar 18 2015 gip/
-rw-r--r-- 1 ldap ldap 0 Aug 23 10:36 modify.err
-rw-r--r-- 1 ldap ldap 82391 Aug 23 10:36 modify.ldif
-rw-r--r-- 1 ldap ldap 58419 Aug 23 10:36 new.ldif
-rw-r--r-- 1 ldap ldap 0 Aug 23 10:36 old.err
-rw-r--r-- 1 ldap ldap 2785 Aug 23 10:36 old.ldif
root@lcgse01> ls -lR gip
ls -lR gip:
total 16
-rwxr-xr-x 1 ldap ldap 648 Mar 18 2015 glite-info-service-srm2.2.conf*
drwxr-xr-x 2 ldap ldap 4096 Mar 18 2015 ldif/
drwxr-xr-x 2 ldap ldap 4096 Oct 13 2014 plugin/
drwxr-xr-x 2 ldap ldap 4096 Oct 27 2015 provider/
gip/ldif:
total 4
-rw-r--r-- 1 ldap ldap 439 Oct 13 2014 default.ldif
gip/plugin:
total 0
gip/provider:
total 8
-rwxr-xr-x 1 root root 287 Oct 27 2015 se-dpm*
-rwxr-xr-x 1 ldap ldap 146 Mar 18 2015 service-srm2.2*
Can anyone advise how to have this dmlite-hdfs SE publish
objectclass=GlueSE in GLUE 1 & objectclass=GLUE2StorageService in GLUE 2?