ae23c9
From afd502677f82814b106b0095104b350f982c067f Mon Sep 17 00:00:00 2001
ae23c9
From: Kevin Wolf <kwolf@redhat.com>
ae23c9
Date: Tue, 26 Jun 2018 09:48:36 +0200
ae23c9
Subject: [PATCH 128/268] qemu-iotests: Test job-* with block jobs
ae23c9
ae23c9
RH-Author: Kevin Wolf <kwolf@redhat.com>
ae23c9
Message-id: <20180626094856.6924-54-kwolf@redhat.com>
ae23c9
Patchwork-id: 81101
ae23c9
O-Subject: [RHV-7.6 qemu-kvm-rhev PATCH v2 53/73] qemu-iotests: Test job-* with block jobs
ae23c9
Bugzilla: 1513543
ae23c9
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
ae23c9
RH-Acked-by: Max Reitz <mreitz@redhat.com>
ae23c9
RH-Acked-by: Fam Zheng <famz@redhat.com>
ae23c9
ae23c9
This adds a test case that tests the new job-* QMP commands with
ae23c9
mirror and backup block jobs.
ae23c9
ae23c9
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
ae23c9
(cherry picked from commit bdebdc712b06ba82e103d617c335830682cde242)
ae23c9
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
ae23c9
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
ae23c9
---
ae23c9
 tests/qemu-iotests/219     | 209 +++++++++++++++++++++++++++++
ae23c9
 tests/qemu-iotests/219.out | 327 +++++++++++++++++++++++++++++++++++++++++++++
ae23c9
 tests/qemu-iotests/group   |   1 +
ae23c9
 3 files changed, 537 insertions(+)
ae23c9
 create mode 100755 tests/qemu-iotests/219
ae23c9
 create mode 100644 tests/qemu-iotests/219.out
ae23c9
ae23c9
diff --git a/tests/qemu-iotests/219 b/tests/qemu-iotests/219
ae23c9
new file mode 100755
ae23c9
index 0000000..898a26e
ae23c9
--- /dev/null
ae23c9
+++ b/tests/qemu-iotests/219
ae23c9
@@ -0,0 +1,209 @@
ae23c9
+#!/usr/bin/env python
ae23c9
+#
ae23c9
+# Copyright (C) 2018 Red Hat, Inc.
ae23c9
+#
ae23c9
+# This program is free software; you can redistribute it and/or modify
ae23c9
+# it under the terms of the GNU General Public License as published by
ae23c9
+# the Free Software Foundation; either version 2 of the License, or
ae23c9
+# (at your option) any later version.
ae23c9
+#
ae23c9
+# This program is distributed in the hope that it will be useful,
ae23c9
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
ae23c9
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
ae23c9
+# GNU General Public License for more details.
ae23c9
+#
ae23c9
+# You should have received a copy of the GNU General Public License
ae23c9
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
ae23c9
+#
ae23c9
+# Creator/Owner: Kevin Wolf <kwolf@redhat.com>
ae23c9
+#
ae23c9
+# Check using the job-* QMP commands with block jobs
ae23c9
+
ae23c9
+import iotests
ae23c9
+
ae23c9
+iotests.verify_image_format(supported_fmts=['qcow2'])
ae23c9
+
ae23c9
+def pause_wait(vm, job_id):
ae23c9
+    with iotests.Timeout(3, "Timeout waiting for job to pause"):
ae23c9
+        while True:
ae23c9
+            result = vm.qmp('query-jobs')
ae23c9
+            for job in result['return']:
ae23c9
+                if job['id'] == job_id and job['status'] in ['paused', 'standby']:
ae23c9
+                    return job
ae23c9
+
ae23c9
+# Test that block-job-pause/resume and job-pause/resume can be mixed
ae23c9
+def test_pause_resume(vm):
ae23c9
+    for pause_cmd, pause_arg in [('block-job-pause', 'device'),
ae23c9
+                                 ('job-pause', 'id')]:
ae23c9
+        for resume_cmd, resume_arg in [('block-job-resume', 'device'),
ae23c9
+                                       ('job-resume', 'id')]:
ae23c9
+            iotests.log('=== Testing %s/%s ===' % (pause_cmd, resume_cmd))
ae23c9
+
ae23c9
+            iotests.log(vm.qmp(pause_cmd, **{pause_arg: 'job0'}))
ae23c9
+            pause_wait(vm, 'job0')
ae23c9
+            iotests.log(iotests.filter_qmp_event(vm.event_wait('JOB_STATUS_CHANGE')))
ae23c9
+            iotests.log(vm.qmp('query-jobs'))
ae23c9
+
ae23c9
+            iotests.log(vm.qmp(resume_cmd, **{resume_arg: 'job0'}))
ae23c9
+            iotests.log(iotests.filter_qmp_event(vm.event_wait('JOB_STATUS_CHANGE')))
ae23c9
+            iotests.log(vm.qmp('query-jobs'))
ae23c9
+
ae23c9
+def test_job_lifecycle(vm, job, job_args, has_ready=False):
ae23c9
+    iotests.log('')
ae23c9
+    iotests.log('')
ae23c9
+    iotests.log('Starting block job: %s (auto-finalize: %s; auto-dismiss: %s)' %
ae23c9
+                (job,
ae23c9
+                 job_args.get('auto-finalize', True),
ae23c9
+                 job_args.get('auto-dismiss', True)))
ae23c9
+    iotests.log(vm.qmp(job, job_id='job0', **job_args))
ae23c9
+
ae23c9
+    # Depending on the storage, the first request may or may not have completed
ae23c9
+    # yet, so filter out the progress. Later query-job calls don't need the
ae23c9
+    # filtering because the progress is made deterministic by the block job
ae23c9
+    # speed
ae23c9
+    result = vm.qmp('query-jobs')
ae23c9
+    for j in result['return']:
ae23c9
+        del j['current-progress']
ae23c9
+    iotests.log(result)
ae23c9
+
ae23c9
+    # undefined -> created -> running
ae23c9
+    iotests.log(iotests.filter_qmp_event(vm.event_wait('JOB_STATUS_CHANGE')))
ae23c9
+    iotests.log(iotests.filter_qmp_event(vm.event_wait('JOB_STATUS_CHANGE')))
ae23c9
+
ae23c9
+    # RUNNING state:
ae23c9
+    # pause/resume should work, complete/finalize/dismiss should error out
ae23c9
+    iotests.log('')
ae23c9
+    iotests.log('Pause/resume in RUNNING')
ae23c9
+    test_pause_resume(vm)
ae23c9
+
ae23c9
+    iotests.log(vm.qmp('job-complete', id='job0'))
ae23c9
+    iotests.log(vm.qmp('job-finalize', id='job0'))
ae23c9
+    iotests.log(vm.qmp('job-dismiss', id='job0'))
ae23c9
+
ae23c9
+    iotests.log(vm.qmp('block-job-complete', device='job0'))
ae23c9
+    iotests.log(vm.qmp('block-job-finalize', id='job0'))
ae23c9
+    iotests.log(vm.qmp('block-job-dismiss', id='job0'))
ae23c9
+
ae23c9
+    # Let the job complete (or transition to READY if it supports that)
ae23c9
+    iotests.log(vm.qmp('block-job-set-speed', device='job0', speed=0))
ae23c9
+    if has_ready:
ae23c9
+        iotests.log('')
ae23c9
+        iotests.log('Waiting for READY state...')
ae23c9
+        vm.event_wait('BLOCK_JOB_READY')
ae23c9
+        iotests.log(iotests.filter_qmp_event(vm.event_wait('JOB_STATUS_CHANGE')))
ae23c9
+        iotests.log(vm.qmp('query-jobs'))
ae23c9
+
ae23c9
+        # READY state:
ae23c9
+        # pause/resume/complete should work, finalize/dismiss should error out
ae23c9
+        iotests.log('')
ae23c9
+        iotests.log('Pause/resume in READY')
ae23c9
+        test_pause_resume(vm)
ae23c9
+
ae23c9
+        iotests.log(vm.qmp('job-finalize', id='job0'))
ae23c9
+        iotests.log(vm.qmp('job-dismiss', id='job0'))
ae23c9
+
ae23c9
+        iotests.log(vm.qmp('block-job-finalize', id='job0'))
ae23c9
+        iotests.log(vm.qmp('block-job-dismiss', id='job0'))
ae23c9
+
ae23c9
+        # Transition to WAITING
ae23c9
+        iotests.log(vm.qmp('job-complete', id='job0'))
ae23c9
+
ae23c9
+    # Move to WAITING and PENDING state
ae23c9
+    iotests.log('')
ae23c9
+    iotests.log('Waiting for PENDING state...')
ae23c9
+    iotests.log(iotests.filter_qmp_event(vm.event_wait('JOB_STATUS_CHANGE')))
ae23c9
+    iotests.log(iotests.filter_qmp_event(vm.event_wait('JOB_STATUS_CHANGE')))
ae23c9
+
ae23c9
+    if not job_args.get('auto-finalize', True):
ae23c9
+        # PENDING state:
ae23c9
+        # finalize should work, pause/complete/dismiss should error out
ae23c9
+        iotests.log(vm.qmp('query-jobs'))
ae23c9
+
ae23c9
+        iotests.log(vm.qmp('job-pause', id='job0'))
ae23c9
+        iotests.log(vm.qmp('job-complete', id='job0'))
ae23c9
+        iotests.log(vm.qmp('job-dismiss', id='job0'))
ae23c9
+
ae23c9
+        iotests.log(vm.qmp('block-job-pause', device='job0'))
ae23c9
+        iotests.log(vm.qmp('block-job-complete', device='job0'))
ae23c9
+        iotests.log(vm.qmp('block-job-dismiss', id='job0'))
ae23c9
+
ae23c9
+        # Transition to CONCLUDED
ae23c9
+        iotests.log(vm.qmp('job-finalize', id='job0'))
ae23c9
+
ae23c9
+
ae23c9
+    # Move to CONCLUDED state
ae23c9
+    iotests.log(iotests.filter_qmp_event(vm.event_wait('JOB_STATUS_CHANGE')))
ae23c9
+
ae23c9
+    if not job_args.get('auto-dismiss', True):
ae23c9
+        # CONCLUDED state:
ae23c9
+        # dismiss should work, pause/complete/finalize should error out
ae23c9
+        iotests.log(vm.qmp('query-jobs'))
ae23c9
+
ae23c9
+        iotests.log(vm.qmp('job-pause', id='job0'))
ae23c9
+        iotests.log(vm.qmp('job-complete', id='job0'))
ae23c9
+        iotests.log(vm.qmp('job-finalize', id='job0'))
ae23c9
+
ae23c9
+        iotests.log(vm.qmp('block-job-pause', device='job0'))
ae23c9
+        iotests.log(vm.qmp('block-job-complete', device='job0'))
ae23c9
+        iotests.log(vm.qmp('block-job-finalize', id='job0'))
ae23c9
+
ae23c9
+        # Transition to NULL
ae23c9
+        iotests.log(vm.qmp('job-dismiss', id='job0'))
ae23c9
+
ae23c9
+    # Move to NULL state
ae23c9
+    iotests.log(iotests.filter_qmp_event(vm.event_wait('JOB_STATUS_CHANGE')))
ae23c9
+    iotests.log(vm.qmp('query-jobs'))
ae23c9
+
ae23c9
+
ae23c9
+with iotests.FilePath('disk.img') as disk_path, \
ae23c9
+     iotests.FilePath('copy.img') as copy_path, \
ae23c9
+     iotests.VM() as vm:
ae23c9
+
ae23c9
+    img_size = '4M'
ae23c9
+    iotests.qemu_img_create('-f', iotests.imgfmt, disk_path, img_size)
ae23c9
+    iotests.qemu_io('-c', 'write 0 %s' % (img_size),
ae23c9
+                    '-f', iotests.imgfmt, disk_path)
ae23c9
+
ae23c9
+    iotests.log('Launching VM...')
ae23c9
+    vm.add_blockdev(vm.qmp_to_opts({
ae23c9
+        'driver': iotests.imgfmt,
ae23c9
+        'node-name': 'drive0-node',
ae23c9
+        'file': {
ae23c9
+            'driver': 'file',
ae23c9
+            'filename': disk_path,
ae23c9
+        },
ae23c9
+    }))
ae23c9
+    vm.launch()
ae23c9
+
ae23c9
+    # In order to keep things deterministic (especially progress in query-job,
ae23c9
+    # but related to this also automatic state transitions like job
ae23c9
+    # completion), but still get pause points often enough to avoid making this
ae23c9
+    # test very slow, it's important to have the right ratio between speed and
ae23c9
+    # buf_size.
ae23c9
+    #
ae23c9
+    # For backup, buf_size is hard-coded to the source image cluster size (64k),
ae23c9
+    # so we'll pick the same for mirror. The slice time, i.e. the granularity
ae23c9
+    # of the rate limiting is 100ms. With a speed of 256k per second, we can
ae23c9
+    # get four pause points per second. This gives us 250ms per iteration,
ae23c9
+    # which should be enough to stay deterministic.
ae23c9
+
ae23c9
+    test_job_lifecycle(vm, 'drive-mirror', has_ready=True, job_args={
ae23c9
+        'device': 'drive0-node',
ae23c9
+        'target': copy_path,
ae23c9
+        'sync': 'full',
ae23c9
+        'speed': 262144,
ae23c9
+        'buf_size': 65536,
ae23c9
+    })
ae23c9
+
ae23c9
+    for auto_finalize in [True, False]:
ae23c9
+        for auto_dismiss in [True, False]:
ae23c9
+            test_job_lifecycle(vm, 'drive-backup', job_args={
ae23c9
+                'device': 'drive0-node',
ae23c9
+                'target': copy_path,
ae23c9
+                'sync': 'full',
ae23c9
+                'speed': 262144,
ae23c9
+                'auto-finalize': auto_finalize,
ae23c9
+                'auto-dismiss': auto_dismiss,
ae23c9
+            })
ae23c9
+
ae23c9
+    vm.shutdown()
ae23c9
diff --git a/tests/qemu-iotests/219.out b/tests/qemu-iotests/219.out
ae23c9
new file mode 100644
ae23c9
index 0000000..346801b
ae23c9
--- /dev/null
ae23c9
+++ b/tests/qemu-iotests/219.out
ae23c9
@@ -0,0 +1,327 @@
ae23c9
+Launching VM...
ae23c9
+
ae23c9
+
ae23c9
+Starting block job: drive-mirror (auto-finalize: True; auto-dismiss: True)
ae23c9
+{u'return': {}}
ae23c9
+{u'return': [{u'status': u'running', u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'created', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+
ae23c9
+Pause/resume in RUNNING
ae23c9
+=== Testing block-job-pause/block-job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 65536, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 131072, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+=== Testing block-job-pause/job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 131072, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 196608, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+=== Testing job-pause/block-job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 196608, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 262144, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+=== Testing job-pause/job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 262144, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 327680, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'finalize'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'finalize'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'return': {}}
ae23c9
+
ae23c9
+Waiting for READY state...
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'ready', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'ready', u'current-progress': 4194304, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+
ae23c9
+Pause/resume in READY
ae23c9
+=== Testing block-job-pause/block-job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'standby', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'standby', u'current-progress': 4194304, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'ready', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'ready', u'current-progress': 4194304, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+=== Testing block-job-pause/job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'standby', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'standby', u'current-progress': 4194304, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'ready', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'ready', u'current-progress': 4194304, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+=== Testing job-pause/block-job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'standby', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'standby', u'current-progress': 4194304, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'ready', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'ready', u'current-progress': 4194304, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+=== Testing job-pause/job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'standby', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'standby', u'current-progress': 4194304, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'ready', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'ready', u'current-progress': 4194304, u'total-progress': 4194304, u'id': u'job0', u'type': u'mirror'}]}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'ready' cannot accept command verb 'finalize'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'ready' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'ready' cannot accept command verb 'finalize'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'ready' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'return': {}}
ae23c9
+
ae23c9
+Waiting for PENDING state...
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'waiting', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'pending', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'concluded', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'null', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': []}
ae23c9
+
ae23c9
+
ae23c9
+Starting block job: drive-backup (auto-finalize: True; auto-dismiss: True)
ae23c9
+{u'return': {}}
ae23c9
+{u'return': [{u'status': u'running', u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'created', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+
ae23c9
+Pause/resume in RUNNING
ae23c9
+=== Testing block-job-pause/block-job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 65536, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 131072, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+=== Testing block-job-pause/job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 131072, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 196608, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+=== Testing job-pause/block-job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 196608, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 262144, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+=== Testing job-pause/job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 262144, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 327680, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'finalize'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'finalize'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'return': {}}
ae23c9
+
ae23c9
+Waiting for PENDING state...
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'waiting', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'pending', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'concluded', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'null', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': []}
ae23c9
+
ae23c9
+
ae23c9
+Starting block job: drive-backup (auto-finalize: True; auto-dismiss: False)
ae23c9
+{u'return': {}}
ae23c9
+{u'return': [{u'status': u'running', u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'created', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+
ae23c9
+Pause/resume in RUNNING
ae23c9
+=== Testing block-job-pause/block-job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 65536, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 131072, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+=== Testing block-job-pause/job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 131072, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 196608, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+=== Testing job-pause/block-job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 196608, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 262144, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+=== Testing job-pause/job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 262144, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 327680, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'finalize'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'finalize'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'return': {}}
ae23c9
+
ae23c9
+Waiting for PENDING state...
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'waiting', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'pending', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'concluded', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'concluded', u'current-progress': 4194304, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'concluded' cannot accept command verb 'pause'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'concluded' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'concluded' cannot accept command verb 'finalize'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'concluded' cannot accept command verb 'pause'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'concluded' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'concluded' cannot accept command verb 'finalize'"}}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'null', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': []}
ae23c9
+
ae23c9
+
ae23c9
+Starting block job: drive-backup (auto-finalize: False; auto-dismiss: True)
ae23c9
+{u'return': {}}
ae23c9
+{u'return': [{u'status': u'running', u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'created', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+
ae23c9
+Pause/resume in RUNNING
ae23c9
+=== Testing block-job-pause/block-job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 65536, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 131072, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+=== Testing block-job-pause/job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 131072, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 196608, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+=== Testing job-pause/block-job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 196608, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 262144, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+=== Testing job-pause/job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 262144, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 327680, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'finalize'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'finalize'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'return': {}}
ae23c9
+
ae23c9
+Waiting for PENDING state...
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'waiting', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'pending', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'pending', u'current-progress': 4194304, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'pending' cannot accept command verb 'pause'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'pending' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'pending' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'pending' cannot accept command verb 'pause'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'pending' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'pending' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'concluded', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'null', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': []}
ae23c9
+
ae23c9
+
ae23c9
+Starting block job: drive-backup (auto-finalize: False; auto-dismiss: False)
ae23c9
+{u'return': {}}
ae23c9
+{u'return': [{u'status': u'running', u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'created', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+
ae23c9
+Pause/resume in RUNNING
ae23c9
+=== Testing block-job-pause/block-job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 65536, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 131072, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+=== Testing block-job-pause/job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 131072, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 196608, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+=== Testing job-pause/block-job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 196608, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 262144, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+=== Testing job-pause/job-resume ===
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'paused', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'paused', u'current-progress': 262144, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'running', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'running', u'current-progress': 327680, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'finalize'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'finalize'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'running' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'return': {}}
ae23c9
+
ae23c9
+Waiting for PENDING state...
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'waiting', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'pending', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'pending', u'current-progress': 4194304, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'pending' cannot accept command verb 'pause'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'pending' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'pending' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'pending' cannot accept command verb 'pause'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'pending' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'pending' cannot accept command verb 'dismiss'"}}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'concluded', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': [{u'status': u'concluded', u'current-progress': 4194304, u'total-progress': 4194304, u'id': u'job0', u'type': u'backup'}]}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'concluded' cannot accept command verb 'pause'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'concluded' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'concluded' cannot accept command verb 'finalize'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'concluded' cannot accept command verb 'pause'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'concluded' cannot accept command verb 'complete'"}}
ae23c9
+{u'error': {u'class': u'GenericError', u'desc': u"Job 'job0' in state 'concluded' cannot accept command verb 'finalize'"}}
ae23c9
+{u'return': {}}
ae23c9
+{u'timestamp': {u'seconds': 'SECS', u'microseconds': 'USECS'}, u'data': {u'status': u'null', u'id': u'job0'}, u'event': u'JOB_STATUS_CHANGE'}
ae23c9
+{u'return': []}
ae23c9
diff --git a/tests/qemu-iotests/group b/tests/qemu-iotests/group
ae23c9
index cd7bc29..5c55adc 100644
ae23c9
--- a/tests/qemu-iotests/group
ae23c9
+++ b/tests/qemu-iotests/group
ae23c9
@@ -217,3 +217,4 @@
ae23c9
 216 rw auto quick
ae23c9
 217 rw auto quick
ae23c9
 218 rw auto quick
ae23c9
+219 rw auto
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9