if proc.exitstatus == 0:
break
elif (proc.exitstatus == 1 and
- proc.stderr.getvalue() == "OSD has the store locked"):
+ six.ensure_str(proc.stderr.getvalue()) == "OSD has the store locked"):
continue
else:
raise Exception("ceph-objectstore-tool: "
])
if proc.exitstatus == 1:
bogosity = "The OSD you are using is older than the exported PG"
- if bogosity in proc.stderr.getvalue():
+ if bogosity in six.ensure_str(proc.stderr.getvalue()):
self.log("OSD older than exported PG"
"...ignored")
elif proc.exitstatus == 10:
+ " --op apply-layout-settings --pool " + pool).format(id=osd)
proc = imp_remote.run(args=cmd,
wait=True, check_status=False,
- stderr=StringIO())
- if 'Couldn\'t find pool' in proc.stderr.getvalue():
+ stderr=BytesIO)
+ if 'Couldn\'t find pool' in six.ensure_str(proc.stderr.getvalue()):
continue
if proc.exitstatus:
raise Exception("ceph-objectstore-tool apply-layout-settings"