Tags:
, view all tags

Testing of CEMon 1.14.0

Unit tests

Deployment tests

See deployment tests for CREAM, since CEMon is deployed along with CREAM

System tests

Basic functionality tests

Resource BDII glue1 test

Result: PASSED

Verified that CEMon is published in the CREAM CE resource BDII in Glue 1.3

ldapsearch -h  -x -p 2170 -b "o=grid" "objectclass=GlueService"
...
...
# emitestbed29.cnaf.infn.it_org.glite.ce.Monitor_3810702142, resource, grid
dn: GlueServiceUniqueID=emitestbed29.cnaf.infn.it_org.glite.ce.Monitor_3810702142,Mds-Vo-name=resource,o=grid
GlueServiceAccessControlBaseRule: VO:dteam
GlueServiceAccessControlBaseRule: VO:testers.eu-emi.eu
GlueServiceStatus: OK
GlueServiceStatusInfo: tomcat6 is running...[  OK  ]
objectClass: GlueTop
objectClass: GlueService
objectClass: GlueKey
objectClass: GlueSchemaVersion
GlueServiceUniqueID: emitestbed29.cnaf.infn.it_org.glite.ce.Monitor_3810702142
GlueServiceAccessControlRule: dteam
GlueServiceAccessControlRule: testers.eu-emi.eu
GlueServiceStartTime: 1970-01-01T01:00:00+01:00
GlueServiceEndpoint: https://emitestbed29.cnaf.infn.it:8443/ce-monitor/services
GlueServiceVersion: 1.14.0
GlueSchemaVersionMinor: 3
GlueServiceName: INFN-CNAF_EMI-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-CNAF_EMI
GlueServiceOwner: dteam
GlueServiceOwner: testers.eu-emi.eu
GlueSchemaVersionMajor: 1
...
...

Resource BDII glue 2 test

Result: PASSED

Verified that the CEMon service is published in the CREAM CE resource BDII in Glue 2

ldapsearch -h emitestbed29.cnaf.infn.it -x -p 2170 -b "o=glue" "objectclass=Glue2EndPoint" 
...
# emitestbed29.cnaf.infn.it_ComputingElement_org.glite.ce.Monitor_2146819513,
  emitestbed29.cnaf.infn.it_ComputingElement, resource, glue
dn: GLUE2EndpointID=emitestbed29.cnaf.infn.it_ComputingElement_org.glite.ce.Monitor_2146819513,GLUE2ServiceID=emitestbed29.cnaf.infn.it_ComputingElement,GLUE2GroupID=resource,o=glue
GLUE2EntityValidity: 3600
GLUE2EndpointQualityLevel: production
GLUE2EndpointImplementor: gLite
GLUE2EndpointHealthStateInfo: tomcat6 is running...[ OK ]
GLUE2EntityOtherInfo: InfoProviderName=glite-info-glue2-endpoint
GLUE2EntityOtherInfo: InfoProviderVersion=1.2
GLUE2EntityOtherInfo: InfoProviderHost=emitestbed29.cnaf.infn.it
GLUE2EntityOtherInfo: MiddlewareName=EMI
GLUE2EntityOtherInfo: MiddlewareVersion=2.0.0-1
GLUE2EndpointCapability: information.monitoring
GLUE2EndpointHealthState: ok
GLUE2EndpointServiceForeignKey: emitestbed29.cnaf.infn.it_ComputingElement
GLUE2EntityName: Monitor endpoint for Service emitestbed29.cnaf.infn.it_ComputingElement
GLUE2EndpointTechnology: webservice
GLUE2EndpointWSDL: https://emitestbed29.cnaf.infn.it:8443/ce-monitor/services/CEMonitor?wsdl
GLUE2EndpointInterfaceName: org.glite.ce.Monitor
GLUE2EndpointURL: https://emitestbed29.cnaf.infn.it:8443/ce-monitor/services
GLUE2EndpointDowntimeInfo: See the GOC DB for downtimes: https://goc.egi.eu/
GLUE2EndpointImplementationVersion: 1.14.0
GLUE2EndpointSemantics: http://wiki.italiangrid.org/twiki/bin/view/CEMon/FunctionalDescription
GLUE2EndpointIssuerCA: /C=IT/O=INFN/CN=INFN CA
GLUE2EndpointServingState: production
GLUE2EndpointImplementationName: CEMon
GLUE2EndpointInterfaceVersion: 1.0
objectClass: GLUE2Endpoint
objectClass: GLUE2ComputingEndpoint
GLUE2EndpointTrustedCA: IGTF
GLUE2EndpointID: emitestbed29.cnaf.infn.it_ComputingElement_org.glite.ce.Monitor_2146819513
GLUE2EntityCreationTime: 2012-05-02T14:53:46Z
...
...

GetInfo test

Result: PASSED

Verified that the getinfo operation works and returns information about the service:

$ glite-ce-monitor-getinfo --cert /tmp/x509up_u500 --key /tmp/x509up_u500 https://emitestbed29.cnaf.infn.it:8443/ce-monitor/services/CEMonitor
Description=[cemonitor service]
Version    =[1.0]
HostDN     =[CN=emitestbed29.cnaf.infn.it,L=CNAF,OU=Host,O=INFN,C=IT]
Topic [CE_MONITOR]
   Dialect [ISM_CLASSAD_GLUE_1.2]
      queryLanguage [RegEx]
      queryLanguage [ClassAd]
   Dialect [ISM_CLASSAD]
      queryLanguage [RegEx]
      queryLanguage [ClassAd]
   Dialect [ISM_LDIF_GLUE_1.2]
      queryLanguage [RegEx]
      queryLanguage [ClassAd]
   Dialect [ISM_LDIF]
      queryLanguage [RegEx]
      queryLanguage [ClassAd]
Action [SendExpiredNotification::]
Action [DoNotSendNotification::]
Action [SendNotification::]

GetTopics test

Result: PASSED

Verified that the gettopics operation works and returns the list of installed topics

$ glite-ce-monitor-gettopics --cert /tmp/x509up_u500 --key /tmp/x509up_u500 https://emitestbed29.cnaf.infn.it:8443/ce-monitor/services/CEMonitor
Topic [CE_MONITOR]
   Dialect [ISM_CLASSAD_GLUE_1.2]
      queryLanguage [RegEx]
      queryLanguage [ClassAd]
   Dialect [ISM_CLASSAD]
      queryLanguage [RegEx]
      queryLanguage [ClassAd]
   Dialect [ISM_LDIF_GLUE_1.2]
      queryLanguage [RegEx]
      queryLanguage [ClassAd]
   Dialect [ISM_LDIF]
      queryLanguage [RegEx]
      queryLanguage [ClassAd]

GetEvent test

Result: PASSED

Verified that the getevent operation works and return info for the specified topic in the specified dialect

$ glite-ce-monitor-getevent --cert /tmp/x509up_u500 --key /tmp/x509up_u500 --topic CE_MONITOR --dialect ISM_CLASSAD_GLUE_1.2 https://emitestbed29.cnaf.infn.it:8443/ce-monitor/services/CEMonitor
cert=/tmp/x509up_u500 - key=/tmp/x509up_u500
Event[0]:
   Message[0]=[[
   GlueCEInfoApplicationDir = "/opt/exp_soft";
   GlueHostProcessorModel = "XEON";
   GlueCEName = "demo";
   GlueCEHostingCluster = "emitestbed29.cnaf.infn.it";
   GlueCEPolicyPriority = 1;
   GlueHostProcessorVendor = "Intel";
   GlueHostProcessorClockSpeed = 2800;
   GlueCEStateFreeJobSlots = 0;
   GlueSubClusterPhysicalCPUs = 2;
   GlueCEStateEstimatedResponseTime = 2146660842;
   GlueHostNetworkAdapterInboundIP = false;
   GlueCEInfoDefaultSE = "lxbra1910.cern.ch";
   GlueSubClusterWNTmpDir = "/tmp";
   GlueCEStateStatus = "Production";
   GlueCEInfoHostName = "emitestbed29.cnaf.infn.it";
   GlueCEInfoContactString = "https://emitestbed29.cnaf.infn.it:8443/ce-cream/servi";
   GlueCEStateTotalJobs = 0;
   GlueCESEBindGroupCEUniqueID = "emitestbed29.cnaf.infn.it:8443/cream-pbs-demo";
   GlueInformationServiceURL = {
      "ldap://emitestbed29.cnaf.infn.it:2170/mds-vo-name=r",
      "ldap://emitestbed29.cnaf.infn.it:2170/mds-vo-name=r",
      "ldap://emitestbed29.cnaf.infn.it:2170/mds-vo-name=r" 
   };
   GlueCEAccessControlBaseRule = {
      "VO:dteam",
      "VOMS:/testers.eu-emi.eu/Role=pilot",
      "VO:testers.eu-emi.eu" 
   };
   GlueHostOperatingSystemVersion = "Carbon";
   GlueCEStateWaitingJobs = 444444;
   GlueClusterService = {
      "emitestbed29.cnaf.infn.it:8443/cream-pbs-demo" 
   };
   GlueCEPolicyMaxRunningJobs = 999999999;
   GlueCEInfoGatekeeperPort = 8443;
   GlueCEPolicyPreemption = 0;
   GlueCEPolicyMaxTotalJobs = 999999999;
   GlueCEInfoLRMSVersion = "2.5.7";
   GlueClusterUniqueID = "emitestbed29.cnaf.infn.it";
   GlueCEInfoTotalCPUs = 2;
   GlueClusterName = "emitestbed29.cnaf.infn.it";
   GlueCESEBindGroupSEUniqueID = {
      "lxbra1910.cern.ch",
      "cvitbdpm1.cern.ch" 
   };
   GlueHostBenchmarkSI00 = 1286;
   GlueChunkKey = "GlueClusterUniqueID=emitestbed29.cnaf.infn.it";
   GlueCEStateFreeCPUs = 2;
   GlueCEInfoLRMSType = "pbs";
   GlueCEPolicyMaxSlotsPerJob = 999999999;
   GlueCEStateWorstResponseTime = 2146660842;
   GlueHostNetworkAdapterOutboundIP = true;
   GlueCEPolicyMaxWallClockTime = 4320;
   GlueSubClusterName = "emitestbed29.cnaf.infn.it";
   GlueCEImplementationName = "CREAM";
   GlueHostMainMemoryVirtualSize = 4096;
   GlueHostArchitectureSMPSize = 2;
   GlueHostApplicationSoftwareRunTimeEnvironment = {
      "CNAF",
      "GLITE-3_0_0",
      "GLITE-3_1_0",
      "LCG-2",
      "LCG-2_1_0",
      "LCG-2_1_1",
      "LCG-2_2_0",
      "LCG-2_3_0",
      "LCG-2_3_1",
      "LCG-2_4_0",
      "LCG-2_5_0",
      "LCG-2_6_0",
      "LCG-2_7_0",
      "MPI-START",
      "MPI-START-1.3.0",
      "MPICH2",
      "MPI_NO_SHARED_HOME",
      "OPENMPI",
      "OPENMPI-1.2.7",
      "R-GMA",
      "SF00MeanPerCPU_790",
      "SI00MeanPerCPU_870" 
   };
   GlueCEPolicyMaxWaitingJobs = 999999999;
   GlueCECapability = "CPUScalingReferenceSI00=10";
   GlueHostArchitecturePlatformType = "x86_64";
   GlueCEImplementationVersion = "1.14.0";
   GlueHostMainMemoryRAMSize = 2048;
   GlueSubClusterLogicalCPUs = 2;
   GlueForeignKey = {
      "GlueClusterUniqueID=emitestbed29.cnaf.infn.it",
      "GlueSiteUniqueID=INFN-CNAF_EMI",
      "GlueCEUniqueID=emitestbed29.cnaf.infn.it:8443/cream-pbs-demo" 
   };
   GlueCEInfoJobManager = "pbs";
   GlueHostBenchmarkSF00 = 1496;
   GlueHostProcessorOtherDescription = "Cores=1";
   GlueHostOperatingSystemRelease = 6.2;
   GlueCEPolicyMaxObtainableCPUTime = 2880;
   GlueCEUniqueID = "emitestbed29.cnaf.infn.it:8443/cream-pbs-demo";
   GlueCEPolicyAssignedJobSlots = 2;
   GlueCEInfoDataDir = "unset";
   GlueCEPolicyMaxCPUTime = 2880;
   GlueHostOperatingSystemName = "ScientificCERNSLC";
   GlueCEStateRunningJobs = 0;
   GlueSubClusterUniqueID = "emitestbed29.cnaf.infn.it";
   GlueSubClusterTmpDir = "/tmp";
   GlueCEPolicyMaxObtainableWallClockTime = 4320;
   CloseStorageElements = {
      [
         GlueCESEBindSEUniqueID = "cvitbdpm1.cern.ch";
         GlueCESEBindCEAccesspoint = "n.a";
         GlueCESEBindMountInfo = "n.a";
         GlueCESEBindWeight = 0;
         GlueCESEBindCEUniqueID = "emitestbed29.cnaf.infn.it:8443/cream-pbs-demo";
         name = GlueCESEBindSEUniqueID;
         mount = GlueCESEBindCEAccesspoint
      ],
      [
         GlueCESEBindSEUniqueID = "lxbra1910.cern.ch";
         GlueCESEBindCEAccesspoint = "n.a";
         GlueCESEBindMountInfo = "n.a";
         GlueCESEBindWeight = 0;
         GlueCESEBindCEUniqueID = "emitestbed29.cnaf.infn.it:8443/cream-pbs-demo";
         name = GlueCESEBindSEUniqueID;
         mount = GlueCESEBindCEAccesspoint
      ]
   };
]]

Subscription with authentication test

Result: PASSED

Created a subscription towards an authenticated client:

$ glite-ce-monitor-subscribe --key /tmp/x509up_u500 --cert /tmp/x509up_u500 --topic CE_MONITOR --dialects ISM_CLASSAD_GLUE_1.2 --consumer-url https://cream-50.pd.infn.it:9988 https://emitestbed29.cnaf.infn.it:8443/ce-monitor/services/CEMonitor
SubscriptionID=[uuid-1335971444743]

Started a consumer on that client and verified that the messages arrive:

$ glite-ce-monitor-consumer --cert /tmp/x509up_u500 --key /tmp/x509up_u500  9988
Socket connection successful on port 9988 master socket 3
Accepting connection ... 
tmp=
dest=::ffff:131.154.100.61
Wed May  2 17:11:07 2012
 - 1: accepted connection from IP=131.154.100.61 (emitestbed29.cnaf.infn.it)
Event Producer=CE Sensor
Event ID      =-1
Topic [CE_MONITOR]
   Dialect [ISM_CLASSAD_GLUE_1.2]
>>> Event #0 - Dumping messages: 

Event #0 - Message #0
[
   GlueCEInfoApplicationDir = "/opt/exp_soft";
   GlueHostProcessorModel = "XEON";
   GlueCEName = "demo";
   GlueCEHostingCluster = "emitestbed29.cnaf.infn.it";
   GlueCEPolicyPriority = 1;
   GlueHostProcessorVendor = "Intel";
   GlueHostProcessorClockSpeed = 2800;
   GlueCEStateFreeJobSlots = 0;
...
...

Subscription without authentication test

Result: PASSED

Created a subscription towards a non secure client:

$ glite-ce-monitor-subscribe --key /tmp/x509up_u500 --cert /tmp/x509up_u500 --topic CE_MONITOR --dialects ISM_CLASSAD_GLUE_1.2 --consumer-url http://cream-50.pd.infn.it:9999 https://emitestbed29.cnaf.infn.it:8443/ce-monitor/services/CEMonitor
SubscriptionID=[uuid-1335971870144]

Started this non authenticated consumer and verifies that it receives messages:

$ glite-ce-monitor-consumer  9999
Socket connection successful on port 9999 master socket 3
Accepting connection ... 
Wed May  2 17:17:52 2012
 - 1: accepted connection from IP=131.154.100.61 (emitestbed29.cnaf.infn.it)
Event Producer=CE Sensor
Event ID      =-1
Topic [CE_MONITOR]
   Dialect [ISM_CLASSAD_GLUE_1.2]
>>> Event #0 - Dumping messages: 

Event #0 - Message #0
[
   GlueCEInfoApplicationDir = "/opt/exp_soft";
   GlueHostProcessorModel = "XEON";
   GlueCEName = "demo";
   GlueCEHostingCluster = "emitestbed29.cnaf.infn.it";
   GlueCEPolicyPriority = 1;
   GlueHostProcessorVendor = "Intel";
   GlueHostProcessorClockSpeed = 2800;
   GlueCEStateFreeJobSlots = 0;
   GlueSubClusterPhysicalCPUs = 2;
...

Unsubscription test

Result: PASSED

Cancelled a previously created subscription and verified that the consumer doesn't receive anymore messages:

$ glite-ce-monitor-unsubscribe --key /tmp/x509up_u500 --cert /tmp/x509up_u500 --id uuid-1335971444743 https://emitestbed29.cnaf.infn.it:8443/ce-monitor/services
$

Regression tests

https://savannah.cern.ch/bugs/?78075

Result: PASSED

Verified that there aren't spyrious characters in the log4j conf file:

#  cat /etc/glite-ce-monitor/log4j.properties 
log4j.rootLogger=info, fileout
log4j.logger.httpclient.wire.content=off
log4j.logger.org.glite.voms.PKIStore=off
log4j.appender.fileout=org.apache.log4j.RollingFileAppender
log4j.appender.fileout.File=/var/log/cemonitor/glite-ce-monitor.log
log4j.appender.fileout.MaxFileSize=1000KB
log4j.appender.fileout.MaxBackupIndex=20
log4j.appender.fileout.layout=org.apache.log4j.PatternLayout
log4j.appender.fileout.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} %c - %m%n

https://savannah.cern.ch/bugs/?80401

Result: PASSED

See functionality test above

https://savannah.cern.ch/bugs/?80405

Result: PASSED

# grep -i backend /etc/glite-ce-monitor/cemonitor-config.xml
         backendLocation="/var/cemonitor"

http://savannah.cern.ch/bugs/?83297

Result: PASSED

See Glue 2 test above. Verified in particular that the attributes MiddlewareName, MiddlewareVersion, ImplementationName, ImplementationVersion are properly published

http://savannah.cern.ch/bugs/?85183

Result: PASSED

See functionality tests above Verified that in the:

accepted connection from IP=

the IP name is correct

-- MassimoSgaravatto - 2012-05-02

Edit | Attach | PDF | History: r3 < r2 < r1 | Backlinks | Raw View | More topic actions...
Topic revision: r1 - 2012-05-02 - MassimoSgaravatto
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platformCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback