Last active
November 11, 2025 17:10
-
-
Save johnsimcall/e546204290949bdab375e767b104512a to your computer and use it in GitHub Desktop.
Dell PowerStore - OpenShift Machine Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Change label as appropriate | |
| --- | |
| apiVersion: machineconfiguration.openshift.io/v1 | |
| kind: MachineConfig | |
| metadata: | |
| name: 99-controllers-multipath-conf | |
| # name: 99-workers-multipath-conf | |
| labels: | |
| machineconfiguration.openshift.io/role: master | |
| # machineconfiguration.openshift.io/role: worker | |
| spec: | |
| config: | |
| ignition: | |
| version: 3.4.0 | |
| systemd: | |
| units: | |
| - name: "iscsid.service" | |
| enabled: true | |
| - name: multipathd.service | |
| enabled: true | |
| storage: | |
| files: | |
| - path: /etc/multipath.conf | |
| filesystem: root | |
| mode: 400 | |
| contents: | |
| verification: {} | |
| source: data:text/plain;charset=utf-8;base64,ZGVmYXVsdHMgewogIHBvbGxpbmdfaW50ZXJ2YWwgNQogIGNoZWNrZXJfdGltZW91dCAxNQogIGRpc2FibGVfY2hhbmdlZF93d2lkcyB5ZXMKICBmaW5kX211bHRpcGF0aHMgbm8KfQpkZXZpY2VzIHsKICBkZXZpY2UgewogICAgdmVuZG9yICAgICAgICAgICAgICAgICAgIERlbGxFTUMKICAgIHByb2R1Y3QgICAgICAgICAgICAgICAgICBQb3dlclN0b3JlCiAgICBkZXRlY3RfcHJpbyAgICAgICAgICAgICAgInllcyIKICAgIHBhdGhfc2VsZWN0b3IgICAgICAgICAgICAicXVldWUtbGVuZ3RoIDAiCiAgICBwYXRoX2dyb3VwaW5nX3BvbGljeSAgICAgImdyb3VwX2J5X3ByaW8iCiAgICBwYXRoX2NoZWNrZXIgICAgICAgICAgICAgdHVyCiAgICBmYWlsYmFjayAgICAgICAgICAgICAgICAgaW1tZWRpYXRlCiAgICBmYXN0X2lvX2ZhaWxfdG1vICAgICAgICAgNQogICAgbm9fcGF0aF9yZXRyeSAgICAgICAgICAgIDMKICAgIHJyX21pbl9pb19ycSAgICAgICAgICAgICAxCiAgICBtYXhfc2VjdG9yc19rYiAgICAgICAgICAgMTAyNAogICAgZGV2X2xvc3NfdG1vICAgICAgICAgICAgIDEwCiAgfQp9Cg== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This patch causes changes to iscsi & multipathd to apply by restarting the relevant service, instead of rebooting the node | |
| # This only went GA for OpenShift in 4.17 | |
| # | |
| # https://docs.openshift.com/container-platform/4.17/machine_configuration/machine-config-node-disruption.html | |
| --- | |
| apiVersion: operator.openshift.io/v1 | |
| kind: MachineConfiguration | |
| metadata: | |
| name: cluster | |
| namespace: openshift-machine-config-operator | |
| spec: | |
| nodeDisruptionPolicy: | |
| files: | |
| - path: /etc/multipath.conf | |
| actions: | |
| - type: Restart | |
| restart: | |
| serviceName: multipathd.service | |
| units: | |
| - name: multipathd.service | |
| actions: | |
| - type: Restart | |
| restart: | |
| serviceName: multipathd.service | |
| - name: iscsid.service | |
| actions: | |
| - type: Restart | |
| restart: | |
| serviceName: iscsid.service |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the
/etc/multipath.conffile before base64 encoding...