The Postgres internal module of BSS contains functions for Add()ing and Delete()ing boot configs. This PR implements Update()ing existing nodes' boot configs.
This PR also adds the ability to query boot parameters specifically by MAC/XName/NID, e.g:
Finally, this PR adds unit tests for testing the Update() function.
Issues and Related PRs
N/A
Testing
Tested on:
Cable Guys SI Cluster (cg-head and compute nodes)
This is a system of x86-64 Gigabyte 272-Z32-00 machines running Rocky Linux 8.8
Risks and Mitigations
The Update() function is a bit large as the algorithm for updating is a bit involved, but perhaps some of it could be separated into smaller functions.
Summary and Scope
The Postgres internal module of BSS contains functions for
Add()
ing andDelete()
ing boot configs. This PR implementsUpdate()
ing existing nodes' boot configs.This PR also adds the ability to query boot parameters specifically by MAC/XName/NID, e.g:
Finally, this PR adds unit tests for testing the
Update()
function.Issues and Related PRs
N/A
Testing
Tested on:
cg-head
and compute nodes)Risks and Mitigations
The
Update()
function is a bit large as the algorithm for updating is a bit involved, but perhaps some of it could be separated into smaller functions.