Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 [Bug]: 2 VMs on one deployment are not listed properly #2509

Closed
1 task done
AbdelrahmanElawady opened this issue Mar 28, 2024 · 5 comments
Closed
1 task done
Assignees
Labels
dashboard type_bug Something isn't working
Milestone

Comments

@AbdelrahmanElawady
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

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
@AbdelrahmanElawady AbdelrahmanElawady added type_bug Something isn't working dashboard labels Mar 28, 2024
@xmonader xmonader added this to 3.14.x Apr 16, 2024
@xmonader xmonader moved this to Accepted in 3.14.x Apr 16, 2024
@xmonader xmonader added this to the 2.5.0 milestone Apr 16, 2024
@AlaaElattar AlaaElattar self-assigned this May 1, 2024
@AlaaElattar AlaaElattar moved this from Accepted to In Progress in 3.14.x May 1, 2024
@Mahmoud-Emad
Copy link
Contributor

What is the status here?

@AlaaElattar
Copy link
Contributor

AlaaElattar commented May 2, 2024

What is the status here?

  • Found the issue and tried multiple solutions but not fixed yet

@AlaaElattar
Copy link
Contributor

AlaaElattar commented May 2, 2024

Work In Progress :

  • found that happens because we take first vm to be master and the rest are workers.
  • It was done like that to handle caprover.
  • currently searching for a way to handle only caprover this way and the rest should be all masters.

@AlaaElattar AlaaElattar moved this from In Progress to Pending Review in 3.14.x May 7, 2024
@amiraabouhadid amiraabouhadid moved this from Pending Review to In Verification in 3.14.x May 8, 2024
@A-Harby
Copy link
Contributor

A-Harby commented Jun 9, 2024

They both share the same domain.

screen-capture.11.webm

@A-Harby A-Harby moved this from In Verification to Accepted in 3.14.x Jun 9, 2024
@AlaaElattar AlaaElattar moved this from Accepted to In Progress in 3.14.x Jun 10, 2024
@AhmedHanafy725 AhmedHanafy725 moved this from In Progress to Pending Review in 3.14.x Jun 10, 2024
@AhmedHanafy725 AhmedHanafy725 moved this from Pending Review to In Verification in 3.14.x Jun 11, 2024
@A-Harby
Copy link
Contributor

A-Harby commented Jun 11, 2024

@A-Harby A-Harby moved this from In Verification to Done in 3.14.x Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dashboard type_bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

6 participants