VxRail : Impossible de mettre à niveau la version du format sur disque
Summary: La mise à niveau de la version du format sur disque VSAN (Virtual Storage Area Network) échoue en raison d’autorisations incorrectes sur le dossier d’intégrité et les fichiers vSAN. Cela se produit sur vCenter après la mise à niveau vers la version 8.0.x, avec des messages d’erreur indiquant des problèmes InvalidArgument et taskType. ...
Symptoms
Les symptômes suivants ont été observés :
- Impossible de mettre à niveau la version du format sur disque vSAN.
- vSAN sur disque conserve une version antérieure après la mise à niveau du cluster vSAN vers la version 8.0.x.
- La mise à niveau échoue avec un message générique.
- Des avertissements ont été observés sur l’intégrité de Skyline.
- Les vérifications préalables à la mise à niveau ont réussi sans problème, mais la mise à niveau échoue toujours à partir de l’interface utilisateur et de la CLI.
Les journaux et messages d’erreur incluent :
2025-04-25 11:14:21 +0000: Running precondition checks ... 2025-04-25 11:14:21 +0000: Passed precondition checks 2025-04-25 11:14:21 +0000: 2025-04-25 11:14:21 +0000: Target file system version: v20 2025-04-25 11:14:21 +0000: Disk mapping decommission mode specified: evacuateAllData 2025-04-25 11:14:24 +0000: Upgrade tool stopped due to error, please address reported issue and re-run the tool again to finish upgrade.
2025-05-14T06:23:52.737Z ERROR vsan-mgmt[1402576] [VsanVcDiskFormatConverterImpl::_Run opID=agw-0115827-5ae9] Disk conversion thread met unexpected error
2025-05-14T06:23:52.736Z error vpxd[3650220] [Originator@6876 sub=Default opID=agw-0115827-5ae9-de] [VpxLRO] -- ERROR lro-67767942 -- 52659c5f-95b0-81a2-b8d6-7dee662b049c(528072e2-5dae-18a2-f03c-a3ab99f6905f) -- TaskManager -- vim.TaskManager.createTask: :vmodl.fault.InvalidArgument
Cause
Cela est dû à des autorisations incorrectes sur le dossier d’intégrité vSAN et les fichiers sur vCenter.
Journal du service d’intégrité vSAN :
2025-05-14T06:23:52.737Z ERROR vsan-mgmt[1402576] [VsanVcDiskFormatConverterImpl::_Run opID=agw-0115827-5ae9] Disk conversion thread met unexpected error
Traceback (most recent call last):
File "bora/vsan/diskmgmt/vpxd/pyMoVsan/VsanVcDiskFormatConverterImpl.py", line 4201, in _Run
File "bora/vsan/diskmgmt/vpxd/pyMoVsan/VsanVcDiskFormatConverterImpl.py", line 4956, in ConvertDisks
File "bora/vsan/diskmgmt/vpxd/pyMoVsan/VsanVcDiskFormatConverterImpl.py", line 4385, in _RemediateBeforeConversion
File "bora/vsan/clustermgmt/vpxd/VsanClusterPrototypeImpl.py", line 1252, in RemediateVsanCluster
File "bora/vsan/clustermgmt/vpxd/VsanClusterPrototypeImpl.py", line 1268, in _RemediateVsanCluster
File "bora/vsan/clustermgmt/vpxd/VsanClusterPrototypeHelper.py", line 28, in __init__
File "bora/vsan/health/vpxd/pyMoVsan/VsanVcExtension.py", line 623, in CreateTaskWithTag
File "/usr/lib/vmware/site-packages/pyVmomi/VmomiSupport.py", line 618, in
File "/usr/lib/vmware/site-packages/pyVmomi/VmomiSupport.py", line 391, in _InvokeMethod
PyCppVmomi.vmodl.fault.InvalidArgument: (vmodl.fault.InvalidArgument) {
msg = 'Received SOAP response fault from [<, /sdk>]: createTask\nA specified parameter was not correct: taskType',
invalidProperty = 'taskType'
vpxd.log :
2025-05-14T06:23:52.729Z info vpxd[3650220] [Originator@6876 sub=vpxLro opID=agw-0115827-5ae9-de] [VpxLRO] -- BEGIN lro-67767942 -- TaskManager -- vim.TaskManager.createTask -- 52659c5f-95b0-81a2-b8d6-7dee662b049c(528072e2-5dae-18a2-f03c-a3ab99f6905f)
2025-05-14T06:23:52.736Z info vpxd[3650220] [Originator@6876 sub=vpxLro opID=agw-0115827-5ae9-de] [VpxLRO] -- FINISH lro-67767942
2025-05-14T06:23:52.736Z error vpxd[3650220] [Originator@6876 sub=Default opID=agw-0115827-5ae9-de] [VpxLRO] -- ERROR lro-67767942 -- 52659c5f-95b0-81a2-b8d6-7dee662b049c(528072e2-5dae-18a2-f03c-a3ab99f6905f) -- TaskManager -- vim.TaskManager.createTask: :vmodl.fault.InvalidArgument
--> Result:
--> (vmodl.fault.InvalidArgument) {
--> faultCause = (vmodl.MethodFault) null,
--> faultMessage = ,
--> invalidProperty = "taskType"
--> msg = ""
--> }
--> Args:
-->
--> Arg obj:
--> 'vim.ClusterComputeResource:domain-c1065634'
--> Arg taskTypeId:
--> "com.vmware.vsan.clustermgmt.tasks.remediatevsancluster"
--> Arg initiatedBy:
Les informations de la tâche d’extension vSAN « 'com.vmware.vsan.clustermgmt.tasks.remediatevsancluster » via le MOB peuvent ne pas être répertoriées.
Cela peut être validé en accédant à la page mob. Une fenêtre s’ouvre pour demander les informations d’identification vCenter.
https://[VC_IP]/mob/moid=ExtensionManager&doPath=extensionList%5b%22com%2evmware%2evsan%2ehealth%22%5d%2etaskList
Le problème est également lié à la propriété incorrecte du dossier et des fichiers d’intégrité vSAN. Ils sont détenus par l’utilisateur root et non par l’utilisateur vsan-health.
root@hicglxvc01 [ /etc/vmware-vsan-health ]# ls -lth total 34M -rwxrwxrwx 1 root root 6.2K Jun 5 05:06 vsanhealthstatuschange.json -rwxrwxrwx 1 root root 12K Jun 5 04:42 vsan-releases.json -rwxrwxrwx 1 root root 15M Jun 3 19:42 vsanvcg.db drwxr--r-x 3 root root 4.0K Nov 7 2024 licenses -rwxrwxrwx 1 root root 3.0K Nov 7 2024 logger.conf -rwxr--r-x 1 root root 19M Nov 7 2024 vsanvcg.db.bak -rwxrwxrwx 1 root root 339K Nov 7 2024 vsanhealthremediation.yaml -rwxrwxrwx 1 root root 4.7K Nov 7 2024 vsanhosthealthmanifest.json -rwxrwxrwx 1 root root 2.5K Nov 7 2024 cloudhealthmanifest.json -rwxrwxrwx 1 root root 8.2K Nov 7 2024 vsanhealthcorrelation.json -rwxrwxrwx 1 root root 4.3K Nov 7 2024 vsanhealth.properties drwxr--r-- 3 root root 4.0K Nov 7 2024 cloudHealthResources -rwxrwxrwx 1 root root 726 Nov 7 2024 config.conf -rwxr--r-x 1 root root 573 Nov 7 2024 silent.json
Resolution
Suivez les étapes ci-dessous pour la version du format sur disque vSAN :
Dans le dossier d’intégrité vSAN, changez le propriétaire de vsan-health:root to vmware-vsan-health.
root@hicglxvc01 [ /etc ]# chown -R vsan-health:root vmware-vsan-health root@hicglxvc01 [ /etc/vmware-vsan-health ]# chown -R vsan-health:users logger.conf root@hicglxvc01 [ /etc/vmware-vsan-health ]# chown -R vsan-health:users licenses/ root@hicglxvc01 [ /etc/vmware-vsan-health ]# chown -R vsan-health:users vsanhealthstatuschange.json root@hicglxvc01 [ /etc/vmware-vsan-health ]# chown -R vsan-health:users vsan-releases.json root@hicglxvc01 [ /etc/vmware-vsan-health ]# chown -R vsan-health:users config.conf root@hicglxvc01 [ /etc/vmware-vsan-health ]# chown -R vsan-health:users silent.json
Les autorisations de fichier dans le dossier d’intégrité vSAN ont été modifiées comme suit : vsan-health:users.
root@hicglxvc01 [ /etc/vmware-vsan-health ]# ls -lrth total 34M -rwxr--r-x 1 vsan-health users 573 Nov 7 2024 silent.json -rwxrwxrwx 1 vsan-health users 726 Nov 7 2024 config.conf drwxr--r-- 3 vsan-health root 4.0K Nov 7 2024 cloudHealthResources -rwxrwxrwx 1 vsan-health root 4.3K Nov 7 2024 vsanhealth.properties -rwxrwxrwx 1 vsan-health root 8.2K Nov 7 2024 vsanhealthcorrelation.json -rwxrwxrwx 1 vsan-health root 2.5K Nov 7 2024 cloudhealthmanifest.json -rwxrwxrwx 1 vsan-health root 4.7K Nov 7 2024 vsanhosthealthmanifest.json -rwxrwxrwx 1 vsan-health root 339K Nov 7 2024 vsanhealthremediation.yaml -rwxr--r-x 1 vsan-health root 19M Nov 7 2024 vsanvcg.db.bak -rwxrwxrwx 1 vsan-health users 3.0K Nov 7 2024 logger.conf drwxr--r-x 3 vsan-health users 4.0K Nov 7 2024 licenses -rwxrwxrwx 1 vsan-health root 15M Jun 3 19:42 vsanvcg.db -rwxrwxrwx 1 vsan-health users 12K Jun 5 04:42 vsan-releases.json -rwxrwxrwx 1 vsan-health users 6.2K Jun 5 05:06 vsanhealthstatuschange.json
Une fois les autorisations modifiées, la tâche « com.vmware.vsan.clustermgmt.tasks.remediatevsancluster » doit être visible dans le MOB vCenter et s’enregistre automatiquement.
