eclipse-tractusx / tutorial-resources

Apache License 2.0
11 stars 23 forks source link

Issues with MXD tutorial setup - Unexpected output results #394

Closed s-damith closed 1 month ago

s-damith commented 1 month ago

Hello,

I tried to set up the Minimum Viable Dataspace following the tutorials, and it showed the expected results as follows.

Screenshot 2024-07-23 at 5 24 31 PM

However, I got the following results instead:

Screenshot 2024-07-23 at 5 25 42 PM

Actually, the result is missing the controlplane and dataplane pods. Could you please let me know if I configured anything incorrectly or if I need to do some extra configurations?

Thanks!

hemantxpatel commented 1 month ago

Hi I just tried with main branch and I can see its working as expected, and kubectl get pods command includes control-plane and data-plane pods.

It looks like terraform apply command might have failed, hence kubectl get pods just returns the pods whose deployment was successful.

Could you please verify if terraform apply command succeeded? In case of success of terraform apply command, you should see an response as below.

Apply complete! Resources: 52 added, 0 changed, 0 destroyed.

Outputs:

alice-database-credentials = {
  "database-host" = "10.96.213.255"
  "database-port" = 5432
  "database-url" = "10.96.213.255:5432"
  "instance-name" = "common"
}
alice-node-ip = "10.96.254.7"
alice-urls = {
  "health" = "http://localhost/alice/health"
  "management" = "http://localhost/alice/management/v2"
  "proxy" = "http://localhost/alice/proxy"
  "public" = "http://localhost/alice/api/public"
}
bob-database-credentials = {
  "database-host" = "10.96.213.255"
  "database-port" = 5432
  "database-url" = "10.96.213.255:5432"
  "instance-name" = "common"
}
bob-node-ip = "10.96.240.159"
bob-urls = {
  "health" = "http://localhost/bob/health"
  "management" = "http://localhost/bob/management/v2"
  "proxy" = "http://localhost/bob/proxy"
  "public" = "http://localhost/bob/api/public"
}
connector1-aeskey = "ZEolaE8zNDpVeH1GVU4kVA=="
connector1-client-secret = "PiNFNWVnYTw3TkQwTyFtIQ=="
connector2-aeskey = "SV1tOHZCUGZGVW1Wek96cQ=="
connector2-client-secret = "Zk92MlpjLVBqMj9ndHFMZA=="
keycloak-cluster-ip = "10.96.103.80"
keycloak-database-credentials = {
  "database-host" = "10.96.213.255"
  "database-port" = 5432
  "database-url" = "10.96.213.255:5432"
  "instance-name" = "common"
}
miw-cluster-ip = "10.96.81.222"
miw-database-credentials = {
  "database-host" = "10.96.213.255"
  "database-port" = 5432
  "database-url" = "10.96.213.255:5432"
  "instance-name" = "common"
}
hemantxpatel commented 1 month ago

Also please note, if terraform apply command fails (sometime it happens), you can retry running terraform apply command again.

s-damith commented 1 month ago

Thanks for the support. I increased my resources and retried terraform apply everything started as expected.