VxRail:排定的 VxRail 備份工作失敗,並顯示「NoneType」物件沒有屬性「replace」

摘要: 排程 VxRail Manager 備份工作失敗,並顯示錯誤「NoneType」物件沒有屬性「replace」。

本文章適用於 本文章不適用於 本文無關於任何特定產品。 本文未識別所有產品版本。

症狀

目前在 VxRail 版本 7.0.350 上出現此問題,解決方案僅適用於此版本。
VxRailBackupRestore.log

VxM_Backup & Restore: 2022-12-01 01:29:04,743 - INFO cronjob is updated.
VxM_Backup & Restore: 2022-12-01 01:29:04,822 - ERROR Caused: 'NoneType' object has no attribute 'replace'
VxM_Backup & Restore: 2022-12-01 01:29:04,822 - ERROR [VxM Backup & Restore ABNORMAL END]
VxM_Backup & Restore: 2022-12-01 01:29:15,314 - INFO Starting to get authentication info.
VxM_Backup & Restore: 2022-12-01 01:29:15,336 - INFO Connecting to vCenter [VC FQDN]
VxM_Backup & Restore: 2022-12-01 01:29:15,422 - ERROR Caused: 'NoneType' object has no attribute 'replace'
VxM_Backup & Restore: 2022-12-01 01:29:15,423 - ERROR [VxM Backup & Restore ABNORMAL END]
VxM_Backup & Restore: 2022-12-01 01:30:06,398 - INFO Starting to get authentication info.
VxM_Backup & Restore: 2022-12-01 01:30:06,420 - INFO Connecting to vCenter [VC FQDN]
VxM_Backup & Restore: 2022-12-01 01:30:06,494 - ERROR Caused: 'NoneType' object has no attribute 'replace'
VxM_Backup & Restore: 2022-12-01 01:30:06,495 - ERROR [VxM Backup & Restore ABNORMAL END]

如果您手動執行備份工作:

VxRailBackupRestore.log  

原因

擷取 VSAN 資料存放區物件 ID 時發生代碼缺陷。 

解析度

修改指令檔  /mystic/vxm_backup_restore/common.py 如下所示,再添加兩行。
注意:小心修改,使用空格作為縮進。

def get_primary_datastore(cluster_obj):
    """Get the primary datastore on the specified cluster"""
    if not cluster_obj:
        return None

    if not cluster_obj.datastore:
        return None

    current_vxm_sn = get_vxm_sn()
    for datastore in cluster_obj.datastore:
        if not datastore.vm:
            continue
        for vm in datastore.vm:
            if vm.summary.config.uuid is None:     # new added
                continue                              # new added
            vm_uuid = vm.summary.config.uuid.replace("-", "")
            if vm_uuid in current_vxm_sn:
                return datastore

    return None

受影響的產品

VxRail
文章屬性
文章編號: 000206764
文章類型: Solution
上次修改時間: 23 6月 2026
版本:  3
向其他 Dell 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。