Deck doesn't show instance status correctly
ecs
debian local install
spinnaker 1.20.0
ECS/fargate with service discovery enabled
spinnaker/deck
When deploying ECS cluster with Service Discovery enabled, UP status is reported incorrectly in deck.
Starting and Down are reported correctly
Starting:

UP (cluster/instance is green):

Enable service discovery for ECS service
@awsiv thanks for reporting this issue. This issue arises from https://github.com/spinnaker/clouddriver/blob/master/clouddriver-ecs/src/main/java/com/netflix/spinnaker/clouddriver/ecs/services/ContainerInformationService.java#L153-L154, in which the platformHealthState is set to unknown when the task status is Running.
We can make a change to update the behaviour to another status such as RUNNING but, we will need to investigate further to understand what(if any) the repercussions might be if we update the state to be something different. For instance, if Orca and/or any other Spinnaker services are expecting unknown in order to mark a deployment/task as successfully running.
Most helpful comment
@awsiv thanks for reporting this issue. This issue arises from https://github.com/spinnaker/clouddriver/blob/master/clouddriver-ecs/src/main/java/com/netflix/spinnaker/clouddriver/ecs/services/ContainerInformationService.java#L153-L154, in which the platformHealthState is set to unknown when the task status is Running.
We can make a change to update the behaviour to another status such as
RUNNINGbut, we will need to investigate further to understand what(if any) the repercussions might be if we update the state to be something different. For instance, if Orca and/or any other Spinnaker services are expecting unknown in order to mark a deployment/task as successfully running.