[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/7] iotests/129: Use throttle node
From: |
Eric Blake |
Subject: |
Re: [PATCH 4/7] iotests/129: Use throttle node |
Date: |
Wed, 13 Jan 2021 08:53:53 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 |
On 1/13/21 8:10 AM, Max Reitz wrote:
> On 13.01.21 15:06, Max Reitz wrote:
>> Throttling on the BB has not affected block jobs in a while, so it is
>> possible that one of the jobs in 129 finishes before the VM is stopped.
>> We can fix that by running the job from a throttle node.
>>
>> Signed-off-by: Max Reitz <mreitz@redhat.com>
>> ---
>> tests/qemu-iotests/129 | 39 +++++++++++++++------------------------
>> 1 file changed, 15 insertions(+), 24 deletions(-)
>>
>> result = self.vm.qmp("stop")
>> self.assert_qmp(result, 'return', {})
>> result = self.vm.qmp("query-block-jobs")
>> +
>> self.assert_qmp(result, 'return[0]/status', 'running')
>> self.assert_qmp(result, 'return[0]/ready', False)
>> + self.vm.qmp("block-job-cancel", device="drive0", force=True)
>> +
>
> Sorry, somewhere along the way I forgot to remove this block-job-cancel.
> It’s still from
> https://lists.nongnu.org/archive/html/qemu-block/2019-06/msg00499.html
> and I don’t know why I added it there. It should probably go.
>
> ('stop' should have drained, that’s the point, so there shouldn’t be any
> further delay if we quit the VM without cancelling the job.)
Since the test still passes without the added block-job-cancel, I'm fine
with removing that line then adding:
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3226
Virtualization: qemu.org | libvirt.org
[PATCH 2/7] iotests/129: Remove test images in tearDown(), Max Reitz, 2021/01/13
[PATCH 1/7] iotests: Move try_remove to iotests.py, Max Reitz, 2021/01/13