Project

General

Profile

Bug #23502

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

Added by Mykola Golub about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
03/29/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
luminous,jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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

Copied to rbd - Backport #23524: luminous: is_qemu_running in qemu_rebuild_object_map.sh and qemu_dynamic_features.sh may return false positive Resolved
Copied to rbd - Backport #23525: jewel: is_qemu_running in qemu_rebuild_object_map.sh and qemu_dynamic_features.sh may return false positive Resolved

History

#1 Updated by Nathan Cutler about 1 year ago

  • Backport set to luminous,jewel

#2 Updated by Mykola Golub about 1 year ago

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

#3 Updated by Mykola Golub about 1 year ago

  • Backport set to luminous,jewel

#4 Updated by Mykola Golub about 1 year ago

  • Status changed from In Progress to Need Review

#5 Updated by Jason Dillaman about 1 year ago

  • Status changed from Need Review to Pending Backport

#6 Updated by Nathan Cutler about 1 year 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

#7 Updated by Nathan Cutler about 1 year 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

#8 Updated by Nathan Cutler about 1 year ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF