Project

General

Profile

Actions

Bug #23502

closed

is_qemu_running in qemu_rebuild_object_map.sh and qemu_dynamic_features.sh may return false positive

Added by Mykola Golub about 6 years ago. Updated about 6 years ago.

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

0%

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

Description

http://qa-proxy.ceph.com/teuthology/smithfarm-2018-03-28_12:50:32-rbd-wip-jewel-backports-distro-basic-smithi/2330979/teuthology.log

It checks if the qemu is still running by listing the current image watchers. If the list is not empty it assumes that qemu is running and executes object map rebuild. But in this case the qemu just was stopped and rbd image removal started. And when the script checked for watchers it got non empty list due to rbd remove client, assumed it was qemu, tried object map rebuild and failed.

2018-03-28T14:16:37.026 INFO:tasks.qemu.client.0.smithi195.stdout:[ 2294.847787] Power down.
2018-03-28T14:16:37.344 DEBUG:tasks.qemu:checking that qemu tests succeeded...
2018-03-28T14:16:37.977 INFO:tasks.rbd:Deleting rbd clones...
2018-03-28T14:16:37.977 INFO:teuthology.orchestra.run.smithi195:Running: 'adjust-ulimits ceph-coverage /home/ubuntu/cephtest/archive/coverage rbd -p rbd rm client.0.1-clone'
2018-03-28T14:16:39.380 INFO:tasks.workunit.client.0.smithi195.stderr:+ is_qemu_running
2018-03-28T14:16:39.380 INFO:tasks.workunit.client.0.smithi195.stderr:+ rbd status client.0.1-clone
2018-03-28T14:16:39.381 INFO:tasks.workunit.client.0.smithi195.stderr:+ grep -v 'Watchers: none'
2018-03-28T14:16:39.442 INFO:tasks.workunit.client.0.smithi195.stdout:Watchers:
2018-03-28T14:16:39.442 INFO:tasks.workunit.client.0.smithi195.stdout:    watcher=172.21.15.195:0/935500 client.4236 cookie=139721862811120
2018-03-28T14:16:39.443 INFO:tasks.workunit.client.0.smithi195.stdout:*** Rebuilding object map
2018-03-28T14:16:39.443 INFO:tasks.workunit.client.0.smithi195.stderr:+ echo '*** Rebuilding object map'
2018-03-28T14:16:39.443 INFO:tasks.workunit.client.0.smithi195.stderr:+ rbd object-map rebuild client.0.1-clone

Related issues 2 (0 open2 closed)

Copied to rbd - Backport #23524: luminous: is_qemu_running in qemu_rebuild_object_map.sh and qemu_dynamic_features.sh may return false positiveResolvedPrashant DActions
Copied to rbd - Backport #23525: jewel: is_qemu_running in qemu_rebuild_object_map.sh and qemu_dynamic_features.sh may return false positiveResolvedNathan CutlerActions
Actions #1

Updated by Nathan Cutler about 6 years ago

  • Backport set to luminous,jewel
Actions #2

Updated by Mykola Golub about 6 years ago

  • Status changed from New to In Progress
  • Backport deleted (luminous,jewel)
Actions #3

Updated by Mykola Golub about 6 years ago

  • Backport set to luminous,jewel
Actions #4

Updated by Mykola Golub about 6 years ago

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

Updated by Jason Dillaman about 6 years ago

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

Updated by Nathan Cutler about 6 years ago

  • Copied to Backport #23524: luminous: is_qemu_running in qemu_rebuild_object_map.sh and qemu_dynamic_features.sh may return false positive added
Actions #7

Updated by Nathan Cutler about 6 years ago

  • Copied to Backport #23525: jewel: is_qemu_running in qemu_rebuild_object_map.sh and qemu_dynamic_features.sh may return false positive added
Actions #8

Updated by Nathan Cutler about 6 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF