]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
node-proxy: update the JSON data structure
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 12 Oct 2023 13:29:19 +0000 (13:29 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 25 Jan 2024 15:09:40 +0000 (15:09 +0000)
commit3e942c9b1abb25b41be92c5679f209e4bc55d87f
treee7c52f9ec2438ee4854ac8c8acaa0878339c813b
parentea4e2ef9015da0f5fb284ddfff4bf226240e6585
node-proxy: update the JSON data structure

Change the data structure from:
```
{
  "storage": "ok",
  "processors": "ok",
  "network": "ok",
  "memory": "ok",
  "power": "ok",
  "fans": "ok"
}
```
to:

```
{
    "host": "node1",
    "sn": "xxxx",
    "status": {
        "storage": {
        }
    }
}
```

In order to provide a unique key (sn) which is more reliable at the top
level of the dict.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 65d3f781f92505eb708716eb281c670a71ed503c)
src/cephadm/cephadm.py
src/cephadm/cephadmlib/node_proxy/baseredfishsystem.py
src/cephadm/cephadmlib/node_proxy/basesystem.py
src/cephadm/cephadmlib/node_proxy/main.py
src/cephadm/cephadmlib/node_proxy/redfishdellsystem.py
src/cephadm/cephadmlib/node_proxy/reporter.py
src/pybind/mgr/cephadm/agent.py
src/pybind/mgr/cephadm/inventory.py