From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQdlm-0004QG-7d for qemu-devel@nongnu.org; Mon, 09 Jan 2017 12:30:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQdlj-00081T-2u for qemu-devel@nongnu.org; Mon, 09 Jan 2017 12:30:06 -0500 References: <1479837270-79005-1-git-send-email-vsementsov@virtuozzo.com> <1479837270-79005-16-git-send-email-vsementsov@virtuozzo.com> From: "Denis V. Lunev" Message-ID: <17f2544f-b91f-34a8-8c48-8992d0af105f@openvz.org> Date: Mon, 9 Jan 2017 18:57:41 +0300 MIME-Version: 1.0 In-Reply-To: <1479837270-79005-16-git-send-email-vsementsov@virtuozzo.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 15/17] iotests: add default node-name List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladimir Sementsov-Ogievskiy , qemu-block@nongnu.org, qemu-devel@nongnu.org Cc: pbonzini@redhat.com, armbru@redhat.com, eblake@redhat.com, famz@redhat.com, stefanha@redhat.com, amit.shah@redhat.com, quintela@redhat.com, mreitz@redhat.com, kwolf@redhat.com, peter.maydell@linaro.org, dgilbert@redhat.com, jsnow@redhat.com, lirans@il.ibm.com On 11/22/2016 08:54 PM, Vladimir Sementsov-Ogievskiy wrote: > When testing migration, auto-generated by qemu node-names differs in > source and destination qemu and migration fails. After this patch, > auto-generated by iotest nodenames will be the same. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > tests/qemu-iotests/iotests.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py > index f5ca4b8..264ee20 100644 > --- a/tests/qemu-iotests/iotests.py > +++ b/tests/qemu-iotests/iotests.py > @@ -162,7 +162,8 @@ class VM(qtest.QEMUQtestMachine): > def add_drive(self, path, opts='', interface='virtio', format=imgfmt): > '''Add a virtio-blk drive to the VM''' > options = ['if=%s' % interface, > - 'id=drive%d' % self._num_drives] > + 'id=drive%d' % self._num_drives, > + 'node-name=drivenode%d' % self._num_drives] > > if path is not None: > options.append('file=%s' % path) this patch is rotten, it breaks 041 test Correct code should be like this as was implemented originally. Den diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 28295a2..9272dce 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -199,6 +199,7 @@ class VM(object): options.append('file=%s' % path) options.append('format=%s' % imgfmt) options.append('cache=%s' % cachemode) + options.append('node-name=drivenode%d' % self._num_drives) if opts: options.append(opts)