apecloud / kubeblocks

KubeBlocks is an open-source control plane software that runs and manages databases, message queues and other stateful applications on K8s.
https://kubeblocks.io
GNU Affero General Public License v3.0
2.22k stars 185 forks source link

[BUG] incorrect service version matching for the server version referenced by the cluster #8058

Open starnop opened 3 months ago

starnop commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

image image

When the cluster uses serviceVersion 0.4.4, it will use the image from the 0.4.4 release version defined by the above two componentVersions.

image image

When the cluster uses serviceVersion 0.4.4, it will use the image from the 0.5.4 release version defined by the above two componentVersions. However, it was expected to use 0.4.4.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

starnop commented 2 months ago

@leon-inf any updates? 😉

leon-inf commented 2 months ago

@leon-inf any updates? 😉

From the description above, I cannot figure out what problem you are encountering. Can you provide more detailed information about the scenario? For example, the complete CMPV, cluster configuration and the phenomenon encountered, etc.

starnop commented 1 month ago

@leon-inf So sorry for the late reply.

The problem is that the expected release version should be 0.4.4, not 0.5.4 in the second scenario.

image image

And the cluster uses serviceVersion 0.4.4.

leon-inf commented 1 month ago

I have tried to add a UT to simulate the scenario you described, can you help me to confirm whether this is the case? Or you can modify it directly to what you encounter. https://github.com/apecloud/kubeblocks/compare/main...support/issue-8058

leon-inf commented 1 month ago

BTW, it would be much more convenient if you could provide the complete CMPV, along with the cluster specs regarding service versions and/or comp-def.