import logging
import os
import six
-import string
import sys
import tempfile
import time
log.debug(remote)
log.debug(osds.remotes[remote])
for role in osds.remotes[remote]:
- if string.find(role, "osd.") != 0:
+ if not role.startswith("osd."):
continue
osdid = int(role.split('.')[1])
log.info("process osd.{id} on {remote}".
for remote in osds.remotes.keys():
for role in osds.remotes[remote]:
- if string.find(role, "osd.") != 0:
+ if not role.startswith("osd."):
continue
osdid = int(role.split('.')[1])
if osdid not in pgs:
for remote in osds.remotes.keys():
for role in osds.remotes[remote]:
- if string.find(role, "osd.") != 0:
+ if not role.startswith("osd."):
continue
osdid = int(role.split('.')[1])
if osdid not in pgs:
log.info("Test pg info")
for remote in osds.remotes.keys():
for role in osds.remotes[remote]:
- if string.find(role, "osd.") != 0:
+ if not role.startswith("osd."):
continue
osdid = int(role.split('.')[1])
if osdid not in pgs:
log.info("Test pg logging")
for remote in osds.remotes.keys():
for role in osds.remotes[remote]:
- if string.find(role, "osd.") != 0:
+ if not role.startswith("osd."):
continue
osdid = int(role.split('.')[1])
if osdid not in pgs:
EXP_ERRORS = 0
for remote in osds.remotes.keys():
for role in osds.remotes[remote]:
- if string.find(role, "osd.") != 0:
+ if not role.startswith("osd."):
continue
osdid = int(role.split('.')[1])
if osdid not in pgs:
RM_ERRORS = 0
for remote in osds.remotes.keys():
for role in osds.remotes[remote]:
- if string.find(role, "osd.") != 0:
+ if not role.startswith("osd."):
continue
osdid = int(role.split('.')[1])
if osdid not in pgs:
for remote in osds.remotes.keys():
for role in osds.remotes[remote]:
- if string.find(role, "osd.") != 0:
+ if not role.startswith("osd."):
continue
osdid = int(role.split('.')[1])
if osdid not in pgs: