cleanup build image environment

Bug #1451817 reported by Vladimir Kozhukalov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Vladimir Kozhukalov

Bug Description

We need to add final cleanup procedure into build image script so as to make sure environment will be cleaned if something goes wrong.

Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Aleksandr Gordeev (a-gordeev) → Vladimir Kozhukalov (kozhukalov)
status: Triaged → In Progress
Revision history for this message
Vladimir Kozhukalov (kozhukalov) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/177341
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=a62cdfbfcbc0525469cd1e0fcaef697550c123ed
Submitter: Jenkins
Branch: master

commit a62cdfbfcbc0525469cd1e0fcaef697550c123ed
Author: Alexander Gordeev <email address hidden>
Date: Tue Apr 28 20:59:39 2015 +0300

    IBP: add cleanup for image building

    This patch wraps image build procedure into
    try-except-finally and appends some cleaning actions
    into finally section. If something goes wrong during
    image building, build environment will be cleaned up.
    1) Stop running processes inside image chroot
    2) Umount image chroot
    3) Detach loop devices
    4) Remove temporary files

    Closes-Bug: #1451817
    Partially implements: blueprint ibp-build-ubuntu-images
    Change-Id: I7a7abf46f93fad3a3343dcf320781beec42f44bd

Changed in fuel:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.