PV is re-formatted when operating a rolling update for StatefulSet and moving nodes
Applies to
Trident 20.04
Issue
- Persistent Volume (PV) having a file system is reformatted when operating a rolling update for StatefulSet and moving nodes
- The trident log shows the following messages.
Example:
time="2020-07-19T03:25:40Z" level=debug msg="<<<< osutils.execCommandWithTimeout." command=blkid error="exit status 2" output=
time="2020-07-19T03:25:40Z" level=debug msg="Could not get FSType for device." device=/dev/dm-0
...
time="2020-07-19T03:25:40Z" level=debug msg="Formatting LUN." fstype=ext4 volume=abcd_01_abcde_k8s_ab_abcd_abcd_abc_ab_pvc_012abc34_5678_4c00_1234_12fc43bbeaed
time="2020-07-19T03:25:40Z" level=debug msg=">>>> osutils.formatVolume" device=/dev/dm-0 fsType=ext4
time="2020-07-19T03:25:40Z" level=debug msg=">>>> osutils.execCommand." args="[-F /dev/dm-0]" command=mkfs.ext4