Changes between Initial Version and Version 1 of GENIRacksHome/ExogeniRacks/AcceptanceTestStatus/EG-MON-5


Ignore:
Timestamp:
02/26/13 20:42:08 (11 years ago)
Author:
chaos@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIRacksHome/ExogeniRacks/AcceptanceTestStatus/EG-MON-5

    v1 v1  
     1= Detailed test plan for EG-MON-5: GMOC Data Collection Test =
     2
     3''This page is GPO's working page for performing EG-MON-5.  It is public for informational purposes, but it is not an official status report.  See [wiki:GENIRacksHome/ExogeniRacks/AcceptanceTestStatus] for the current status of ExoGENI acceptance tests.''
     4
     5''Last substantive edit of this page: 2013-02-26''
     6
     7== Status of test ==
     8
     9|| '''Step''' || '''State'''           || '''Date completed''' || '''Open Tickets''' || '''Closed Tickets/Comments''' ||
     10
     11== High-level description from test plan ==
     12
     13This test verifies the rack's submission of monitoring data to GMOC.
     14
     15=== Procedure ===
     16
     17View the dataset collected at GMOC for the BBN and RENCI ExoGENI racks. For each piece of required data, attempt to verify that:
     18
     19 * The data is being collected and accepted by GMOC and can be viewed at gmoc-db.grnoc.iu.edu
     20 * The data's "site" tag indicates that it is being reported for the rack located at the gpolab or RENCI site (as appropriate for that rack).
     21 * The data has been reported within the past 10 minutes.
     22 * For each piece of data, either verify that it is being collected at least once a minute, or verify that it requires more complicated processing than a simple file read to collect, and thus can be collected less often.
     23
     24Verify that the following pieces of data are being reported:
     25
     26 * Is each of the rack ExoGENI and FOAM AMs reachable via the GENI AM API right now?
     27 * Is each compute or unbound VLAN resource at each rack AM online? Is it available or in use?
     28 * Sliver count and percentage of compute and unbound VLAN resources in use for the rack SM.
     29 * Identities of current slivers on each rack AM, including creation time for each.
     30 * Per-sliver interface counters for compute and VLAN resources (where these values can be easily collected).
     31 * Is the rack data plane switch online?
     32 * Interface counters and VLAN memberships for each rack data plane switch interface
     33 * MAC address table contents for shared VLANs which appear on rack data plane switches
     34 * Is each rack worker node online?
     35 * For each rack worker node configured as an OpenStack VM server, overall CPU, disk, and memory utilization for the host, current VM count and total VM capacity of the host.
     36 * For each rack worker node configured as an OpenStack VM server, interface counters for each data plane interface.
     37 * Results of at least one end-to-end health check which simulates an experimenter reserving and using at least one resource in the rack.
     38
     39Verify that per-rack or per-aggregate summaries are collected of the count of distinct users who have been active on the rack, either by providing raw sliver data containing sliver users to GMOC, or by collecting data locally and producing trending summaries on demand.
     40
     41== Step 1: download all recent GMOC data for examination ==
     42
     43=== Step 1A: download GMOC relational data objects for BBN and RCI racks ===
     44
     45Within a python shell on a node which has gmoc.py installed and configured with a valid submission username:
     46{{{
     47import sys
     48sys.path.append('/usr/local/lib')
     49import gmoc
     50import gmoc_config
     51
     52config = gmoc_config.read_config_file()
     53obsolete_url_suffix = 'xchange/webservice.pl'
     54serviceurl = config['GMOC_REL_URL']
     55if serviceurl.endswith(obsolete_url_suffix):
     56  serviceurl = serviceurl[:-1 * (len(obsolete_url_suffix))]
     57
     58f = open(config['PASSWD_FILE'])
     59gmoc_passwd = f.readline().strip()
     60f.close()
     61
     62client = gmoc.GMOCClient(
     63           serviceURL = serviceurl,
     64           username = config['SITENAME'],
     65           password = gmoc_passwd,
     66         )
     67
     68bbnxo = client.load(gmoc.Aggregate('bbn-hn.exogeni.net:11443'))
     69rcixo = client.load(gmoc.Aggregate('rci-hn.exogeni.net:11443'))
     70bbnfoam = client.load(gmoc.Aggregate('bbn-hn.exogeni.gpolab.bbn.com:3626'))
     71rcifoam = client.load(gmoc.Aggregate('rci-hn.exogeni.net:3626'))
     72}}}
     73This should yield four gmoc.Aggregate objects.
     74
     75=== Step 1B: download recent GMOC measurement data as XML ===
     76
     77Pretty-print the most recent XML measurement data download from GMOC:
     78{{{
     79import urllib
     80from xml.dom import minidom
     81usock = urllib.urlopen('http://gmoc-db.grnoc.iu.edu/web-services/gen_api.pl')
     82dom = minidom.parse(usock)
     83f = open('recent-gmoc.xml', 'w')
     84f.write('%s\n' % dom.toprettyxml())
     85f.close()
     86}}}
     87This should yield an XML file, `recent-gmoc.xml`.