Skip to contentSkip to conversation

qemu-img: complains about missing iscsi option group

Qemu-devel Peter Lieven 3 participants 10 messages Jan 19, 2017 – Jan 24, 2017

lore
Share & tools
lore
#0 lore raw

Hi all,

since commit f57b4b5 (blockdev: prepare iSCSI block driver for dynamic loading)

qemu-img complains about a missing option group several times.

~/git/qemu$ ./qemu-img info iscsi://172.21.200.56:3260/iqn.2001-05.com.equallogic:0-8a0906-69d384e0a-aa3004e55e15878d-00lieven-data/0
qemu-img: There is no option group 'iscsi'
qemu-img: There is no option group 'iscsi'
qemu-img: There is no option group 'iscsi'
qemu-img: There is no option group 'iscsi'
image: iscsi://172.21.200.56:3260/iqn.2001-05.com.equallogic:0-8a0906-69d384e0a-aa3004e55e15878d-00lieven-data/0 file format: raw
virtual size: 25G (26848788480 bytes)
disk size: unavailable
cluster_size: 15728640

I don't know whats the proper way to fix this?

Thanks,

Peter

#1 lore raw
Quoted 19 lines · Peter Lieven

Hi all,

since commit f57b4b5 (blockdev: prepare iSCSI block driver for dynamic loading)

qemu-img complains about a missing option group several times.

~/git/qemu$ ./qemu-img info iscsi://172.21.200.56:3260/iqn.2001-05.com.equallogic:0-8a0906-69d384e0a-aa3004e55e15878d-00lieven-data/0
qemu-img: There is no option group 'iscsi'
qemu-img: There is no option group 'iscsi'
qemu-img: There is no option group 'iscsi'
qemu-img: There is no option group 'iscsi'
image: iscsi://172.21.200.56:3260/iqn.2001-05.com.equallogic:0-8a0906-69d384e0a-aa3004e55e15878d-00lieven-data/0 file format: raw
virtual size: 25G (26848788480 bytes)
disk size: unavailable
cluster_size: 15728640

Quoted 1 line

I don't know whats the proper way to fix this?

Move the iscsi option registration out of vl.c and back into a shared file in block/ such that all programs see the options, not just the emulators.

Regards,
Daniel

Signature · 3 lines
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|
#2 lore raw

Am 19.01.2017 um 17:38 schrieb Daniel P. Berrange:

Quoted 20 lines · Peter Lieven
Quoted 19 lines

Hi all,

since commit f57b4b5 (blockdev: prepare iSCSI block driver for dynamic loading)

qemu-img complains about a missing option group several times.

~/git/qemu$ ./qemu-img info iscsi://172.21.200.56:3260/iqn.2001-05.com.equallogic:0-8a0906-69d384e0a-aa3004e55e15878d-00lieven-data/0
qemu-img: There is no option group 'iscsi'
qemu-img: There is no option group 'iscsi'
qemu-img: There is no option group 'iscsi'
qemu-img: There is no option group 'iscsi'
image: iscsi://172.21.200.56:3260/iqn.2001-05.com.equallogic:0-8a0906-69d384e0a-aa3004e55e15878d-00lieven-data/0 file format: raw
virtual size: 25G (26848788480 bytes)
disk size: unavailable
cluster_size: 15728640

Quoted 3 lines
Quoted 1 line

I don't know whats the proper way to fix this?

Move the iscsi option registration out of vl.c and back into a shared file in block/ such that all programs see the options, not just the emulators.

Any preference which file? It seems no other block driver registers options.

Thanks,
Peter

#3 lore raw
Quoted 21 lines · Peter Lieven

Am 19.01.2017 um 17:38 schrieb Daniel P. Berrange:

Quoted 20 lines · Peter Lieven
Quoted 19 lines

Hi all,

since commit f57b4b5 (blockdev: prepare iSCSI block driver for dynamic loading)

qemu-img complains about a missing option group several times.

~/git/qemu$ ./qemu-img info iscsi://172.21.200.56:3260/iqn.2001-05.com.equallogic:0-8a0906-69d384e0a-aa3004e55e15878d-00lieven-data/0
qemu-img: There is no option group 'iscsi'
qemu-img: There is no option group 'iscsi'
qemu-img: There is no option group 'iscsi'
qemu-img: There is no option group 'iscsi'
image: iscsi://172.21.200.56:3260/iqn.2001-05.com.equallogic:0-8a0906-69d384e0a-aa3004e55e15878d-00lieven-data/0 file format: raw
virtual size: 25G (26848788480 bytes)
disk size: unavailable
cluster_size: 15728640

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

I don't know whats the proper way to fix this?

Move the iscsi option registration out of vl.c and back into a shared file in block/ such that all programs see the options, not just the emulators.

Any preference which file? It seems no other block driver registers options.

ISCSI is somewhat bizarre in that it has a separate global -iscsi arg instead of just accepting all args via the -drive spec like every other block driver does, so there's no precedent to follow.

So suggest we just need a block/iscsi-global.c to deal with this.

Regards,
Daniel

Signature · 3 lines
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|
#4 lore raw
Quoted 8 lines · Daniel P. Berrange
Quoted 3 lines
Quoted 2 lines

Move the iscsi option registration out of vl.c and back into a shared file in block/ such that all programs see the options, not just the emulators.

Any preference which file? It seems no other block driver registers options.

ISCSI is somewhat bizarre in that it has a separate global -iscsi arg instead of just accepting all args via the -drive spec like every other block driver does, so there's no precedent to follow.

So suggest we just need a block/iscsi-global.c to deal with this.

Why not block/iscsi.c itself?

Paolo

#5 lore raw

Am 24.01.2017 um 12:24 schrieb Paolo Bonzini:

Quoted 11 lines · Daniel P. Berrange
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines

Move the iscsi option registration out of vl.c and back into a shared file in block/ such that all programs see the options, not just the emulators.

Any preference which file? It seems no other block driver registers options.

ISCSI is somewhat bizarre in that it has a separate global -iscsi arg instead of just accepting all args via the -drive spec like every other block driver does, so there's no precedent to follow.

So suggest we just need a block/iscsi-global.c to deal with this.

Why not block/iscsi.c itself?

As far as I understand block/iscsi is now compiled as a shared object.

Peter

#6 lore raw
Quoted 9 lines · Peter Lieven

Am 24.01.2017 um 12:24 schrieb Paolo Bonzini:

Quoted 8 lines · Daniel P. Berrange
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

Move the iscsi option registration out of vl.c and back into a shared file
in block/ such that all programs see the options, not just the emulators.

Any preference which file? It seems no other block driver registers options.

Quoted 8 lines
Quoted 6 lines
Quoted 5 lines

ISCSI is somewhat bizarre in that it has a separate global -iscsi arg instead of just accepting all args via the -drive spec like every other block driver does, so there's no precedent to follow.

So suggest we just need a block/iscsi-global.c to deal with this.

Why not block/iscsi.c itself?

As far as I understand block/iscsi is now compiled as a shared object.

Uh, right. :(

Paolo

#7 lore raw

Am 24.01.2017 um 12:29 schrieb Paolo Bonzini:

Quoted 10 lines · Peter Lieven
Quoted 8 lines

Am 24.01.2017 um 12:24 schrieb Paolo Bonzini:

Quoted 7 lines · Daniel P. Berrange
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

Move the iscsi option registration out of vl.c and back into a shared file
in block/ such that all programs see the options, not just the emulators.

Any preference which file? It seems no other block driver registers options.

Quoted 8 lines
Quoted 7 lines
Quoted 6 lines
Quoted 5 lines

ISCSI is somewhat bizarre in that it has a separate global -iscsi arg instead of just accepting all args via the -drive spec like every other block driver does, so there's no precedent to follow.

So suggest we just need a block/iscsi-global.c to deal with this.

Why not block/iscsi.c itself?

As far as I understand block/iscsi is now compiled as a shared object.

Uh, right. :(

Okay, so a new file iscsi-static.c ?

Peter

#8 lore raw
Quoted 16 lines · Peter Lieven

Am 24.01.2017 um 12:29 schrieb Paolo Bonzini:

Quoted 15 lines · Peter Lieven
Quoted 13 lines

Am 24.01.2017 um 12:24 schrieb Paolo Bonzini:

Quoted 12 lines · Daniel P. Berrange
Quoted 11 lines
Quoted 6 lines
Quoted 4 lines

Move the iscsi option registration out of vl.c and back into a shared file
in block/ such that all programs see the options, not just the emulators.

Any preference which file? It seems no other block driver registers options.

ISCSI is somewhat bizarre in that it has a separate global -iscsi arg instead of just accepting all args via the -drive spec like every other
block driver does, so there's no precedent to follow.

Quoted 6 lines
Quoted 4 lines
Quoted 3 lines
Quoted 2 lines
Quoted 1 line

So suggest we just need a block/iscsi-global.c to deal with this.

Why not block/iscsi.c itself?

As far as I understand block/iscsi is now compiled as a shared object.

Uh, right. :(

Okay, so a new file iscsi-static.c ?

Yes, something like that. Or block/iscsi-opts.c too.

Paolo

#9 lore raw
In reply to Paolo Bonzini
Quoted 5 lines · Paolo Bonzini
Quoted 2 lines · Daniel P. Berrange
Quoted 2 lines
Quoted 2 lines

Move the iscsi option registration out of vl.c and back into a shared file in block/ such that all programs see the options, not just the emulators.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

Any preference which file? It seems no other block driver registers options.

ISCSI is somewhat bizarre in that it has a separate global -iscsi arg instead of just accepting all args via the -drive spec like every other block driver does, so there's no precedent to follow.

So suggest we just need a block/iscsi-global.c to deal with this.

Why not block/iscsi.c itself?

block/iscsi.c is a module, so not linked to qemu emulators by default. You could still have the iscsi options in that file if you used a conditional and built the same file twice with different content, but it seems easier to just use a separate file

Regards,
Daniel

Signature · 3 lines
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|