lightbend / cloudflow

Cloudflow enables users to quickly develop, orchestrate, and operate distributed streaming applications on Kubernetes.

Home Page:https://cloudflow.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configure command breaks akka server streamlets

Fattouh92 opened this issue · comments

Describe the bug
Cloudflow version: 2.2.2

using configure beaks akka server streamlets with the following exception

Exception in thread "main" com.typesafe.config.ConfigException$Missing: merge of /etc/cloudflow-runner-secret/secret.conf: 1,/etc/cloudflow-runner-secret/application.conf: 1,reference.conf @ jar:file:/opt/cloudflow/cloudflow-runner_2.12-2.2.2.jar!/reference.conf: 1,reference.conf @ jar:file:/opt/cloudflow/cloudflow-akka_2.12-2.2.2.jar!/reference.conf: 12,String: 2: No configuration setting found for key 'cloudflow.internal'
    at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:157)
    at com.typesafe.config.impl.SimpleConfig.findKey(SimpleConfig.java:150)
    at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:177)
    at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:181)
    at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:189)
    at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:194)
    at com.typesafe.config.impl.SimpleConfig.getConfigNumber(SimpleConfig.java:224)
    at com.typesafe.config.impl.SimpleConfig.getInt(SimpleConfig.java:235)
    at cloudflow.streamlets.ServerAttribute$.containerPort(ServerAttribute.scala:30)
    at cloudflow.akkastream.Server.containerPort(AkkaServerStreamlet.scala:42)
    at cloudflow.akkastream.Server.containerPort$(AkkaServerStreamlet.scala:42)
    at cloudflow.akkastream.AkkaServerStreamlet.containerPort(AkkaServerStreamlet.scala:29)
    at cloudflow.akkastream.ServerStreamletLogic.containerPort(ServerStreamletLogic.scala:28)
    at cloudflow.akkastream.util.scaladsl.HttpServerLogic.run(HttpServerLogic.scala:166)
    at cloudflow.akkastream.AkkaStreamlet.run(AkkaStreamlet.scala:93)
    at cloudflow.akkastream.AkkaStreamlet.run(AkkaStreamlet.scala:37)
    at cloudflow.streamlets.Streamlet.run(Streamlet.scala:107)
    at cloudflow.runner.Runner$.run(Runner.scala:67)
    at cloudflow.runner.Runner$.main(Runner.scala:45)
    at cloudflow.runner.Runner.main(Runner.scala)

we use it in this way kubectl cloudflow configure --conf --conf --logback-config logback.xml

To Reproduce

  1. kubectl cloudflow deploy release --no-registry-credentials --conf --logback-config
  2. app is healthy and logs should be okay
  3. change any streamlet/akka config tracked in the conf file
  4. kubectl cloudflow configure --conf --logback-config
  5. server pods throw the exception

Expected behavior
Using configure command does not break akka server streamlets

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.