aboutsummaryrefslogtreecommitdiffstats
path: root/node-admin
diff options
context:
space:
mode:
authorvalerijf <valerijf@yahoo-inc.com>2017-05-02 12:22:45 +0200
committervalerijf <valerijf@yahoo-inc.com>2017-05-02 12:22:45 +0200
commit9a1cd10157073ae83e0cf412054e1dd36d9c748e (patch)
tree24914bdaeb50e8fe4ffb628a7568bada345b9371 /node-admin
parent0f646f10b377b90fc37e9911f9fe383d112ff157 (diff)
Log containerState and isFrozen transitions
Diffstat (limited to 'node-admin')
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java
index 556c8c9f307..beaeab83200 100644
--- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java
+++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java
@@ -120,6 +120,7 @@ public class NodeAgentImpl implements NodeAgent {
lastCpuMetric = new CpuUsageReporter(container.created);
}
containerState = RUNNING_HOWEVER_RESUME_SCRIPT_NOT_RUN;
+ logger.info("Container is already running, setting containerState to " + containerState);
});
}
@@ -269,6 +270,7 @@ public class NodeAgentImpl implements NodeAgent {
addDebugMessage("startContainerIfNeeded: containerState " + containerState + " -> " +
RUNNING_HOWEVER_RESUME_SCRIPT_NOT_RUN);
containerState = RUNNING_HOWEVER_RESUME_SCRIPT_NOT_RUN;
+ logger.info("Container successfully started, new containerState is " + containerState);
}
}
@@ -347,6 +349,7 @@ public class NodeAgentImpl implements NodeAgent {
dockerOperations.removeContainer(existingContainer.get());
metricReceiver.unsetMetricsForContainer(hostname);
containerState = ABSENT;
+ logger.info("Container successfully removed, new containerState is " + containerState);
return Optional.empty();
}
return existingContainer;
@@ -395,6 +398,7 @@ public class NodeAgentImpl implements NodeAgent {
if (isFrozen != wantFrozen) {
isFrozen = wantFrozen;
+ logger.info("Updated NodeAgent's frozen state, new value: isFrozen: " + isFrozen);
}
isFrozenCopy = isFrozen;
}