qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] iotests: 205: support only raw format
@ 2018-02-05 12:50 Vladimir Sementsov-Ogievskiy
  2018-02-05 15:40 ` Eric Blake
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Sementsov-Ogievskiy @ 2018-02-05 12:50 UTC (permalink / raw)
  To: qemu-devel, qemu-block; +Cc: mreitz, kwolf, vsementsov, den, eblake

The test is about qmp interface to NBD server, so there no reasons
to run it for various disk formats. Also it actually do not support
luks format, so, disable all format except raw.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
 tests/qemu-iotests/205 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/qemu-iotests/205 b/tests/qemu-iotests/205
index 10388920dc..a78ff37104 100644
--- a/tests/qemu-iotests/205
+++ b/tests/qemu-iotests/205
@@ -153,4 +153,4 @@ class TestNbdServerRemove(iotests.QMPTestCase):
 
 
 if __name__ == '__main__':
-    iotests.main()
+    iotests.main(supported_fmts=['raw'])
-- 
2.11.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] iotests: 205: support only raw format
  2018-02-05 12:50 [Qemu-devel] [PATCH] iotests: 205: support only raw format Vladimir Sementsov-Ogievskiy
@ 2018-02-05 15:40 ` Eric Blake
  2018-02-05 15:44   ` Daniel P. Berrangé
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Blake @ 2018-02-05 15:40 UTC (permalink / raw)
  To: Vladimir Sementsov-Ogievskiy, qemu-devel, qemu-block
  Cc: mreitz, kwolf, den, Daniel P. Berrange

[-- Attachment #1: Type: text/plain, Size: 1188 bytes --]

On 02/05/2018 06:50 AM, Vladimir Sementsov-Ogievskiy wrote:
> The test is about qmp interface to NBD server, so there no reasons
> to run it for various disk formats. Also it actually do not support
> luks format, so, disable all format except raw.
> 
> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
> ---
>  tests/qemu-iotests/205 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/qemu-iotests/205 b/tests/qemu-iotests/205
> index 10388920dc..a78ff37104 100644
> --- a/tests/qemu-iotests/205
> +++ b/tests/qemu-iotests/205
> @@ -153,4 +153,4 @@ class TestNbdServerRemove(iotests.QMPTestCase):
>  
>  
>  if __name__ == '__main__':
> -    iotests.main()
> +    iotests.main(supported_fmts=['raw'])

Isn't that stricter than necessary?  The test works with qcow2; it was
just luks that was special (because we weren't passing in proper
secrets).  At any rate, I'm adding Dan in case he has a quick idea of
what it would take to get luks working, rather than just disabling it.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] [PATCH] iotests: 205: support only raw format
  2018-02-05 15:40 ` Eric Blake
@ 2018-02-05 15:44   ` Daniel P. Berrangé
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel P. Berrangé @ 2018-02-05 15:44 UTC (permalink / raw)
  To: Eric Blake
  Cc: Vladimir Sementsov-Ogievskiy, qemu-devel, qemu-block, mreitz,
	kwolf, den

On Mon, Feb 05, 2018 at 09:40:20AM -0600, Eric Blake wrote:
> On 02/05/2018 06:50 AM, Vladimir Sementsov-Ogievskiy wrote:
> > The test is about qmp interface to NBD server, so there no reasons
> > to run it for various disk formats. Also it actually do not support
> > luks format, so, disable all format except raw.
> > 
> > Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
> > ---
> >  tests/qemu-iotests/205 | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/tests/qemu-iotests/205 b/tests/qemu-iotests/205
> > index 10388920dc..a78ff37104 100644
> > --- a/tests/qemu-iotests/205
> > +++ b/tests/qemu-iotests/205
> > @@ -153,4 +153,4 @@ class TestNbdServerRemove(iotests.QMPTestCase):
> >  
> >  
> >  if __name__ == '__main__':
> > -    iotests.main()
> > +    iotests.main(supported_fmts=['raw'])
> 
> Isn't that stricter than necessary?  The test works with qcow2; it was
> just luks that was special (because we weren't passing in proper
> secrets).  At any rate, I'm adding Dan in case he has a quick idea of
> what it would take to get luks working, rather than just disabling it.

For shell based tests it is not too difficult as I've got much fo the
support work done. This is a python tests though, so would need some
prep work first. The key is that you need to be able to add extra
args to QEMU to define the secret with --object, and use the full
blockdev options based syntax for -drive.

I'm not expecting you todo that unless you're actively interested in
it, so no objection to just disabling it

I will point out though there is an 'unsupported_fmts' arg to the
python tests, so a flexible fix would be to invert your patch todo

  unsupported_fmts=['luks']

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-05 15:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-05 12:50 [Qemu-devel] [PATCH] iotests: 205: support only raw format Vladimir Sementsov-Ogievskiy
2018-02-05 15:40 ` Eric Blake
2018-02-05 15:44   ` Daniel P. Berrangé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).