Loading ccnode/drbd.py +4 −4 Original line number Diff line number Diff line Loading @@ -146,7 +146,7 @@ class DRBD(object): def get_port(self): ''' ''' return 7788 + self._minor return 7788 + self._minor # FIXME magic number def get_path(self): ''' Loading Loading @@ -244,7 +244,7 @@ class DRBD(object): if rc != 0: raise DRBDError('failed to initiate connection to remote node,' ' local port may already be in use') # seems to be mandatory # FIXME magic sleep seems to be mandatory sleep(0.5) # force sync rate rc = Exec.silent([self.DRBDSETUP, Loading Loading @@ -302,7 +302,7 @@ class DRBD(object): str(timeout), '-o', str(timeout)]) # seems to be mandatory # FIXME magic sleep, seems to be mandatory sleep(0.5) try: if rc != 0 or self.status()['conn'] != self.CSTATES.CONNECTED: Loading @@ -318,7 +318,7 @@ class DRBD(object): rc = Exec.silent([self.DRBDSETUP, self._path, 'wait-sync']) # seems to be mandatory # FIXME magic sleep, seems to be mandatory sleep(0.5) status = self.status() print status, self.DSTATES.UP_TO_DATE_str Loading Loading
ccnode/drbd.py +4 −4 Original line number Diff line number Diff line Loading @@ -146,7 +146,7 @@ class DRBD(object): def get_port(self): ''' ''' return 7788 + self._minor return 7788 + self._minor # FIXME magic number def get_path(self): ''' Loading Loading @@ -244,7 +244,7 @@ class DRBD(object): if rc != 0: raise DRBDError('failed to initiate connection to remote node,' ' local port may already be in use') # seems to be mandatory # FIXME magic sleep seems to be mandatory sleep(0.5) # force sync rate rc = Exec.silent([self.DRBDSETUP, Loading Loading @@ -302,7 +302,7 @@ class DRBD(object): str(timeout), '-o', str(timeout)]) # seems to be mandatory # FIXME magic sleep, seems to be mandatory sleep(0.5) try: if rc != 0 or self.status()['conn'] != self.CSTATES.CONNECTED: Loading @@ -318,7 +318,7 @@ class DRBD(object): rc = Exec.silent([self.DRBDSETUP, self._path, 'wait-sync']) # seems to be mandatory # FIXME magic sleep, seems to be mandatory sleep(0.5) status = self.status() print status, self.DSTATES.UP_TO_DATE_str Loading