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

Problem with the slots of the equipment #72

Closed
florianLSP opened this issue Feb 22, 2024 · 1 comment · Fixed by #74
Closed

Problem with the slots of the equipment #72

florianLSP opened this issue Feb 22, 2024 · 1 comment · Fixed by #74
Assignees
Labels
bug Something isn't working
Milestone

Comments

@florianLSP
Copy link
Contributor

mecn0040 should not supposed to be at slot 40.

± racksdb --db examples/db --schema schemas/racksdb.yml nodes --infrastructure mercury --format json | jq '.[] | select(.name=="mecn0040")' 
{
  "name": "mecn0040",
  "infrastructure": "mercury",
  "rack": {
    "name": "R1-A01",
    "slot": 0,
    "type": {
      "id": "standard",
      "height": 1867,
      "width": 600,
      "depth": 914,
      "slots": 42,
      "initial": 1
    },
    "datacenter": "paris",
    "room": "noisy",
    "row": "R1",
    "fillrate": 0.9761904761904762
  },
  "type": {
    "id": "sm220bt",
    "model": "SuperMicro A+ Server 2124BT-HTR",
    "height": 1,
    "width": 0.5,
    "specs": "https://www.supermicro.com/en/aplus/system/2u/2124/as-2124bt-htr.cfm",
    "cpu": {
      "model": "AMD EPYC 7573X",
      "specs": "https://www.amd.com/en/products/cpu/amd-epyc-7573x",
      "sockets": 2,
      "cores": 32
    },
    "ram": {
      "dimm": 8,
      "size": 34359738368
    },
    "storage": [
      {
        "type": "nvme",
        "size": 274877906944,
        "model": "Samsung 980 Pro"
      }
    ],
    "netifs": [
      {
        "type": "ethernet",
        "bandwidth": 10000000000
      }
    ]
  },
  "slot": 40,
  "tags": [
    "compute"
  ]
}

@florianLSP florianLSP added the bug Something isn't working label Feb 22, 2024
@rezib rezib added this to the v0.4.0 milestone Feb 22, 2024
@rezib rezib self-assigned this Feb 22, 2024
@rezib rezib closed this as completed in 0b767b4 Feb 26, 2024
@rezib
Copy link
Contributor

rezib commented Feb 26, 2024

It is fixed with the new position property. For exemple on mecn0040:

$ racksdb --db examples/db --schema schemas/racksdb.yml nodes --name mecn0040 --format json | jq
[
  {
    "name": "mecn0040",
    "infrastructure": "mercury",
    "rack": {
      "name": "R1-A01",
      "slot": 0,
      "type": {
        "id": "standard",
        "height": 1867,
        "width": 600,
        "depth": 914,
        "slots": 42,
        "initial": 1
      },
      "datacenter": "paris",
      "room": "noisy",
      "row": "R1",
      "fillrate": 0.9761904761904762
    },
    "type": {
      "id": "sm220bt",
      "model": "SuperMicro A+ Server 2124BT-HTR",
      "height": 1,
      "width": 0.5,
      "specs": "https://www.supermicro.com/en/aplus/system/2u/2124/as-2124bt-htr.cfm",
      "cpu": {
        "model": "AMD EPYC 7573X",
        "specs": "https://www.amd.com/en/products/cpu/amd-epyc-7573x",
        "sockets": 2,
        "cores": 32
      },
      "ram": {
        "dimm": 8,
        "size": 34359738368
      },
      "storage": [
        {
          "type": "nvme",
          "size": 274877906944,
          "model": "Samsung 980 Pro"
        }
      ],
      "netifs": [
        {
          "type": "ethernet",
          "bandwidth": 10000000000
        }
      ]
    },
    "slot": 40,
    "tags": [
      "compute"
    ],
    "position": {
      "height": 19,
      "width": 1
    }
  }
]

You can now use position > height to get the rack slot in which the equipment is located.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants