DaanHoogland commented on issue #3572: Removing, then adding kvm agent again 
occasionally fails
URL: https://github.com/apache/cloudstack/issues/3572#issuecomment-525621153
 
 
   diag on this:
    in <prj-root>/python/lib/cloudutils/utilities.py,
     in the class ```serviceOpsRedhat7```,
      in method ```isServiceRunning(self, servicename)```,
    the service is checked by queriying the stdout of ```bash("systemctl 
is-active " + servicename)```.
    I'd rather have it check for the result instead of doing a textual check 
but haven't gotten this to work yet. Also I don't if and when the output 
changed during the EL7 lifecycle so my solution would be to check for both 
possible texts: ```"inactive"``` or ```"failed"```.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to