Closed roehrich-hpe closed 3 months ago
From Brian: "I had v0.0.9 deployed with a customized Nnfstorageprofiles/placeholder, I ran nnf-deploy deploy to roll out v0.0.10 and saw the above error. I then removed the customization from Nnfstorageprofiles/placeholder, ran nnf-deploy deploy again cleanly, and manually reapplied the changes to Nnfstorageprofiles/placeholder"
The kubectl apply
is merging the live version of the resource with the new one prior to sending it to the webhook. So if the live resource has this:
lustreStorage:
combinedMgtMdt: false
exclusiveMdt: false
externalMgs: 10.0.0.1@kfi
And the new one, from nnf-sos/config/examples/nnf_v1alpha1_nnfstorageprofile.yaml
has only this:
lustreStorage:
combinedMgtMdt: true
They are merged as this:
lustreStorage:
combinedMgtMdt: true
exclusiveMdt: false
externalMgs: 10.0.0.1@kfi
Thus, tripping the webhook validation.
The resource defined in nnf-sos/config/examples/nnf_v1alpha1_nnfstorageprofile.yaml
was given the name placeholder
because it was not intended to be the actual default profile on a cluster. We mucked that story by setting default: true
in that resource.
This is resolved by:
The nnf-sos PR: https://github.com/NearNodeFlash/nnf-sos/pull/279 The nnf-deploy PR: https://github.com/NearNodeFlash/nnf-deploy/pull/145 The NearNodeFlash.github.io documentation PR: https://github.com/NearNodeFlash/NearNodeFlash.github.io/pull/140
the following error when deploying due to our local customization to use an externalMgs on these systems.
The storage profile contains: