dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

RKE2 registry configs are malformed when switching to yaml view

Open mantis-toboggan-md opened this issue 2 years ago • 4 comments

When creating an RKE2 cluster there is an option under the 'Registry' tab to set a cluster-wide custom registry. When switching to yaml view this configuration is messed up and lost if the cluster is saved from yaml view.

This does not appear to be specific to rke2. The data being fed into the createYaml utility (used in resource creation views generally) appears correct, but the result is malformed, so the problem is likely something in createYaml. Screen Shot 2023-11-28 at 1.04.11 PM.png

rkeConfig.registries.configs when switching to yaml view: Screen Shot 2023-11-28 at 12.49.27 PM.png

The POST request for the provisioning cluster looks the same: Screen Shot 2023-11-28 at 12.50.05 PM.png

rekConfig.registries.configs is missing from the response to that POST request: Screen Shot 2023-11-28 at 12.50.18 PM.png

When creating via form, the request looks like this: Screen Shot 2023-11-28 at 12.51.10 PM.png

The response to the POST request when saving in form view includes the rkeConfig.registries.configs field: Screen Shot 2023-11-28 at 12.50.05 PM.png

mantis-toboggan-md avatar Nov 28 '23 21:11 mantis-toboggan-md

Possible connection to #11020

gaktive avatar Jun 07 '24 15:06 gaktive

@richard-cox FYI - could be related to 11020.

nwmac avatar Jun 28 '24 14:06 nwmac

Similar to #11020. Following backend changes, i tried to reproduce in v2.9-a84c3a2f and could not.

image

We just need to write some automation to prevent regression, or for quicker resolution change to manual QA.

richard-cox avatar Jul 01 '24 14:07 richard-cox

@richard-cox Already set to manual test, so moving to 'To Test' on the project board.

nwmac avatar Jul 01 '24 15:07 nwmac

On v2.9-a9355 and dashboard - master 30d8ecc, issue is not seen anymore. Screen Shot 2024-07-10 at 9 11 30 AM Screen Shot 2024-07-10 at 9 07 49 AM

sowmyav27 avatar Jul 10 '24 16:07 sowmyav27