Skip to content

Conversation

@DebakelOrakel
Copy link
Contributor

@DebakelOrakel DebakelOrakel commented Feb 7, 2025

Replacement of MON pods does not work as described

Update vSphere install instructions for OpenShift 4.16
@DebakelOrakel DebakelOrakel added the change Minor changes label Feb 7, 2025
@DebakelOrakel DebakelOrakel changed the title Merge pull request #381 from appuio/update/vsphere/install Change Rook Ceph MON replacement section Feb 7, 2025
@DebakelOrakel DebakelOrakel requested a review from a team February 7, 2025 12:22
Copy link
Member

@simu simu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit in the PR looks weird btw.

[source,bash,subs="attributes+"]
----
mon_id=<MON_ID>
kubectl --as=cluster-admin -n syn-rook-ceph-cluster delete pod \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why didn't this work (anymore)? I'm not happy with replacing a simple step which should trigger the rook operator to do the right thing with a fully manual step that can cause massive chaos.

Comment on lines +66 to +76
# Remove MON to replace from ConfigMap
#
# data:
# csi-cluster-config-json: '[{"clusterID":"syn-rook-ceph-cluster","monitors":["194.182.183.35:6789","194.182.180.80:6789","194.182.181.220:6789"],"cephFS":{"netNamespaceFilePath":"","subvolumeGroup":"","kernelMountOptions":"","fuseMountOptions":""},"rbd":{"netNamespa ceFilePath":"","radosNamespace":""},"nfs":{"netNamespaceFilePath":""},"readAffinity":{"enabled":false,"crushLocationLabels":null},"namespace":""}]'
# data: h=194.182.183.35:6789,j=194.182.180.80:6789,i=194.182.181.220:6789
# mapping: '{"node":{"h":{"Name":"storage-efb1","Hostname":"storage-efb1","Address":"194.182.183.35"},"i":{"Name":"storage-8bb1","Hostname":"storage-8bb1","Address":"194.182.181.220"},"j":{"Name":"storage-a79d","Hostname":"storage-a79d","Address":"194.182.180.80"}}}'
kubectl --as=cluster-admin -n syn-rook-ceph-cluster edit cm rook-ceph-mon-endpoints
# data:
# csi-cluster-config-json: '[{"clusterID":"syn-rook-ceph-cluster","monitors":["194.182.180.80:6789","194.182.181.220:6789"],"cephFS":{"netNamespaceFilePath":"","subvolumeGroup":"","kernelMountOptions":"","fuseMountOptions":""},"rbd":{"netNamespa ceFilePath":"","radosNamespace":""},"nfs":{"netNamespaceFilePath":""},"readAffinity":{"enabled":false,"crushLocationLabels":null},"namespace":""}]'
# data: j=194.182.180.80:6789,i=194.182.181.220:6789
# mapping: '{"node":{"i":{"Name":"storage-8bb1","Hostname":"storage-8bb1","Address":"194.182.181.220"},"j":{"Name":"storage-a79d","Hostname":"storage-a79d","Address":"194.182.180.80"}}}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we actually want to make this the process, this must be a kubectl patch and not a kubectl edit and hope no mistakes happen. Otherwise this must be a 4-eyes process.

@DebakelOrakel DebakelOrakel marked this pull request as draft February 7, 2025 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change Minor changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants