DIRACGrid/DIRAC — Issue #413: Core.LCG.GOCDBClient returns downtimes in the past
Author: ubeda
Created: 2012-01-11 14:29:52+00:00
State: open

Not a very big deal, but not desirable at all

>>> from datetime import datetime
>>> datetime.utcnow()
datetime.datetime(2012, 1, 11, 14, 27, 54, 566431)
>>> from DIRAC.Core.LCG.GOCDBClient import GOCDBClient
>>> g = GOCDBClient()
>>> g.getStatus( 'Resource', 'cream01-iber.bifi.unizar.es', None, 120 )
{'OK': True, 'Value': {'53878G0 cream01-iber.bifi.unizar.es': {'HOSTED_BY': 'BIFI-IBERGRID', 'DESCRIPTION': 'Power outage at University', 'SEVERITY': 'WARNING', 'HOSTNAME': 'cream01-iber.bifi.unizar.es', 'GOCDB_PORTAL_URL': 'https://goc.egi.eu/portal/index.php?Page_Type=View_Object&object_id=102560&grid_id=0', 'FORMATED_END_DATE': '2012-01-11 10:40', 'FORMATED_START_DATE': '2012-01-11 09:30'}}}