From 6a076046060943ddb62dfbb5e3ab168fbbc7fae8 Mon Sep 17 00:00:00 2001 From: Paul Cuzner Date: Thu, 14 Jan 2021 10:49:24 +1300 Subject: [PATCH] mgr/orchestrator: ensure appley spec honors maintenance mode Add the status field to the definition of the host to ensure an apply_spec honours hosts that should be defined in maintenance during a bootstrap based deployment. Signed-off-by: Paul Cuzner --- src/python-common/ceph/deployment/hostspec.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python-common/ceph/deployment/hostspec.py b/src/python-common/ceph/deployment/hostspec.py index 8fc122531ebb4..c5ab864182f86 100644 --- a/src/python-common/ceph/deployment/hostspec.py +++ b/src/python-common/ceph/deployment/hostspec.py @@ -40,7 +40,8 @@ class HostSpec(object): def from_json(cls, host_spec): _cls = cls(host_spec['hostname'], host_spec['addr'] if 'addr' in host_spec else None, - host_spec['labels'] if 'labels' in host_spec else None) + host_spec['labels'] if 'labels' in host_spec else None, + host_spec['status'] if 'status' in host_spec else None) return _cls def __repr__(self): -- 2.39.5