From 6a891b9d9807bf82ba162ad0dd3050ff662653db Mon Sep 17 00:00:00 2001 From: Andres Salgado Date: Sat, 14 Sep 2019 13:10:53 -0700 Subject: [PATCH] Update PUT statement adding obm setting to node Previous statement gave an error while adding ipmi-obm-service to node. Error read like this: .. code-block:: shell {"message":"Validation errors","status":"400","UUID":"9ec269eb-b0bc-4d12-93d5-f5dc2ba46f15","errors":["Missing required property: nodeId"]} Requested change properly adds property to json structure. --- docs/rackhd_vlab/discovery.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/rackhd_vlab/discovery.rst b/docs/rackhd_vlab/discovery.rst index 7f902e47..b2d7de3f 100644 --- a/docs/rackhd_vlab/discovery.rst +++ b/docs/rackhd_vlab/discovery.rst @@ -168,7 +168,7 @@ To talk with BMC, RackHD needs to be configured with the BMC's IP and credential .. code-block:: shell - curl -X PUT -H 'Content-Type: application/json' -d ' { "service": "ipmi-obm-service", "config": { "host": "", "user": "admin", "password": "admin" } }' localhost:9090/api/current/nodes//obm + curl -X PUT -H "Content-Type: application/json" -d '{ "nodeId": "", "service": "ipmi-obm-service", "config": { "user": "admin", "password": "admin", "host": "" } }' localhost:9090/api/current/nodes//obm (3) Once the OBM credentials have been configured, RackHD can communicate with BMC in workflows (e.g. power-cycle the BMC or retrieve poller data)