"Instance directory already exists. Reusing existing files." logged at every spawn

Bug #1747961 reported by Claudiu Belu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
compute-hyperv
Fix Released
Low
Unassigned

Bug Description

A recent patch in compute-hyperv allowed instances to be evacuated. It is checking if the instance's dir already exists (typically the case on shared storage), and if so, reuse it.

But, PathUtils' get_instance_dir always returns a path, which means that the mentioned message is always logged.

Claudiu Belu (cbelu)
Changed in compute-hyperv:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to compute-hyperv (master)

Reviewed: https://review.openstack.org/542263
Committed: https://git.openstack.org/cgit/openstack/compute-hyperv/commit/?id=c4c65971d366deb31d5ef716e28a8b0e580014b7
Submitter: Zuul
Branch: master

commit c4c65971d366deb31d5ef716e28a8b0e580014b7
Author: Lucian Petrut <email address hidden>
Date: Thu Feb 8 17:12:46 2018 +0200

    Fix instance dir check when spawning

    When spawning instances, we're checking if the instance dir
    already exists, in which case we're logging a message, stating
    that existing instance files will be reused.

    Well, at least that's what we thought we were doing. Actually,
    we're always logging this message as the check is wrong.

    This change fixes this issue.

    Change-Id: I6cf52ae23d90e687103e8bea0b6c4f9eaba6d36c
    Closes-Bug: #1747961

Changed in compute-hyperv:
status: New → Fix Released
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.