New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double istio rev in configmap name #6669
Comments
What version of Kiali did you install? What does your Kiali server pods logs say - any other errors or stack traces? |
1.73 version |
I found the problem. For some reason, this code appends the version: https://github.com/kiali/kiali/blob/v1.74.1/business/mesh.go#L158-L161 configMapName := in.conf.ExternalServices.Istio.ConfigMapName
if revLabel := istiod.Labels[IstioRevisionLabel]; revLabel != "default" && revLabel != "" {
configMapName = configMapName + "-" + revLabel
} But no where else in the code does it do this - anywhere else We need to fix the Kiali code to be consistent. Right now, it is broken because it does things differently in different parts of the code. |
@nrfox this was added in this PR from a couple months ago: https://github.com/kiali/kiali/pull/6473/files#diff-7d9539fc4723cc9b3288a3a7d8e40a1b674812037abef2b5a720ba87256cbf61R159 |
Looks like this also goes against the documentation for how to handle revisions in Kiali so it should be fixed. Also need an e2e test added for this. |
@leandroberetta knows about all this stuff - he did all that work on the canary stuff. Perhaps he can chime in with his thoughts. |
BTW: I wrote a github issue a few months ago that is related - we need a common function to get the configmap name - precisely because of this canary/version information that might be in the name. |
@jmazzitelli @nrfox when the bug fix will be implemented ? Also would like to understand what issue it causes on the Kiali side (if any) ? |
Follow this PR - #6675 and if it gets merged by end of week, it will be in this sprint's 1.76 release to be published Monday. |
@aleksandermiszkiewicz from what I can tell, the only thing that was affected by this issue was validations for Gateways. If you were using |
@jmazzitelli @nrfox thank you guys for answers. |
This reverts the callers of IstioConfigMapName back to using `cfg.external_services.istio.config_map_name` directly. It now logs failures in GetMesh to auto-detect the configmap instead of returning an error. Nothing is currently using that configuration so an error shouldn't be returned there. Related to: kiali#6669.
This reverts the callers of IstioConfigMapName back to using `cfg.external_services.istio.config_map_name` directly. It now logs failures in GetMesh to auto-detect the configmap instead of returning an error. Nothing is currently using that configuration so an error shouldn't be returned there. Related to: kiali#6669.
the fix needs to go into the 1.73 branch. backport PR: #6973 |
backport merged |
Hello.
istio installed via helm
kiali
i receive this error from kiali log.
ERR Error getting mesh config: configmap "istio-1-18-0-1-18-0" not found
i do not understand why rev is doubled in configmap name?
The text was updated successfully, but these errors were encountered: