aboutsummaryrefslogtreecommitdiffstats
path: root/node-admin/src
diff options
context:
space:
mode:
authorfreva <valerijf@yahoo-inc.com>2016-12-19 15:57:30 +0100
committerfreva <valerijf@yahoo-inc.com>2016-12-19 15:57:30 +0100
commit14b34d034abe67003f7c4e1d6123675f6586df1b (patch)
treeb139648d0a7f0cede1153bdda67f35f7ab5f01c6 /node-admin/src
parent219ee47a0c84b9a0051c56a6eb3fa7876b3f2e19 (diff)
Set kernel.core_pattern in node-admin
Diffstat (limited to 'node-admin/src')
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/provider/ComponentsProviderImpl.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/provider/ComponentsProviderImpl.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/provider/ComponentsProviderImpl.java
index 9918824c7f2..2c5d2d3aa93 100644
--- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/provider/ComponentsProviderImpl.java
+++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/provider/ComponentsProviderImpl.java
@@ -75,7 +75,10 @@ public class ComponentsProviderImpl implements ComponentsProvider {
new Environment(),
config.isRunningLocally() ? Optional.empty() : Optional.of(new StorageMaintainer(new Environment())));
- if (! config.isRunningLocally()) initializeNodeAgentSecretAgent(docker);
+ if (! config.isRunningLocally()) {
+ setCorePattern(docker);
+ initializeNodeAgentSecretAgent(docker);
+ }
}
@Override
@@ -89,6 +92,11 @@ public class ComponentsProviderImpl implements ComponentsProvider {
}
+ private void setCorePattern(Docker docker) {
+ ContainerName nodeAdminName = new ContainerName("node-admin");
+ docker.executeInContainer(nodeAdminName, Defaults.getDefaults().underVespaHome("bin/vespa-yinst-post-activate.sh"));
+ }
+
private void initializeNodeAgentSecretAgent(Docker docker) {
final Path yamasAgentFolder = Paths.get("/etc/yamas-agent/");
ContainerName nodeAdminName = new ContainerName("node-admin");