Fix linting errors F522/F523 unused args
This commit is contained in:
@ -136,7 +136,7 @@ class CephOSDInstance(object):
|
||||
)
|
||||
retcode, stdout, stderr = common.run_os_command(
|
||||
"ceph-volume lvm prepare --bluestore {devices}".format(
|
||||
osdid=osd_id, devices=dev_flags
|
||||
devices=dev_flags
|
||||
)
|
||||
)
|
||||
if retcode:
|
||||
@ -150,7 +150,7 @@ class CephOSDInstance(object):
|
||||
"Getting OSD FSID for ID {} on {}".format(osd_id, device), state="i"
|
||||
)
|
||||
retcode, stdout, stderr = common.run_os_command(
|
||||
"ceph-volume lvm list {device}".format(osdid=osd_id, device=device)
|
||||
"ceph-volume lvm list {device}".format(device=device)
|
||||
)
|
||||
for line in stdout.split("\n"):
|
||||
if "osd fsid" in line:
|
||||
@ -165,7 +165,7 @@ class CephOSDInstance(object):
|
||||
|
||||
# 4b. Activate the OSD
|
||||
logger.out(
|
||||
"Activating new OSD disk with ID {}".format(osd_id, device), state="i"
|
||||
"Activating new OSD disk with ID {}".format(osd_id), state="i"
|
||||
)
|
||||
retcode, stdout, stderr = common.run_os_command(
|
||||
"ceph-volume lvm activate --bluestore {osdid} {osdfsid}".format(
|
||||
|
@ -204,9 +204,7 @@ class NodeInstance(object):
|
||||
# Stop any existing flush jobs
|
||||
if self.flush_thread is not None:
|
||||
self.logger.out(
|
||||
"Waiting for previous migration to complete".format(
|
||||
self.name
|
||||
),
|
||||
"Waiting for previous migration to complete",
|
||||
state="i",
|
||||
)
|
||||
self.flush_stopper = True
|
||||
@ -758,7 +756,7 @@ class NodeInstance(object):
|
||||
for dom_uuid in fixed_domain_list:
|
||||
# Allow us to cancel the operation
|
||||
if self.flush_stopper:
|
||||
self.logger.out("Aborting node flush".format(self.name), state="i")
|
||||
self.logger.out("Aborting node flush", state="i")
|
||||
self.flush_event.set()
|
||||
self.flush_thread = None
|
||||
self.flush_stopper = False
|
||||
@ -838,7 +836,7 @@ class NodeInstance(object):
|
||||
for dom_uuid in fixed_domain_list:
|
||||
# Allow us to cancel the operation
|
||||
if self.flush_stopper:
|
||||
self.logger.out("Aborting node unflush".format(self.name), state="i")
|
||||
self.logger.out("Aborting node unflush", state="i")
|
||||
self.flush_event.set()
|
||||
self.flush_thread = None
|
||||
self.flush_stopper = False
|
||||
|
@ -1004,8 +1004,9 @@ class VMInstance(object):
|
||||
):
|
||||
logger.out(
|
||||
"RBD lock does not belong to this host (lock owner: {}): freeing this lock would be unsafe, aborting".format(
|
||||
lock["address"].split(":")[0], state="e"
|
||||
)
|
||||
lock["address"].split(":")[0]
|
||||
),
|
||||
state="e"
|
||||
)
|
||||
zkhandler.write(
|
||||
[
|
||||
|
Reference in New Issue
Block a user