Bug 2032 NBI leaves files orphaned in fsmongo 27/12127/1 v11.0.3
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:26:03 +0000 (20:26 +0200)
commitdbf754dc846f21d3474431572e6dc338b1b6de67
tree3416f8f4f845724ffa5fbaa417533ac1daffaf25
parent4344f7a55915a0d1571189730c55fb31c3c03056
Bug 2032 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 20332

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