Merge "Disable ceph-mon resize operation for AIO-DX"
This commit is contained in:
commit
63798939c1
|
@ -308,7 +308,13 @@ class CephMonController(rest.RestController):
|
||||||
if rpc_cephmon.ceph_mon_gib != p['value']:
|
if rpc_cephmon.ceph_mon_gib != p['value']:
|
||||||
is_ceph_mon_gib_changed = True
|
is_ceph_mon_gib_changed = True
|
||||||
|
|
||||||
if not is_ceph_mon_gib_changed:
|
# TODO This should be removed after resize operation is supported in AIO-DX systems
|
||||||
|
if is_ceph_mon_gib_changed and cutils.is_aio_duplex_system(pecan.request.dbapi):
|
||||||
|
raise exception.CephCommandUnsupported(
|
||||||
|
_("Resize of ceph monitor is not allowed in duplex system.")
|
||||||
|
)
|
||||||
|
|
||||||
|
elif not is_ceph_mon_gib_changed:
|
||||||
LOG.info("ceph_mon parameters are not changed")
|
LOG.info("ceph_mon parameters are not changed")
|
||||||
raise wsme.exc.ClientSideError(
|
raise wsme.exc.ClientSideError(
|
||||||
_("Warning: ceph_mon parameters are not changed."))
|
_("Warning: ceph_mon parameters are not changed."))
|
||||||
|
|
|
@ -235,6 +235,11 @@ class CephPoolSetParamFailure(CephFailure):
|
||||||
"Reason: %(reason)s")
|
"Reason: %(reason)s")
|
||||||
|
|
||||||
|
|
||||||
|
class CephCommandUnsupported(CephFailure):
|
||||||
|
# 503 means service unavailable which seems appropriate for commands that are unsupported
|
||||||
|
code = 503
|
||||||
|
|
||||||
|
|
||||||
class InvalidCPUInfo(Invalid):
|
class InvalidCPUInfo(Invalid):
|
||||||
message = _("Unacceptable CPU info") + ": %(reason)s"
|
message = _("Unacceptable CPU info") + ": %(reason)s"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue