Difference: WMSTask26837 (31 vs. 32)

Revision 322012-03-28 - FabioCapannini

Line: 1 to 1
 
META TOPICPARENT name="TestingWms"
Line: 3930 to 3930
  All tests PASSED
Added:
>
>

Nagios probes test

 
Added:
>
>

Clean installation

Environment

Clean SL5 installation plus an EMI-UI according to EMI guidelines.

Repositories

Install

[root@cert-17 ~]# yum install emi-wms-nagios
Loaded plugins: downloadonly, kernel-module, priorities, protect-packages, protectbase, security, verify, versionlock
Repository EGI-trustanchors is listed more than once in the configuration
Repository EMI-1-base is listed more than once in the configuration
Repository EMI-1-updates is listed more than once in the configuration
Repository EMI-1-third-party is listed more than once in the configuration
EMI-1-testing-base                                                                                                    | 1.9 kB     00:00     
EMI-1-testing-base/primary_db                                                                                         | 658 kB     00:00     
EMI-1-testing-third-party                                                                                             | 1.9 kB     00:00     
EMI-1-testing-third-party/primary_db                                                                                  |  26 kB     00:00     
EMI-1-testing-updates                                                                                                 | 1.9 kB     00:00     
EMI-1-testing-updates/primary_db                                                                                      |  14 kB     00:00     
Oracle                                                                                                                | 1.9 kB     00:00     
Oracle/primary_db                                                                                                     | 2.1 kB     00:00     
core                                                                                                                  | 1.1 kB     00:00     
core/primary                                                                                                          | 1.0 MB     00:00     
core                                                                                                                               3702/3702
egi-sam                                                                                                               | 1.9 kB     00:00     
egi-sam/primary_db                                                                                                    | 108 kB     00:00     
extras                                                                                                                | 3.4 kB     00:00     
extras/primary_db                                                                                                     | 3.7 MB     00:00     
4791 packages excluded due to repository priority protections
0 packages excluded due to repository protections
Reading version lock configuration
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package emi-wms-nagios.noarch 0:1.0.0-1.el5 set to be updated
--> Processing Dependency: nagios-submit-conf >= 0.2 for package: emi-wms-nagios
--> Processing Dependency: python-GridMon >= 1.1.10 for package: emi-wms-nagios
--> Processing Dependency: python-ldap for package: emi-wms-nagios
--> Running transaction check
---> Package nagios-submit-conf.noarch 0:0.2-2.el5 set to be updated
---> Package python-GridMon.noarch 0:1.1.12-1.el5 set to be updated
---> Package python-ldap.x86_64 0:2.2.0-2.1 set to be updated
--> Finished Dependency Resolution
Beginning Kernel Module Plugin
Finished Kernel Module Plugin

Dependencies Resolved

=============================================================================================================================================
 Package                               Arch                      Version                         Repository                             Size
=============================================================================================================================================
Installing:
 emi-wms-nagios                        noarch                    1.0.0-1.el5                     EMI-1-testing-base                     61 k
Installing for dependencies:
 nagios-submit-conf                    noarch                    0.2-2.el5                       egi-sam                               3.4 k
 python-GridMon                        noarch                    1.1.12-1.el5                    egi-sam                               153 k
 python-ldap                           x86_64                    2.2.0-2.1                       sl-base                               123 k

Transaction Summary
=============================================================================================================================================
Install       4 Package(s)
Upgrade       0 Package(s)

Total download size: 340 k
Is this ok [y/N]: y
Downloading Packages:
(1/4): nagios-submit-conf-0.2-2.el5.noarch.rpm                                                                        | 3.4 kB     00:00     
(2/4): emi-wms-nagios-1.0.0-1.el5.noarch.rpm                                                                          |  61 kB     00:00     
(3/4): python-ldap-2.2.0-2.1.x86_64.rpm                                                                               | 123 kB     00:00     
(4/4): python-GridMon-1.1.12-1.el5.noarch.rpm                                                                         | 153 kB     00:00     
---------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                        225 kB/s | 340 kB     00:01     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : python-ldap                                                                                                           1/4 
  Installing     : nagios-submit-conf                                                                                                    2/4 
  Installing     : python-GridMon                                                                                                        3/4 
  Installing     : emi-wms-nagios                                                                                                        4/4 

Installed:
  emi-wms-nagios.noarch 0:1.0.0-1.el5                                                                                                        

Dependency Installed:
  nagios-submit-conf.noarch 0:0.2-2.el5            python-GridMon.noarch 0:1.1.12-1.el5            python-ldap.x86_64 0:2.2.0-2.1           

Complete!

Upgrade from production

N/A: This is the initial release. No previous version to upgrade from.

Unit Tests

N/A: The nagios probes are interpretted python scripts. Unit tests do not apply.

Regression Tests

N/A: This is the initial release. No associated bugs exist.

Functional Tests

Preparation

Log as a user and create a valid voms proxy

WMSProbe

  • State + Monit
[capannini@cert-17 ~]$ /usr/libexec/grid-monitoring/probes/emi.wms/WMS-probe --vo dteam -x /tmp/x509up_u504 -H emi-demo11.cnaf.infn.it -m emi.wms.WMS-JobState
OK: 
OK: 
Testing from: cert-17.cnaf.infn.it
DN: /C=IT/O=INFN/OU=Personal Certificate/L=CNAF/CN=Fabio Capannini/CN=proxy
VOMS FQANs: /dteam/Role=NULL/Capability=NULL, /dteam/NGI_IT/Role=NULL/Capability=NULL


Connecting to the service https://emi-demo11.cnaf.infn.it:7443/glite_wms_wmproxy_server


====================== glite-wms-job-submit Success ======================

The job has been successfully submitted to the WMProxy
Your job identifier is:

https://emi-demo11.cnaf.infn.it:9000/2b2lTYV75wO2Zx4z34gIWg

The job identifier has been saved in the following file:
/var/lib/gridprobes/dteam/emi.wms/WMS/emi-demo11.cnaf.infn.it/jobID

==========================================================================

[capannini@cert-17 ~]$ /usr/libexec/grid-monitoring/probes/emi.wms/WMS-probe --vo dteam -x /tmp/x509up_u504 -H emi-demo11.cnaf.infn.it -m emi.wms.WMS-JobMonit --pass-check-dest active
metric results >>> <emi-demo11.cnaf.infn.it,emi.wms.WMS-JobState-dteam>
OK: [Scheduled] https://emi-demo11.cnaf.infn.it:9000/2b2lTYV75wO2Zx4z34gIWg
OK: [Scheduled] https://emi-demo11.cnaf.infn.it:9000/2b2lTYV75wO2Zx4z34gIWg
glite-wms-job-status https://emi-demo11.cnaf.infn.it:9000/2b2lTYV75wO2Zx4z34gIWg


======================= glite-wms-job-status Success =====================
BOOKKEEPING INFORMATION:

Status info for the Job : https://emi-demo11.cnaf.infn.it:9000/2b2lTYV75wO2Zx4z34gIWg
Current Status:     Scheduled 
Status Reason:      Job successfully submitted to Globus
Destination:        grid-ce.lns.infn.it:2119/jobmanager-lcgpbs-cert
Submitted:          Wed Mar 28 12:09:33 2012 CEST
==========================================================================
OK: Jobs processed - 1
OK: Jobs processed - 1
[Scheduled] : 1|jobs_processed=1;; DONE=0;; RUNNING=0;; SCHEDULED=1;; SUBMITTED=0;; READY=0;; WAITING=0;; ABORTED=0;; CANCELLED=0;; CLEARED=0;; MISSED=0;; UNDETERMINED=0;; unknown=0;1;2
[capannini@cert-17 ~]$ /usr/libexec/grid-monitoring/probes/emi.wms/WMS-probe --vo dteam -x /tmp/x509up_u504 -H emi-demo11.cnaf.infn.it -m emi.wms.WMS-JobState
OK: Active job - Scheduled [2012-03-28T10:10:04Z]
OK: Active job - Scheduled [2012-03-28T10:10:04Z]
Testing from: cert-17.cnaf.infn.it
DN: /C=IT/O=INFN/OU=Personal Certificate/L=CNAF/CN=Fabio Capannini/CN=proxy
VOMS FQANs: /dteam/Role=NULL/Capability=NULL, /dteam/NGI_IT/Role=NULL/Capability=NULL
Active job - Scheduled [2012-03-28T10:10:04Z]
[capannini@cert-17 ~]$ 
[capannini@cert-17 ~]$ 
[capannini@cert-17 ~]$ /usr/libexec/grid-monitoring/probes/emi.wms/WMS-probe --vo dteam -x /tmp/x509up_u504 -H emi-demo11.cnaf.infn.it -m emi.wms.WMS-JobState
OK: Active job - Scheduled [2012-03-28T10:10:04Z]
OK: Active job - Scheduled [2012-03-28T10:10:04Z]
Testing from: cert-17.cnaf.infn.it
DN: /C=IT/O=INFN/OU=Personal Certificate/L=CNAF/CN=Fabio Capannini/CN=proxy
VOMS FQANs: /dteam/Role=NULL/Capability=NULL, /dteam/NGI_IT/Role=NULL/Capability=NULL
Active job - Scheduled [2012-03-28T10:10:04Z]

[capannini@cert-17 ~]$ /usr/libexec/grid-monitoring/probes/emi.wms/WMS-probe --vo dteam -x /tmp/x509up_u504 -H emi-demo11.cnaf.infn.it -m emi.wms.WMS-JobState
OK: Active job - Running [2012-03-28T10:26:18Z]
OK: Active job - Running [2012-03-28T10:26:18Z]
Testing from: cert-17.cnaf.infn.it
DN: /C=IT/O=INFN/OU=Personal Certificate/L=CNAF/CN=Fabio Capannini/CN=proxy
VOMS FQANs: /dteam/Role=NULL/Capability=NULL, /dteam/NGI_IT/Role=NULL/Capability=NULL
Active job - Running [2012-03-28T10:26:18Z]

  FabioCapannini - 2012-03-15

 
This site is powered by the TWiki collaboration platformCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback