Baremetal API: Update CleanStep struct to support manual cleaning#1638
Baremetal API: Update CleanStep struct to support manual cleaning#1638jtopjian merged 1 commit intogophercloud:masterfrom longkb:update_cleansteps_struct
Conversation
|
recheck |
|
Build succeeded.
|
|
@longkb Thank you for submitting this. Would you be able to read over our contributor tutorial? Notably, can you link to the Ironic server-side code that allows this to be a Please let me know if you have any questions or need any help. |
|
@jtopjian : Thanks for your comment. [1] https://github.com/openstack/ironic/blob/master/ironic/api/controllers/v1/node.py#L76 |
Currently, the **Args** property in CleanStep struct has **map[string]string that
does not match with manual cleaning steps in Ironic. It should be dictionary in
python[1][2] and interface{} in golang. For example:
BIOS setting for a node:
```
[
{
"interface": "bios",
"step": "apply_configuration",
"args": {
"settings": [{"name": "hyper_threading_enabled", "value": "false"}]
}
}
]
```
This PR aims to update **Args** in **CleanStep** struct.
[1] https://github.com/openstack/ironic/blob/master/ironic/api/controllers/v1/node.py#L76
[2] https://github.com/openstack/ironic/blob/master/ironic/api/controllers/v1/node.py#L624
Signed-off-by: Kim Bao Long <longkb@vn.fujitsu.com>
That's perfect - thank you! Technically, we should also update the unit tests to account for this change, too. The unit tests are valid, but it would be better to use a more detailed Thank you for your work on this. |
|
recheck |
|
Build succeeded.
|
|
Wow, it's merged! 👍 |
Currently, the Args property in CleanStep struct has **map[string]string that
does not match with manual cleaning steps in Ironic. It should be dictionary in python[1][2] and interface{} in golang . For example:
BIOS setting for a node:
This PR aims to update Args in CleanStep struct.
[1] https://github.com/openstack/ironic/blob/master/ironic/api/controllers/v1/node.py#L76
[2] https://github.com/openstack/ironic/blob/master/ironic/api/controllers/v1/node.py#L624
Signed-off-by: Kim Bao Long longkb@vn.fujitsu.com