[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 1/2] qapi/migration.json: add reason to MIGRATION event
From: |
Markus Armbruster |
Subject: |
Re: [PATCH v2 1/2] qapi/migration.json: add reason to MIGRATION event |
Date: |
Fri, 16 Feb 2024 07:17:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Roman Khapov <rkhapov@yandex-team.ru> writes:
> This commit adds the optional field reason for the events, which
> contains the string, describing reason of status changing.
> For example: reason of migration fail.
>
> Function migrate_set_state now accepts 4th argument: the reason to
> pass to event. Every call of this function appended with NULL argument.
>
> Also migrate_set_state_err_reason was added to form reason from Error*
>
> Signed-off-by: Roman Khapov <rkhapov@yandex-team.ru>
[...]
> diff --git a/qapi/migration.json b/qapi/migration.json
> index 5a565d9b8d..33bb5b7f50 100644
> --- a/qapi/migration.json
> +++ b/qapi/migration.json
> @@ -1392,6 +1392,7 @@
> # Emitted when a migration event happens
> #
> # @status: @MigrationStatus describing the current migration status.
> +# @reason: Optional description of status changing reason.
Intended use?
When is it present?
> #
> # Since: 2.4
> #
> @@ -1402,7 +1403,7 @@
> # "data": {"status": "completed"} }
> ##
> { 'event': 'MIGRATION',
> - 'data': {'status': 'MigrationStatus'}}
> + 'data': {'status': 'MigrationStatus', '*reason': 'str'}}
>
> ##
> # @MIGRATION_PASS:
[PATCH v2 2/2] migration: add error reason for failed MIGRATION events, Roman Khapov, 2024/02/15
Re: [PATCH v2 0/2] Field 'reason' for MIGRATION event, Fabiano Rosas, 2024/02/21