From 08dc7565498cefa7519957c09d71834c79c491cc Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Mon, 14 Jun 2021 17:13:22 -0400 Subject: [PATCH] Actually disable the pvcapid service Prevents it from trying to start itself during updates or reboots on non-primary coordinators. --- node-daemon/pvcnoded/NodeInstance.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node-daemon/pvcnoded/NodeInstance.py b/node-daemon/pvcnoded/NodeInstance.py index 4172f6fb..9cc0c897 100644 --- a/node-daemon/pvcnoded/NodeInstance.py +++ b/node-daemon/pvcnoded/NodeInstance.py @@ -503,6 +503,7 @@ class NodeInstance(object): # 6. Start client API (and provisioner worker) if self.config['enable_api']: self.logger.out('Starting PVC API client service', state='i') + common.run_os_command("systemctl enable pvcapid.service") common.run_os_command("systemctl start pvcapid.service") self.logger.out('Starting PVC Provisioner Worker service', state='i') common.run_os_command("systemctl start pvcapid-worker.service") @@ -567,6 +568,7 @@ class NodeInstance(object): if self.config['enable_api']: self.logger.out('Stopping PVC API client service', state='i') common.run_os_command("systemctl stop pvcapid.service") + common.run_os_command("systemctl disable pvcapid.service") # 4. Stop metadata API self.metadata_api.stop() time.sleep(0.1) # Time fir new writer to acquire the lock