Skip to content

Commit

Permalink
Merge pull request opensvc#670 from cvaroqui/b2.1
Browse files Browse the repository at this point in the history
Fix the zvol create options order
  • Loading branch information
cgalibern authored Oct 21, 2024
2 parents 17db875 + d6fe39e commit 53a5054
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions opensvc/daemon/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2646,6 +2646,7 @@ def leader_first(self, svc, provisioned=False, deleted=None, silent=False):
candidates = self.placement_candidates(
svc, discard_frozen=False,
discard_unprovisioned=False,
discard_overloaded=False,
)
try:
top = self.placement_ranks(svc, candidates=candidates)[0]
Expand Down
4 changes: 2 additions & 2 deletions opensvc/drivers/resource/disk/zvol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ def provisioner(self):
if self.has_it():
self.log.info("zvol %s already exists", self.name)
return
cmd = [Env.syspaths.zfs, "create", "-V"]
cmd = [Env.syspaths.zfs, "create"]
cmd += self.create_options
cmd += [str(convert_size(self.size, _to="m"))+'M', self.name]
cmd += ["-V", str(convert_size(self.size, _to="m"))+'M', self.name]
ret, out, err = self.vcall(cmd)
if ret != 0:
raise ex.Error
Expand Down

0 comments on commit 53a5054

Please sign in to comment.