]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
orchestra/daemon/cephadmunit.py: set is_started in start() 1930/head
authorVallari Agrawal <val.agl002@gmail.com>
Thu, 28 Mar 2024 08:32:55 +0000 (14:02 +0530)
committerVallari Agrawal <val.agl002@gmail.com>
Thu, 28 Mar 2024 08:32:55 +0000 (14:02 +0530)
In CephadmUnit.start() method, `is_started` isn't set to
true. When running() is called after start(), then it would
return false, which is not correct since the daemon has been
started by calling start().
This commit fixes that issue.

Signed-off-by: Vallari Agrawal <val.agl002@gmail.com>
teuthology/orchestra/daemon/cephadmunit.py

index 57e50465921eedb14f320c835315b2fb105fc92c..7b10f819fa85b0e96f46326e50d210744e37830f 100644 (file)
@@ -137,6 +137,7 @@ class CephadmUnit(DaemonState):
             return
         self._start_logger()
         self.remote.run(args=self.start_cmd)
+        self.is_started = True
 
     def stop(self, timeout=300):
         """