Check if the CEMon service is published in the CREAM CE resource BDII in Glue 1.3
Result: PASSED
$ ldapsearch -h cream-38.pd.infn.it -x -p 2170 -b "o=grid" "objectclass=GlueService"
...
# cream-38.pd.infn.it_org.glite.ce.Monitor_3939283902, resource, grid
dn: GlueServiceUniqueID=cream-38.pd.infn.it_org.glite.ce.Monitor_3939283902,Mds-Vo-name=resource,o=grid
GlueServiceAccessControlBaseRule: VO:cms
GlueServiceAccessControlBaseRule: VO:dteam
GlueServiceAccessControlBaseRule: VO:infngrid
GlueServiceAccessControlBaseRule: VO:creamtest
GlueServiceAccessControlBaseRule: VO:test01
GlueServiceAccessControlBaseRule: VO:test02
GlueServiceAccessControlBaseRule: VO:test03
GlueServiceAccessControlBaseRule: VO:test04
GlueServiceAccessControlBaseRule: VO:test05
GlueServiceAccessControlBaseRule: VO:test06
GlueServiceAccessControlBaseRule: VO:test07
GlueServiceAccessControlBaseRule: VO:test08
GlueServiceAccessControlBaseRule: VO:test09
GlueServiceAccessControlBaseRule: VO:test10
GlueServiceAccessControlBaseRule: VO:test11
GlueServiceAccessControlBaseRule: VO:test12
GlueServiceAccessControlBaseRule: VO:test13
GlueServiceAccessControlBaseRule: VO:test14
GlueServiceAccessControlBaseRule: VO:test15
GlueServiceAccessControlBaseRule: VO:test16
GlueServiceAccessControlBaseRule: VO:test17
GlueServiceAccessControlBaseRule: VO:test18
GlueServiceAccessControlBaseRule: VO:test19
GlueServiceAccessControlBaseRule: VO:test20
GlueServiceAccessControlBaseRule: VO:test21
GlueServiceAccessControlBaseRule: VO:alice
GlueServiceStatus: OK
GlueServiceStatusInfo: /etc/init.d/tomcat5 is already running (1364)
objectClass: GlueTop
objectClass: GlueService
objectClass: GlueKey
objectClass: GlueSchemaVersion
GlueServiceUniqueID: cream-38.pd.infn.it_org.glite.ce.Monitor_3939283902
GlueServiceAccessControlRule: cms
GlueServiceAccessControlRule: dteam
GlueServiceAccessControlRule: infngrid
GlueServiceAccessControlRule: creamtest
GlueServiceAccessControlRule: test01
GlueServiceAccessControlRule: test02
GlueServiceAccessControlRule: test03
GlueServiceAccessControlRule: test04
GlueServiceAccessControlRule: test05
GlueServiceAccessControlRule: test06
GlueServiceAccessControlRule: test07
GlueServiceAccessControlRule: test08
GlueServiceAccessControlRule: test09
GlueServiceAccessControlRule: test10
GlueServiceAccessControlRule: test11
GlueServiceAccessControlRule: test12
GlueServiceAccessControlRule: test13
GlueServiceAccessControlRule: test14
GlueServiceAccessControlRule: test15
GlueServiceAccessControlRule: test16
GlueServiceAccessControlRule: test17
GlueServiceAccessControlRule: test18
GlueServiceAccessControlRule: test19
GlueServiceAccessControlRule: test20
GlueServiceAccessControlRule: test21
GlueServiceAccessControlRule: alice
GlueServiceStartTime: 2011-09-07T17:51:07+02:00
GlueServiceEndpoint: https://cream-38.pd.infn.it:8443/ce-monitor/services
GlueServiceVersion: 1.13.3
GlueSchemaVersionMinor: 3
GlueServiceName: INFN-PADOVA-CREAMTEST-Monitor
GlueServiceType: org.glite.ce.Monitor
GlueServiceWSDL: http://grid.pd.infn.it/cemon/wsdl/org.glite.ce-mon_service.wsdl
GlueServiceSemantics: http://wiki.italiangrid.org/twiki/bin/view/CEMon/FunctionalDescription
GlueForeignKey: GlueSiteUniqueID=INFN-PADOVA-CREAMTEST
GlueServiceOwner: cms
GlueServiceOwner: dteam
GlueServiceOwner: infngrid
GlueServiceOwner: creamtest
GlueServiceOwner: test01
GlueServiceOwner: test02
GlueServiceOwner: test03
GlueServiceOwner: test04
GlueServiceOwner: test05
GlueServiceOwner: test06
GlueServiceOwner: test07
GlueServiceOwner: test08
GlueServiceOwner: test09
GlueServiceOwner: test10
GlueServiceOwner: test11
GlueServiceOwner: test12
GlueServiceOwner: test13
GlueServiceOwner: test14
GlueServiceOwner: test15
GlueServiceOwner: test16
GlueServiceOwner: test17
GlueServiceOwner: test18
GlueServiceOwner: test19
GlueServiceOwner: test20
GlueServiceOwner: test21
GlueServiceOwner: alice
GlueSchemaVersionMajor: 1
Check if the CEMon service is published in the CREAM CE resource BDII in Glue 2
Result: PASSED
$ ldapsearch -h cream-38.pd.infn.it -x -p 2170 -b "o=glue" "objectclass=Glue2Endpoint"
...
...
# cream-38.pd.infn.it_ComputingElement_org.glite.ce.Monitor_2880986607, cream-38.pd.infn.it_ComputingElement, resource, glue
dn: GLUE2EndpointID=cream-38.pd.infn.it_ComputingElement_org.glite.ce.Monitor_2880986607,GLUE2ServiceID=cream-38.pd.infn.it_ComputingElement,GLUE2GroupID=resource,o=glue
GLUE2EntityValidity: 3600
GLUE2EndpointQualityLevel: production
GLUE2EndpointImplementor: gLite
GLUE2EndpointHealthStateInfo: /etc/init.d/tomcat5 is already running (1364)
GLUE2EntityOtherInfo: InfoProviderName=glite-info-glue2-endpoint
GLUE2EntityOtherInfo: InfoProviderVersion=1.2
GLUE2EntityOtherInfo: InfoProviderHost=cream-38.pd.infn.it
GLUE2EntityOtherInfo: MiddlewareName=EMI
GLUE2EntityOtherInfo: MiddlewareVersion=1.2.0-1
GLUE2EndpointCapability: information.monitoring
GLUE2EndpointHealthState: ok
GLUE2EndpointServiceForeignKey: cream-38.pd.infn.it_ComputingElement
GLUE2EntityName: Monitor endpoint for Service cream-38.pd.infn.it_ComputingElement
GLUE2EndpointTechnology: webservice
GLUE2EndpointWSDL: https://cream-38.pd.infn.it:8443/ce-monitor/services/CEMonitor?wsdl
GLUE2EndpointInterfaceName: org.glite.ce.Monitor
GLUE2EndpointURL: https://cream-38.pd.infn.it:8443/ce-monitor/services
GLUE2EndpointDowntimeInfo: See the GOC DB for downtimes: https://goc.egi.eu/
GLUE2EndpointImplementationVersion: 1.13.3
GLUE2EndpointSemantics: http://wiki.italiangrid.org/twiki/bin/view/CEMon/FunctionalDescription
GLUE2EndpointIssuerCA: /C=IT/O=INFN/CN=INFN CA
GLUE2EndpointServingState: production
objectClass: GLUE2Endpoint
objectClass: GLUE2ComputingEndpoint
GLUE2EndpointStartTime: 2011-09-07T15:51:07Z
GLUE2EndpointInterfaceVersion: 1.0
GLUE2EndpointImplementationName: CEMon
GLUE2EndpointTrustedCA: IGTF
GLUE2EndpointID: cream-38.pd.infn.it_ComputingElement_org.glite.ce.Monitor_2880986607
GLUE2EntityCreationTime: 2011-09-08T09:05:09Z
Check if the getinfo operation works and returns information about the service:
Result: PASSED
$ glite-ce-monitor-getinfo --cert /tmp/x509up_u500 --key /tmp/x509up_u500 https://cream-38:8443/ce-monitor/services/CEMonitor
Description=[cemonitor service]
Version =[1.0]
HostDN =[/C=IT/O=INFN/OU=Host/L=Padova/CN=cream-38.pd.infn.it]
Topic [CREAM_JOBS]
Dialect [CLASSAD]
queryLanguage [ClassAd]
Action [SendExpiredNotification::]
Action [DoNotSendNotification::]
Action [SendNotification::]
Check if the gettopics operation works and returns the list of installed topic
Result: PASSED
$ glite-ce-monitor-gettopics --cert /tmp/x509up_u500 --key /tmp/x509up_u500 https://cream-38:8443/ce-monitor/services/CEMonitor
Topic [CREAM_JOBS]
Dialect [CLASSAD]
queryLanguage [ClassAd]
Check if the getevent operation works and return info for the specified topic in the specified dialect
Result: PASSED
$ glite-ce-monitor-getevent --topic CREAM_JOBS --dialect CLASSAD --cert /tmp/x509up_u500 --key /tmp/x509up_u500 https://cream-38:8443/ce-monitor/services/CEMonitor
--cert=/tmp/x509up_u500 --key=/tmp/x509up_u500
Event[0]:
Message[0]=[[
CREAM_JOB_ID = "CREAM460811263";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "REGISTERED";
TIMESTAMP = "1315473034000";
WORKER_NODE = "N/A"
]]
Message[1]=[[
CREAM_JOB_ID = "CREAM460811263";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "PENDING";
TIMESTAMP = "1315473036000";
WORKER_NODE = "N/A"
]]
Message[2]=[[
CREAM_JOB_ID = "CREAM460811263";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "IDLE";
TIMESTAMP = "1315473036000";
WORKER_NODE = "N/A"
]]
Message[3]=[[
CREAM_JOB_ID = "CREAM460811263";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "RUNNING";
TIMESTAMP = "1315473039000";
WORKER_NODE = "N/A"
]]
Check if subscriptions towards a authenticated consumer work
Result: PASSED
$ glite-ce-monitor-subscribe --consumer-url https://cream-19.pd.infn.it:9876 --topic CREAM_JOBS --dialect CLASSAD --cert /tmp/x509up_u500 --key /tmp/x509up_u500 https://cream-38:8443/ce-monitor/services/CEMonitor
SubscriptionID=[uuid-1315473165713]
$ glite-ce-monitor-consumer --cert hostcert.pem --key hostkey.pem 9876
Socket connection successful on port 9876 master socket 3
Accepting connection ...
Thu Sep 8 11:12:46 2011
- 1: accepted connection from IP=193.206.210.16 (cream-38.pd.infn.it)
Event Producer=CREAM Job Sensor
Event ID =-1
Topic [CREAM_JOBS]
Dialect [CLASSAD]
>>> Event #1 - Dumping messages:
Event #1 - Message #0
[
CREAM_JOB_ID = "CREAM460811263";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "REGISTERED";
TIMESTAMP = "1315473034000";
WORKER_NODE = "cream-43.pd.infn.it"
]
Event #1 - Message #1
[
CREAM_JOB_ID = "CREAM460811263";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "PENDING";
TIMESTAMP = "1315473036000";
WORKER_NODE = "cream-43.pd.infn.it"
]
Event #1 - Message #2
[
CREAM_JOB_ID = "CREAM460811263";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "IDLE";
TIMESTAMP = "1315473036000";
WORKER_NODE = "cream-43.pd.infn.it"
]
Event #1 - Message #3
[
CREAM_JOB_ID = "CREAM460811263";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "RUNNING";
TIMESTAMP = "1315473039000";
WORKER_NODE = "cream-43.pd.infn.it"
]
Event #1 - Message #4
[
CREAM_JOB_ID = "CREAM460811263";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "REALLY-RUNNING";
TIMESTAMP = "1315473041000";
WORKER_NODE = "cream-43.pd.infn.it"
]
Event #1 - Message #5
[
CREAM_JOB_ID = "CREAM460811263";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "DONE-OK";
TIMESTAMP = "1315473050000";
EXIT_CODE = 23;
WORKER_NODE = "cream-43.pd.infn.it";
FAILURE_REASON = "reason=0"
]
Accepting connection ...
Check if subscriptions towards a not authenticated consumer work
Result: PASSED
$ glite-ce-monitor-subscribe --consumer-url http://cream-19.pd.infn.it:9900 --topic CREAM_JOBS --dialect CLASSAD --cert /tmp/x509up_u500 --key /tmp/x509up_u500 https://cream-38:8443/ce-monitor/services/CEMonitor
SubscriptionID=[uuid-1315473731882]
$ glite-ce-monitor-consumer 9900
$ glite-ce-monitor-consumer 9900
Socket connection successful on port 9900 master socket 3
Accepting connection ...
Thu Sep 8 11:22:11 2011
- 1: accepted connection from IP=193.206.210.16 (cream-38.pd.infn.it)
Event Producer=CREAM Job Sensor
Event ID =-1
Topic [CREAM_JOBS]
Dialect [CLASSAD]
>>> Event #1 - Dumping messages:
Event #1 - Message #0
[ SUBSCRIPTION_ID = "uuid-1315473731882";
KEEP_ALIVE = true; ]
Accepting connection ...
Thu Sep 8 11:22:31 2011
- 2: accepted connection from IP=193.206.210.16 (cream-38.pd.infn.it)
Event Producer=CREAM Job Sensor
Event ID =-1
Topic [CREAM_JOBS]
Dialect [CLASSAD]
>>> Event #2 - Dumping messages:
Event #2 - Message #0
[ SUBSCRIPTION_ID = "uuid-1315473731882";
KEEP_ALIVE = true; ]
Accepting connection ...
Thu Sep 8 11:22:51 2011
- 3: accepted connection from IP=193.206.210.16 (cream-38.pd.infn.it)
Event Producer=CREAM Job Sensor
Event ID =-1
Topic [CREAM_JOBS]
Dialect [CLASSAD]
>>> Event #3 - Dumping messages:
Event #3 - Message #0
[
CREAM_JOB_ID = "CREAM303594555";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "REGISTERED";
TIMESTAMP = "1315473752000";
WORKER_NODE = "cream-43.pd.infn.it"
]
Event #3 - Message #1
[
CREAM_JOB_ID = "CREAM303594555";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "PENDING";
TIMESTAMP = "1315473753000";
WORKER_NODE = "cream-43.pd.infn.it"
]
Event #3 - Message #2
[
CREAM_JOB_ID = "CREAM303594555";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "IDLE";
TIMESTAMP = "1315473753000";
WORKER_NODE = "cream-43.pd.infn.it"
]
Event #3 - Message #3
[
CREAM_JOB_ID = "CREAM303594555";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "RUNNING";
TIMESTAMP = "1315473756000";
WORKER_NODE = "cream-43.pd.infn.it"
]
Event #3 - Message #4
[
CREAM_JOB_ID = "CREAM303594555";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "REALLY-RUNNING";
TIMESTAMP = "1315473758000";
WORKER_NODE = "cream-43.pd.infn.it"
]
Event #3 - Message #5
[
CREAM_JOB_ID = "CREAM303594555";
CREAM_URL = "https://cream-38.pd.infn.it:8443/ce-cream/services/CREAM2";
JOB_STATUS = "DONE-OK";
TIMESTAMP = "1315473767000";
EXIT_CODE = 23;
WORKER_NODE = "cream-43.pd.infn.it";
FAILURE_REASON = "reason=0"
]
Accepting connection ...
Check if the unsubscribe operation works
Result: PASSED
$ glite-ce-monitor-unsubscribe --id uuid-1315473731882 https://cream-38:8443/ce-monitor/services/CEMonitor
$
No more events received by that consumer |