Comment 2 for bug 1101048

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

Reviewed: https://review.openstack.org/20039
Committed: http://github.com/openstack/nova/commit/e306beac9297f4311aa3989e93b0bd19eb4d7c77
Submitter: Jenkins
Branch: master

commit e306beac9297f4311aa3989e93b0bd19eb4d7c77
Author: Devananda van der Veen <email address hidden>
Date: Fri Jan 18 09:40:37 2013 -0800

    PXE driver should rmtree directories it created

    Baremetal PXE driver was failing to delete the per-instance tftpboot and
    image directories which it created when the instance was deleted. This
    happened partly because of dangling files within the directory, and
    partly because 'unlink' does not remove directories and the error was
    squelched.

    Now, when destroy()ing an instance, PXE driver will call shutil.rmtree()
    on the per-instance directories which it created.

    Fixes bug 1101048.

    Change-Id: I682d0264288add488ea23e5d5200357b7be52dd9