vCenterのパッチ適用が「Test RPMトランザクションが失敗しました。診断用のログを収集してください。」というエラーで失敗します
search cancel

vCenterのパッチ適用が「Test RPMトランザクションが失敗しました。診断用のログを収集してください。」というエラーで失敗します

book

Article ID: 431331

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

VAMI での vCenter アップデートを行う際、アップデートもしくはパッチ適用プロセスが停止し、次のエラーメッセージを表示させることがあります。

Installation failed
Test RPM transaction failed. Collect the logs for diagnostics(Test RPMトランザクションが失敗しました。診断用のログを収集してください。)

Environment

vCenter 7.0.x

Cause

この問題は、vCenter の /storage パーティションのいずれか(例:/storage/core または /storage/log)の空き容量不足によって発生します。

空き容量は、vCenter への SSH 接続で以下のコマンドを実行して確認できます:

# df -h

 

また、update_microservices.log または PatchRunner.log を確認することで、どの /storage パーティションが満杯か特定できます。

update_microservices.log

[YYYY-MM-DDTHH:MM:SS] - 36294 -     update_functions::      runCommandAndCheckResult: 373 -    DEBUG - runCommandAndCheckResult failed: '\tinstalling package vmware-esx-netdumper-7.0.3.02100-0.0.13975548.i386 needs 4KB on the /storage/core filesystem\n'

[YYYY-MM-DDTHH:MM:SS] - 36294 -         task_manager::                        update:  80 -    DEBUG - UpdateTask: status=RESUMABLE, progress=40, message={'id': 'com.vmware.appliance.rpm_transaction_failed', 'default_message': 'Test RPM transaction failed. Collect the logs for diagnostics', 'args': []}
[YYYY-MM-DDTHH:MM:SS] - 36294 -           update_b2b::                    preInstall:2349 -    DEBUG - Returning from preInstall(), failure in preinstall

 

PatchRunner.log

[YYYY-MM-DDTHH:MM:SS] - 11761 -        update_script::           collectRequirements: 645 -    DEBUG - Transform patch runner requirements results: {
    "requirements": {
        "requiredDiskSpace": {
            "/storage/core": 22.60932327270508,
            "/storage/seat": 19.084375
        },
        "rpmIgnoreList": [],
        "questions": [],
        "rebootRequired": false
    },
    "patchInfo": {
        "timeToInstall": 0,
        "patchSummary": null
    },
    "mismatches": [
        {
            "text": {
                "id": "patch.rpm.no.storage.install.error.text",
                "translatable": "Insufficient storage space on partition \"%(0)s\".",
                "args": [
                    "/storage/log"
                ],
                "localized": "Insufficient storage space on partition \"/storage/log\"."
            },
            "description": {
                "id": "patch.rpm.no.storage.install.error.description",
                "translatable": "As part of the patch product rpms need to be installed on the system, however this won't be possible due to insufficient storage.",
                "localized": "As part of the patch product rpms need to be installed on the system, however this won't be possible due to insufficient storage."
            },
            "resolution": {
                "id": "patch.rpm.no.storage.install.error.resolution",
                "translatable": "Ensure that on partition \"%(0)s\" there is at least %(1)s MB free.",
                "args": [
                    "/storage/log",
                    "1"
                ],
                "localized": "Ensure that on partition \"/storage/log\" there is at least 1 MB free."
            },
            "problemId": null,
            "severity": "error",
            "relatedUserDataId": null
        }
    ]
}

Resolution

この問題を解決するには、影響を受けている /storage パーティションから、不要になった古いファイルやダンプファイルを削除して空き容量を確保します。

ファイルの削除例:

rm vmkernel-zdump.x

ファイルを削除せず保存しておきたい場合は、別の場所(/tmp など)に移動させます。
ファイルの移動例:

mv vmkernel-zdump.x /tmp

さらに、古いコアダンプファイルが存在する場合は、それらも削除の対象となります。

 

影響を受けている /storage パーティションの空き容量を十分に確保した後、vCenterのアップグレードを再開してください。

さらに、どのパーティションが満杯か特定する方法やクリーンアップ方法については、以下の記事も参照してください。

vCenter Server Appliance disk space is full

Additional Information