Project

General

Profile

Actions

Bug #13726

closed

QEMU hangs after creating snapshot and stopping VM

Added by Jason Dillaman over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Jason Dillaman
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
hammer,infernalis
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When RBD cache is disabled, taking a snapshot and stopping the VM results in a hung QEMU process. Setting "rbd_non_blocking_aio" to false apparently resolves the issue.

http://www.spinics.net/lists/ceph-devel/msg27170.html


Files

ceph.client.log (1010 KB) ceph.client.log alexandre derumier, 11/09/2015 02:01 PM

Related issues 3 (0 open3 closed)

Related to rbd - Bug #14988: QEMU VM hangs talking to RBD via librbdResolvedJason Dillaman03/05/2016

Actions
Copied to rbd - Backport #13755: QEMU hangs after creating snapshot and stopping VMResolvedAbhishek LekshmananActions
Copied to rbd - Backport #13756: QEMU hangs after creating snapshot and stopping VMResolvedAbhishek VarshneyActions
Actions #1

Updated by alexandre derumier over 8 years ago

I have attached the client log,

the snapshot create command was :

rbd -p pooltest --image vm-162-disk-1 snap create --snap snap1

Actions #2

Updated by Jason Dillaman over 8 years ago

In-flight AIO read request forces an image refresh due to out-of-band snapshot creation. Detecting the newly created snapshot forces librbd to flush all in-flight ops. If there are no in-flight ops to flush, it will enqueue a completion on the thread pool. However, the thread pool will be blocked handling the AIO request waiting for the flush to complete.

The synchronous ImageCtx::flush_async_operations() method cannot use async callbacks.

Actions #3

Updated by Jason Dillaman over 8 years ago

  • Backport set to hammer,infernalis
Actions #4

Updated by Jason Dillaman over 8 years ago

  • Status changed from New to In Progress
  • Assignee set to Jason Dillaman
Actions #5

Updated by Jason Dillaman over 8 years ago

  • Status changed from In Progress to Fix Under Review
Actions #6

Updated by alexandre derumier over 8 years ago

I confirm this is fixed with this PR.

(tested on infernalis)

Actions #7

Updated by Loïc Dachary over 8 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #8

Updated by Loïc Dachary over 8 years ago

  • Copied to Backport #13755: QEMU hangs after creating snapshot and stopping VM added
Actions #9

Updated by Loïc Dachary over 8 years ago

  • Copied to Backport #13756: QEMU hangs after creating snapshot and stopping VM added
Actions #10

Updated by Jason Dillaman over 8 years ago

  • Status changed from Pending Backport to Resolved
Actions #11

Updated by Nathan Cutler about 8 years ago

  • Related to Bug #14988: QEMU VM hangs talking to RBD via librbd added
Actions

Also available in: Atom PDF