scheduler driver live_migration shared storage issues

Bug #891756 reported by Chris Behrens on 2011-11-17
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)

Bug Description

_live_migration_common_check tries to catch exception.NotFileFound when trying to do but something feels wrong here.

I'm refactoring scheduler tests and found this, but I don't know the intended behavior. The code around mounted_on_same_shared_storage() is confusing and doesn't seem quite right. I don't see why we raise NotFileFound only to catch it in the caller... instead of just checking the result of the calling function. Also good to note: If an exception occurs in compute manager's 'create_shared_storage_test_file', the to it will not re-raise the original exception. rpc.common.RemoteError will end up being raised on the calling side. I could see 'create_shared_storage_test_file' failing with OSError if the dir doesn't exist, etc...

I'm noting this bug ID in the code w/ my refactor for someone else to take a look at.

Chris Behrens (cbehrens) on 2011-11-17
description: updated
Chris Behrens (cbehrens) wrote :

Also: in _live_migration_common_check(), when FileNotFound is caught, it is re-raised. I don't think that's an appropriate exception to raise for a scheduler call. InvalidSharedStorage() might be more appropriate.

Thierry Carrez (ttx) on 2011-11-25
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Mandell (mdegerne) on 2012-03-02
Changed in nova:
assignee: nobody → Mandell (mdegerne)

Fix proposed to branch: master

Changed in nova:
status: Confirmed → In Progress
Thierry Carrez (ttx) on 2012-09-10
Changed in nova:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers