Bug 2033 NBI leaves files orphaned in fsmongo 26/12126/1 v10.1.1 v10.1.1-rc1 v10.1.1rc2
authorbeierlm <mark.beierl@canonical.com>
Wed, 25 May 2022 18:11:11 +0000 (14:11 -0400)
committerbeierlm <mark.beierl@canonical.com>
Wed, 25 May 2022 18:11:11 +0000 (14:11 -0400)
commit0459bf8fbcdfbbf7c05c5a1c616997fa8571747a
treec671637a9b6418828ab1154f333d8da72e99d2fd
parentfa5e9072c50f40018fb07f8df901a0f0bb23edc3
Bug 2033 NBI leaves files orphaned in fsmongo

If any form of error occurs when uploading a package, including uploading
a package that already exists, the NBI will leave the unpacked descriptor's
files in fsmongo.  This change tracks fsmongo changes and rolls them back
on error.

Fixes Bug 2033

Change-Id: I4513747c10e469a01a1cef8b89986eb4b6ad59ae
Signed-off-by: beierlm <mark.beierl@canonical.com>
osm_nbi/descriptor_topics.py