Comment 2 for bug 1937168

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/c/starlingx/config/+/801706
Committed: https://opendev.org/starlingx/config/commit/5b93236b60f2ee58b2a8631badb88e4eca0ffb5e
Submitter: "Zuul (22348)"
Branch: master

commit 5b93236b60f2ee58b2a8631badb88e4eca0ffb5e
Author: Adriano Oliveira <email address hidden>
Date: Thu Jul 22 02:47:36 2021 -0400

    Remove load image file in case of import error

    In a scenario in which the AMQP Server lost connection, a TimeoutError
    occurred on the start_import_load RPC call to sysinv conductor.
    This error was not handled so the temporary file was not removed.
    The current staging cleanup routine was extended to handle
    TimeoutError. Also, when writing the file to disk a possible out of
    space error was detected and the file removed.

    Tests were performed by killing sysinv-conductor and generating the
    TimeoutError on the RPC call to conductor.
    Also, no space available was simulated by adding files to the
    /scratch partition.
    Scenario of successful load-import was also tested, as well
    load-delete.

    Closes-Bug: 1937168
    Signed-off-by: Adriano Oliveira <email address hidden>
    Change-Id: Ic23787df9a765a9374b4dd33f9242ee000cbf75c