threefoldtech / tfgrid-sdk-ts

Apache License 2.0
4 stars 8 forks source link

šŸž [Bug]: 2 VMs on one deployment are not listed properly #2509

Closed AbdelrahmanElawady closed 3 months ago

AbdelrahmanElawady commented 6 months ago

Is there an existing issue for this?

which package/s did you face the problem with?

Dashboard

What happened?

When deploying 2 VMs on a single deployment, the dashboard can list only one of the VMs.

Steps To Reproduce

No response

which network/s did you face the problem on?

Dev

version

2.3.4

Twin ID/s

No response

Node ID/s

No response

Farm ID/s

No response

Contract ID/s

No response

Relevant screenshots/screen records

anothervm is just the one listed: image deployment details show two vms: vm1 and anothervm

{
  "version": 0,
  "twin_id": 192,
  "contract_id": 104671,
  "metadata": "{\"version\":3,\"type\":\"vm\",\"name\":\"testvm\",\"projectName\":\"vm/testvm\"}",
  "description": "",
  "expiration": 0,
  "signature_requirement": {
    "requests": [
      {
        "twin_id": 192,
        "required": false,
        "weight": 1
      }
    ],
    "weight_required": 1,
    "signatures": [
      {
        "twin_id": 192,
        "signature": "140e1b6067ef9e7aab591ae57c6945bf6970c1c39ce25ff25e50ad08f1f88f131d9163e0ce3b63ad8fce463fcf7859d20432e419239b460b1945c57e5fd4c883",
        "signature_type": "sr25519"
      }
    ],
    "signature_style": ""
  },
  "workloads": [
    {
      "version": 0,
      "name": "vm1",
      "type": "zmachine",
      "data": {
        "flist": "https://hub.grid.tf/tf-official-apps/base:latest.flist",
        "network": {
          "public_ip": "",
          "planetary": true,
          "interfaces": [
            {
              "network": "testvm",
              "ip": "10.1.2.2"
            }
          ]
        },
        "size": 0,
        "compute_capacity": {
          "cpu": 2,
          "memory": 1073741824
        },
        "mounts": null,
        "entrypoint": "/sbin/zinit init",
        "env": {
          "SSH_KEY": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDcGrS1RT36rHAGLK3/4FMazGXjIYgWVnZ4bCvxxg8KosEEbs/DeUKT2T2LYV91jUq3yibTWwK0nc6O+K5kdShV4qsQlPmIbdur6x2zWHPeaGXqejbbACEJcQMCj8szSbG8aKwH8Nbi8BNytgzJ20Ysaaj2QpjObCZ4Ncp+89pFahzDEIJx2HjXe6njbp6eCduoA+IE2H9vgwbIDVMQz6y/TzjdQjgbMOJRTlP+CzfbDBb6Ux+ed8F184bMPwkFrpHs9MSfQVbqfIz8wuq/wjewcnb3wK9dmIot6CxV2f2xuOZHgNQmVGratK8TyBnOd5x4oZKLIh3qM9Bi7r81xCkXyxAZbWYu3gGdvo3h85zeCPGK8OEPdYWMmIAIiANE42xPmY9HslPz8PAYq6v0WwdkBlDWrG3DD3GX6qTt9lbSHEgpUP2UOnqGL4O1+g5Rm9x16HWefZWMjJsP6OV70PnMjo9MPnH+yrBkXISw4CGEEXryTvupfaO5sL01mn+UOyE= abdulrahman@AElawady-PC\n"
        },
        "corex": false
      },
      "metadata": "",
      "description": "",
      "result": {
        "created": 1711625081,
        "state": "ok",
        "message": "",
        "data": {
          "id": "192-104671-vm1",
          "ip": "10.1.2.2",
          "planetary_ip": "301:2485:48dc:9401:1b6d:b4e0:37a5:1c91",
          "mycelium_ip": "",
          "console_url": "10.1.2.1:20002"
        }
      }
    },
    {
      "version": 0,
      "name": "anothervm",
      "type": "zmachine",
      "data": {
        "flist": "https://hub.grid.tf/tf-official-apps/base:latest.flist",
        "network": {
          "public_ip": "",
          "planetary": true,
          "interfaces": [
            {
              "network": "testvm",
              "ip": "10.1.2.3"
            }
          ]
        },
        "size": 0,
        "compute_capacity": {
          "cpu": 1,
          "memory": 1073741824
        },
        "mounts": null,
        "entrypoint": "/sbin/zinit init",
        "env": {
          "SSH_KEY": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDcGrS1RT36rHAGLK3/4FMazGXjIYgWVnZ4bCvxxg8KosEEbs/DeUKT2T2LYV91jUq3yibTWwK0nc6O+K5kdShV4qsQlPmIbdur6x2zWHPeaGXqejbbACEJcQMCj8szSbG8aKwH8Nbi8BNytgzJ20Ysaaj2QpjObCZ4Ncp+89pFahzDEIJx2HjXe6njbp6eCduoA+IE2H9vgwbIDVMQz6y/TzjdQjgbMOJRTlP+CzfbDBb6Ux+ed8F184bMPwkFrpHs9MSfQVbqfIz8wuq/wjewcnb3wK9dmIot6CxV2f2xuOZHgNQmVGratK8TyBnOd5x4oZKLIh3qM9Bi7r81xCkXyxAZbWYu3gGdvo3h85zeCPGK8OEPdYWMmIAIiANE42xPmY9HslPz8PAYq6v0WwdkBlDWrG3DD3GX6qTt9lbSHEgpUP2UOnqGL4O1+g5Rm9x16HWefZWMjJsP6OV70PnMjo9MPnH+yrBkXISw4CGEEXryTvupfaO5sL01mn+UOyE= abdulrahman@AElawady-PC\n"
        },
        "corex": false
      },
      "metadata": "",
      "description": "",
      "result": {
        "created": 1711625085,
        "state": "ok",
        "message": "",
        "data": {
          "id": "192-104671-anothervm",
          "ip": "10.1.2.3",
          "planetary_ip": "301:2485:48dc:9401:27d5:3f05:521b:d69a",
          "mycelium_ip": "",
          "console_url": "10.1.2.1:20003"
        }
      }
    }
  ]
}

Relevant log output

none
Mahmoud-Emad commented 4 months ago

What is the status here?

AlaaElattar commented 4 months ago

What is the status here?

AlaaElattar commented 4 months ago

Work In Progress :

A-Harby commented 3 months ago

They both share the same domain.

screen-capture (11).webm

A-Harby commented 3 months ago

Verified, Devnet 408184e.

screen-capture (20).webm

TC245 - Deploy Multiple VMs on Different Nodes TC2724 - Deploy gateway on Multiple VMs on Different Nodes