scheduler driver live_migration shared storage issues

Bug #891756 reported by Chris Behrens
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Mandell

Bug Description

_live_migration_common_check tries to catch exception.NotFileFound when trying to do rpc.call()s... 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 rpc.call 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)
description: updated
Revision history for this message
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)
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Mandell (mdegerne)
Changed in nova:
assignee: nobody → Mandell (mdegerne)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/4856

Changed in nova:
status: Confirmed → In Progress
Thierry Carrez (ttx)
Changed in nova:
status: In Progress → 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.