Package ganeti :: Module bdev :: Class DRBD8Status
[hide private]
[frames] | no frames]

Class DRBD8Status

source code


A DRBD status representation class.

Note that this doesn't support unconfigured devices (cs:Unconfigured).

Instance Methods [hide private]
 
__init__(self, procline)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  UNCONF_RE = re.compile(r"\s*[0-9]+:\s*cs:Unconfigured$")
  LINE_RE = re.compile(r"\s*[0-9]+:\s*cs:(\S+)\s+(?:st|ro):([^/]...
  SYNC_RE = re.compile(r"^.*\ssync'ed:\s*([0-9.]+)%.*" "(?:\s|M)...
  CS_UNCONFIGURED = "Unconfigured"
  CS_STANDALONE = "StandAlone"
  CS_WFCONNECTION = "WFConnection"
  CS_WFREPORTPARAMS = "WFReportParams"
  CS_CONNECTED = "Connected"
  CS_STARTINGSYNCS = "StartingSyncS"
  CS_STARTINGSYNCT = "StartingSyncT"
  CS_WFBITMAPS = "WFBitMapS"
  CS_WFBITMAPT = "WFBitMapT"
  CS_WFSYNCUUID = "WFSyncUUID"
  CS_SYNCSOURCE = "SyncSource"
  CS_SYNCTARGET = "SyncTarget"
  CS_PAUSEDSYNCS = "PausedSyncS"
  CS_PAUSEDSYNCT = "PausedSyncT"
  CSET_SYNC = frozenset([CS_WFREPORTPARAMS, CS_STARTINGSYNCS, CS...
  DS_DISKLESS = "Diskless"
  DS_ATTACHING = "Attaching"
  DS_FAILED = "Failed"
  DS_NEGOTIATING = "Negotiating"
  DS_INCONSISTENT = "Inconsistent"
  DS_OUTDATED = "Outdated"
  DS_DUNKNOWN = "DUnknown"
  DS_CONSISTENT = "Consistent"
  DS_UPTODATE = "UpToDate"
  RO_PRIMARY = "Primary"
  RO_SECONDARY = "Secondary"
  RO_UNKNOWN = "Unknown"
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, procline)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

LINE_RE

Value:
re.compile(r"\s*[0-9]+:\s*cs:(\S+)\s+(?:st|ro):([^/]+)/(\S+)" "\s+ds:(\
[^/]+)/(\S+)\s+.*$")

SYNC_RE

Value:
re.compile(r"^.*\ssync'ed:\s*([0-9.]+)%.*" "(?:\s|M)" "finish: ([0-9]+\
):([0-9]+):([0-9]+)\s.*$")

CSET_SYNC

Value:
frozenset([CS_WFREPORTPARAMS, CS_STARTINGSYNCS, CS_STARTINGSYNCT, CS_W\
FBITMAPS, CS_WFBITMAPT, CS_WFSYNCUUID, CS_SYNCSOURCE, CS_SYNCTARGET, C\
S_PAUSEDSYNCS, CS_PAUSEDSYNCT,])