diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2020-02-27 09:55:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 09:55:14 +0100 |
commit | 21633fe730cfae3be804bdfab9d11ff3416d526e (patch) | |
tree | 00073bc44c8f6452ed504af5d91857e67e391eb8 /controller-server | |
parent | 3dd2111ecc678769557588f6ed5885ffb0cdecc9 (diff) | |
parent | a3efe2cbe2696df0ce8a610304cd67cb9cbf6923 (diff) |
Merge pull request #12354 from vespa-engine/jvenstad/print-nodes-which-need-new-config-during-installation-step
Print nodes with services which need new config as well
Diffstat (limited to 'controller-server')
3 files changed, 92 insertions, 2 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java index 927ebca67ec..cd1d7796098 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java @@ -398,7 +398,8 @@ public class InternalStepRunner implements StepRunner { } if ( ! firstTick) - logger.log(nodeList.expectedDown().asList().stream() + logger.log(nodeList.expectedDown().concat(nodeList.needsNewConfig()).asList().stream() + .distinct() .flatMap(node -> nodeDetails(node, false)) .collect(toList())); diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/NodeWithServices.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/NodeWithServices.java index 80c1fe0f40b..e3cebfad31c 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/NodeWithServices.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/NodeWithServices.java @@ -6,6 +6,7 @@ import com.yahoo.vespa.hosted.controller.api.integration.configserver.ServiceCon import java.time.Instant; import java.util.List; +import java.util.Objects; import static java.util.Objects.requireNonNull; @@ -79,4 +80,17 @@ public class NodeWithServices { return services.stream().anyMatch(service -> wantedConfigGeneration > service.currentGeneration()); } + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + NodeWithServices that = (NodeWithServices) o; + return node.equals(that.node); + } + + @Override + public int hashCode() { + return Objects.hash(node); + } + } diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/responses/system-test-details.json b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/responses/system-test-details.json index 9e7eeba8420..6db83522c26 100644 --- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/responses/system-test-details.json +++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/restapi/application/responses/system-test-details.json @@ -127,6 +127,81 @@ { "at": "(ignore)", "type": "info", + "message": "host-tenant1:application1:instance1-test.us-east-1: unorchestrated" + }, + { + "at": "(ignore)", + "type": "info", + "message": "--- platform 6.1" + }, + { + "at": "(ignore)", + "type": "info", + "message": "--- container on port 43 has config generation 1, wanted is 2" + }, + { + "at": "(ignore)", + "type": "info", + "message": "host-tenant1:application1:instance1-test.us-east-1: unorchestrated" + }, + { + "at": "(ignore)", + "type": "info", + "message": "--- platform 6.1" + }, + { + "at": "(ignore)", + "type": "info", + "message": "--- container on port 43 has config generation 1, wanted is 2" + }, + { + "at": "(ignore)", + "type": "info", + "message": "host-tenant1:application1:instance1-test.us-east-1: unorchestrated" + }, + { + "at": "(ignore)", + "type": "info", + "message": "--- platform 6.1" + }, + { + "at": "(ignore)", + "type": "info", + "message": "--- container on port 43 has config generation 1, wanted is 2" + }, + { + "at": "(ignore)", + "type": "info", + "message": "host-tenant1:application1:instance1-test.us-east-1: unorchestrated" + }, + { + "at": "(ignore)", + "type": "info", + "message": "--- platform 6.1" + }, + { + "at": "(ignore)", + "type": "info", + "message": "--- container on port 43 has config generation 1, wanted is 2" + }, + { + "at": "(ignore)", + "type": "info", + "message": "host-tenant1:application1:instance1-test.us-east-1: unorchestrated" + }, + { + "at": "(ignore)", + "type": "info", + "message": "--- platform 6.1" + }, + { + "at": "(ignore)", + "type": "info", + "message": "--- container on port 43 has config generation 1, wanted is 2" + }, + { + "at": "(ignore)", + "type": "info", "message": "Found endpoints:" }, { @@ -194,7 +269,7 @@ } ] }, - "lastId": 34, + "lastId": 49, "steps": { "deployTester": { "status": "succeeded", |