You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: storage
name: 71-mount-storage-worker
spec:
config:
ignition:
version: 3.2.0
systemd:
units:
- name: var-mnt-longhorn.mount
enabled: true
contents: |
[Unit]
Before=local-fs.target
[Mount]
# Example mount point, you can change it to where you like for each device.
Where=/var/mnt/longhorn
What=/dev/disk/by-label/longhorn
Options=rw,relatime,discard
[Install]
WantedBy=local-fs.target
$ oc get nodes
NAME STATUS ROLES AGE VERSION
cp1 Ready control-plane,master 17h v1.29.8+632b078
cp2 Ready control-plane,master 17h v1.29.8+632b078
cp3 Ready control-plane,master 17h v1.29.8+632b078
wn1 Ready storage,worker 17h v1.29.8+632b078
wn2 Ready storage,worker 17h v1.29.8+632b078
wn3 Ready storage,worker 17h v1.29.8+632b078
[provide a description of the issue]
Version
[provide output of the
openshift version
oroc version
command]Cluster Version: 4.16.17
Steps To Reproduce
storage-mcp.yaml
auto-mount-machineconfig.yaml
oc apply -f storage-mcp.yaml
oc apply -f auto-mount-machineconfig.yaml
login to all worker nodes create dir /var/mnt/longhorn
reboot earch worker node
Current Result
the Disk is not mounted
Expected Result
auto mount this disk
Additional Information
Manual mount works:
$ oc get co
machine-config 4.16.17 True False True 18h Failed to resync 4.16.17 because: error during syncRequiredMachineConfigPools: [context deadline exceeded, failed to update clusteroperator: [client rate limiter Wait returned an error: context deadline exceeded, error MachineConfigPool storage is not ready, retrying. Status: (pool degraded: true total: 3, ready 0, updated: 0, unavailable: 3)]]
What did I wrong ?
The text was updated successfully, but these errors were encountered: