wiki:GENIRacksHome/ExogeniRacks/AcceptanceTestStatus/EG-MON-5

Version 1 (modified by chaos@bbn.com, 7 years ago) (diff)

--

Detailed test plan for EG-MON-5: GMOC Data Collection Test

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 GENIRacksHome/ExogeniRacks/AcceptanceTestStatus for the current status of ExoGENI acceptance tests.

Last substantive edit of this page: 2013-02-26

Status of test

Step State Date completed Open Tickets Closed Tickets/Comments

High-level description from test plan

This test verifies the rack's submission of monitoring data to GMOC.

Procedure

View the dataset collected at GMOC for the BBN and RENCI ExoGENI racks. For each piece of required data, attempt to verify that:

  • The data is being collected and accepted by GMOC and can be viewed at gmoc-db.grnoc.iu.edu
  • 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).
  • The data has been reported within the past 10 minutes.
  • 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.

Verify that the following pieces of data are being reported:

  • Is each of the rack ExoGENI and FOAM AMs reachable via the GENI AM API right now?
  • Is each compute or unbound VLAN resource at each rack AM online? Is it available or in use?
  • Sliver count and percentage of compute and unbound VLAN resources in use for the rack SM.
  • Identities of current slivers on each rack AM, including creation time for each.
  • Per-sliver interface counters for compute and VLAN resources (where these values can be easily collected).
  • Is the rack data plane switch online?
  • Interface counters and VLAN memberships for each rack data plane switch interface
  • MAC address table contents for shared VLANs which appear on rack data plane switches
  • Is each rack worker node online?
  • 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.
  • For each rack worker node configured as an OpenStack VM server, interface counters for each data plane interface.
  • Results of at least one end-to-end health check which simulates an experimenter reserving and using at least one resource in the rack.

Verify 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.

Step 1: download all recent GMOC data for examination

Step 1A: download GMOC relational data objects for BBN and RCI racks

Within a python shell on a node which has gmoc.py installed and configured with a valid submission username:

import sys
sys.path.append('/usr/local/lib')
import gmoc
import gmoc_config

config = gmoc_config.read_config_file()
obsolete_url_suffix = 'xchange/webservice.pl'
serviceurl = config['GMOC_REL_URL']
if serviceurl.endswith(obsolete_url_suffix):
  serviceurl = serviceurl[:-1 * (len(obsolete_url_suffix))]

f = open(config['PASSWD_FILE'])
gmoc_passwd = f.readline().strip()
f.close()

client = gmoc.GMOCClient(
           serviceURL = serviceurl,
           username = config['SITENAME'],
           password = gmoc_passwd,
         )

bbnxo = client.load(gmoc.Aggregate('bbn-hn.exogeni.net:11443'))
rcixo = client.load(gmoc.Aggregate('rci-hn.exogeni.net:11443'))
bbnfoam = client.load(gmoc.Aggregate('bbn-hn.exogeni.gpolab.bbn.com:3626'))
rcifoam = client.load(gmoc.Aggregate('rci-hn.exogeni.net:3626'))

This should yield four gmoc.Aggregate objects.

Step 1B: download recent GMOC measurement data as XML

Pretty-print the most recent XML measurement data download from GMOC:

import urllib
from xml.dom import minidom
usock = urllib.urlopen('http://gmoc-db.grnoc.iu.edu/web-services/gen_api.pl')
dom = minidom.parse(usock)
f = open('recent-gmoc.xml', 'w')
f.write('%s\n' % dom.toprettyxml())
f.close()

This should yield an XML file, recent-gmoc.xml.