Skip to content
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

Child controllers should reconcile if the ceph image changed #7964

Closed
travisn opened this issue May 21, 2021 · 2 comments · Fixed by #8060
Closed

Child controllers should reconcile if the ceph image changed #7964

travisn opened this issue May 21, 2021 · 2 comments · Fixed by #8060
Assignees
Labels
bug ceph main ceph tag
Projects

Comments

@travisn
Copy link
Member

travisn commented May 21, 2021

Is this a bug report or feature request?

  • Bug Report

Deviation from expected behavior:
Currently the reconcile for child controllers such as file and object are only triggered if the Ceph version changed.

The version check is currently only based on the build number.

In the repro seen where mds and rgw were not updated, the two versions before/after the upgrade were:

ceph version 14.2.11-139.0.hotfix.xxxxxxx.el8cp
(5c0dc966af809fd1d429ec7bac48962a746af243) nautilus (stable)": 7,
"ceph version 14.2.11-139.el8cp (b8e1f91c99491fb2e5ede748a1c0738ed158d0f5)
nautilus (stable)": 4

The build numbers 14.2.11-139 are all equivalent. The rest of the build version is ignored by Rook for the comparison.

Expected behavior:
The child controllers should all reconcile if the Ceph image changes, not just if the ceph version changed inside the image. The update to the image may not always include an update to the version number, at least in some downstream hotfix builds.

How to reproduce it (minimal and precise):

For a simple repro:

  • Deploy Rook with a ceph image such as ceph/ceph:v16.2.4
  • Create object.yaml and filesystem.yaml to ensure child controllers are active
  • Change the docker tag locally to simulate an image change: docker tag ceph/ceph:v16.2.4 ceph/ceph:v16.2.4-alternate
  • Apply the new image to the CephCluster CR: ceph/ceph:v16.2.4-alternate
  • Notice that all the daemons are updated except rgw and mds
@travisn travisn added bug ceph main ceph tag labels May 21, 2021
@travisn
Copy link
Member Author

travisn commented May 21, 2021

The child controllers are triggered based on this code block. It seems c.isUpgrade also should be true if the image changed, not just if the ceph version changed.

@leseb leseb added this to To do in v1.6 via automation May 24, 2021
@sp98
Copy link
Contributor

sp98 commented Jun 4, 2021

looking into it.

v1.6 automation moved this from To do to Done Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ceph main ceph tag
Projects
No open projects
v1.6
Done
Development

Successfully merging a pull request may close this issue.

2 participants