------- Comment From mauri...@br.ibm.com 2017-02-24 09:06 EDT-------
Closing.

The fix for this is applied on the Xenial HWE kernels, at least on the
following levels:

linux-hwe 4.8.0-39.42_16.04.1 [1] (available on xenial-updates)
linux-hwe-edge 4.10.0-10.12_16.04.1 [2] (not yet, but soon should be, once 
17.04 with kernel 4.10 is released)

[1] 
http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/log/block/scsi_ioctl.c?h=Ubuntu-hwe-4.8.0-39.42_16.04.1
[2] 
http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/log/block/scsi_ioctl.c/?h=d89cfab979e6688a8a114bdd37428534d681180f
== Comment: #35 - Mauricio Faria De Oliveira - 2016-12-19 09:20:41 ==
Hi Canonical,

Could you please apply this patch [1] for 16.04.x HWE 4.8 ?

It has not yet been accepted by the block subsystem maintainer Jens Axboe,
but good a reviewed-by tag from Christoph Hellwig [2].

The change is very straightforward and clearly spottable/documented,
so if at all possible, I think it wouldn't be a problem for it to be SAUCE 
commit for now.

Thank you,

[PATCH RESEND] block: allow WRITE_SAME commands with the SG_IO ioctl

[1] https://lkml.org/lkml/2016/12/15/503
[2] https://lkml.org/lkml/2016/12/19/132

== Comment: #36 - Mauricio Faria De Oliveira - 2016-12-19 12:39:24 ==
(In reply to comment #35)
> Hi Canonical,
>
> Could you please apply this patch [1] for 16.04.x HWE 4.8 ?
>
> It has not yet been accepted by the block subsystem maintainer Jens Axboe,
> but good a reviewed-by tag from Christoph Hellwig [2].

Hey, it just got word from Jens; added to 4.10 [3].

[3] https://lkml.org/lkml/2016/12/19/318

== Comment: #37 - Mauricio Faria De Oliveira - 2016-12-19 12:40:51 ==
(In reply to comment #36)
> (In reply to comment #35)
> > Hi Canonical,
> >
> > Could you please apply this patch [1] for 16.04.x HWE 4.8 ?
> >
> > It has not yet been accepted by the block subsystem maintainer Jens Axboe,
> > but good a reviewed-by tag from Christoph Hellwig [2].
>
> Hey, it just got word from Jens; added to 4.10 [3].

And here is it in his branch on g.k.o [4]

[4] http://git.kernel.org/cgit/linux/kernel/git/axboe/linux-
block.git/commit/?h=for-
linus&id=25cdb64510644f3e854d502d69c73f21c6df88a9

Bug History:

== Comment: #0 - Manjunatha H R - 2016-12-06 01:52:11 ==
Ubuntu16.04.2 KVM guest having NPIV disks shows following traces upon 
installing any package:

root@lotg5:~# apt-get install -y python-paramiko
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python-crypto python-ecdsa python-six
Suggested packages:
python-crypto-dbg python-crypto-doc
The following NEW packages will be installed:
python-crypto python-ecdsa python-paramiko python-six
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 404 kB of archives.
After this operation, 3,092 kB of additional disk space will be used.
Get:1 http://us.ports.ubuntu.com/ubuntu-ports xenial/main ppc64el python-crypto 
ppc64el 2.6.1-6build1 [251 kB]
Get:2 http://us.ports.ubuntu.com/ubuntu-ports xenial/main ppc64el python-six 
all 1.10.0-3 [10.9 kB]
Get:3 http://us.ports.ubuntu.com/ubuntu-ports xenial/main ppc64el python-ecdsa 
all 0.13-2 [34.0 kB]
Get:4 http://us.ports.ubuntu.com/ubuntu-ports xenial/main ppc64el 
python-paramiko all 1.16.0-1 [109 kB]
Fetched 404 kB in 5s (72.6 kB/s)
Selecting previously unselected package python-crypto.
(Reading database ... 104986 files and directories currently installed.)
Preparing to unpack .../python-crypto_2.6.1-6build1_ppc64el.deb ...
Unpacking python-crypto (2.6.1-6build1) ...
[  529.051285] blk_update_request: I/O error, dev sda, sector 17096824
[  529.175195] blk_update_request: I/O error, dev sda, sector 5009416
[  529.239143] blk_update_request: I/O error, dev sda, sector 5009440
[  529.303689] blk_update_request: I/O error, dev sda, sector 5009480
[  529.375233] blk_update_request: I/O error, dev sda, sector 5009488
[  529.455172] blk_update_request: I/O error, dev sda, sector 5009520
[  529.535189] blk_update_request: I/O error, dev sda, sector 5009544
[  529.595205] blk_update_request: I/O error, dev sda, sector 5009576
[  529.675198] blk_update_request: I/O error, dev sda, sector 5009600
[  529.755205] blk_update_request: I/O error, dev sda, sector 5009608
[  534.103339] blk_update_request: I/O error, dev sda, sector 5005904
[  534.187173] blk_update_request: I/O error, dev sda, sector 5005936
[  534.251191] blk_update_request: I/O error, dev sda, sector 5006000
[  534.323185] blk_update_request: I/O error, dev sda, sector 5006032
[  534.407207] blk_update_request: I/O error, dev sda, sector 5006040
[  534.487177] blk_update_request: I/O error, dev sda, sector 5006048
[  534.555229] blk_update_request: I/O error, dev sda, sector 5006056
[  534.639177] blk_update_request: I/O error, dev sda, sector 5006064
[  534.703178] blk_update_request: I/O error, dev sda, sector 63468736
[  534.783175] blk_update_request: I/O error, dev sda, sector 5006080
Selecting previously unselected package python-six.
Preparing to unpack .../python-six_1.10.0-3_all.deb ...
Unpacking python-six (1.10.0-3) ...
[  539.179209] blk_update_request: I/O error, dev sda, sector 5006840
[  539.271201] blk_update_request: I/O error, dev sda, sector 5095584
[  539.335185] blk_update_request: I/O error, dev sda, sector 5095592
[  539.415193] blk_update_request: I/O error, dev sda, sector 5095600
Selecting previously unselected package python-ecdsa.
Preparing to unpack .../python-ecdsa_0.13-2_all.deb ...
Unpacking python-ecdsa (0.13-2) ...
[  539.547207] blk_update_request: I/O error, dev sda, sector 5006904
[  539.627181] blk_update_request: I/O error, dev sda, sector 5006912
[  539.707183] blk_update_request: I/O error, dev sda, sector 5006920
[  539.779174] blk_update_request: I/O error, dev sda, sector 5006928
[  539.843205] blk_update_request: I/O error, dev sda, sector 5006960
[  539.923169] blk_update_request: I/O error, dev sda, sector 5006968
Selecting previously unselected package python-paramiko.
Preparing to unpack .../python-paramiko_1.16.0-1_all.deb ...
Unpacking python-paramiko (1.16.0-1) ...
Setting up python-crypto (2.6.1-6build1) ...
Setting up python-six (1.10.0-3) ...
Setting up python-ecdsa (0.13-2) ...
Setting up python-paramiko (1.16.0-1) ...

These traces are seen only on guest with uses NPIV disks.

Guest using following NPIV disks from host:
----------------------------------
root@lotkvm:~# virsh vol-list poolvhba0 --details
Name         Path                                                             
Type    Capacity  Allocation
------------------------------------------------------------------------------------------------------------
unit:0:0:4   /dev/disk/by-path/pci-0001:09:00.0-fc-0x500507680215e2c6-lun-4   
block  42.00 GiB   42.00 GiB
unit:0:0:5   /dev/disk/by-path/pci-0001:09:00.0-fc-0x500507680215e2c6-lun-5   
block  31.00 GiB   31.00 GiB
unit:0:0:6   /dev/disk/by-path/pci-0001:09:00.0-fc-0x500507680215e2c6-lun-6   
block  31.00 GiB   31.00 GiB

Guest XML for Disks:
---------------------------
<disk type='volume' device='lun'>
<driver name='qemu' type='raw' cache='none'/>
<source pool='poolvhba0' volume='unit:0:0:4'/>
<backingStore/>
<target dev='hd0' bus='scsi'/>
<alias name='scsi0-0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<disk type='volume' device='lun'>
<driver name='qemu' type='raw' cache='none'/>
<source pool='poolvhba0' volume='unit:0:0:5'/>
<backingStore/>
<target dev='hd1' bus='scsi'/>
<alias name='scsi0-0-0-1'/>
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
<disk type='volume' device='lun'>
<driver name='qemu' type='raw' cache='none'/>
<source pool='poolvhba0' volume='unit:0:0:6'/>
<backingStore/>
<target dev='hd2' bus='scsi'/>
<alias name='scsi0-0-0-2'/>
<address type='drive' controller='0' bus='0' target='0' unit='2'/>
</disk>

Guest build:
----------------
Ubuntu16.04.2:
Linux lotg5 4.8.0-28-generic #30~16.04.1-Ubuntu SMP Mon Nov 21 12:02:06 UTC 
2016 ppc64le ppc64le ppc64le GNU/Linux

Host build:
---------------
Ubuntu16.04.2
Linux lotkvm 4.8.0-28-generic #30~16.04.1-Ubuntu SMP Mon Nov 21 12:02:06 UTC 
2016 ppc64le ppc64le ppc64le GNU/Linux

== Comment: #19 - Mauricio Faria De Oliveira - 2016-12-07 14:21:49 ==
Okay, the SCSI Write Same command is not being allowed for unprivileged users 
(e.g., libvirt-qemu, which is used to run guests with libvirt) on this kernel.

By running the command as user libvirt-qemu in the host, the failure can
be reproduced.

Debugging the kernel.

root@lotkvm:~/mauricfo# sg_write_same -vv --10 --num 8 --xferlen 512 --lba 
17096824 /dev/sdak
open /dev/sdak with flags=0x802
Default data-out buffer set to 512 zeros
Write same(10) cmd: 41 00 01 04 e0 78 00 00 08 00
Data-out buffer length=512

root@lotkvm:~/mauricfo# sudo -u libvirt-qemu sg_write_same -vv --10 --num 8 
--xferlen 512 --lba 17096824 /dev/sdak
open /dev/sdak with flags=0x802
Default data-out buffer set to 512 zeros
Write same(10) cmd: 41 00 01 04 e0 78 00 00 08 00
Data-out buffer length=512
ioctl(SG_IO v3) failed: Operation not permitted (errno=1)
Write same: pass through os error: Operation not permitted
Write same(10): Sense category: -1, try '-v' option for more information

== Comment: #26 - Richard M. Scheller - 2016-12-12 15:56:50 ==
I installed the 4.8.0-131 test kernel on my Ubuntu 16.04 KVM host, dotkvm.  It 
fixed the guest multipath I/O problem that I reported in bug 149832, which 
turned out to be a dup of this bug.

== Comment: #27 - Manjunatha H R - 2016-12-15 01:16:01 ==
(In reply to comment #25)
> Manju,
>
> Please pay attention to the emphasis that is present in the test-request
> comment:

> You installed the kernel in the guest.

Apologies, last time I missed to install patched kernel on the host.

Verified the same set of patches on lotkvm too, which helps to fix the
issue..

root@lotkvm:~# uname -r
4.8.0-131-generic

root@lotg5:~# apt-get install docker
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-52 linux-headers-4.4.0-52-generic
linux-image-4.4.0-52-generic linux-image-extra-4.4.0-52-generic
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
docker
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.9 kB of archives.
After this operation, 69.6 kB of additional disk space will be used.
Get:1 http://us.ports.ubuntu.com/ubuntu-ports xenial/universe ppc64el docker 
ppc64el 1.5-1 [11.9 kB]
Fetched 11.9 kB in 0s (32.9 kB/s)
Selecting previously unselected package docker.
(Reading database ... 153115 files and directories currently installed.)
Preparing to unpack .../docker_1.5-1_ppc64el.deb ...
Unpacking docker (1.5-1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up docker (1.5-1) ...

Thanks,
Manju

Default Comment by Bridge

Default Comment by Bridge

Default Comment by Bridge

Default Comment by Bridge

https://lists.ubuntu.com/archives/kernel-team/2017-January/081689.html

This bug is awaiting verification that the kernel in -proposed solves
the problem. Please test the kernel and update this bug with the
results. If the problem is solved, change the tag 'verification-needed-
yakkety' to 'verification-done-yakkety'. If the problem still exists,
change the tag 'verification-needed-yakkety' to 'verification-failed-
yakkety'.

If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!

Verification done with yakkety! All good.

# lsb_release -d
Description:    Ubuntu 16.10

Previous kernel (fail)
----------------------

# uname -rv
4.8.0-22-generic #24-Ubuntu SMP Sat Oct 8 09:14:41 UTC 2016

# capsh --drop=cap_sys_rawio -- -c \
'sg_write_same --num 1 --xferlen 512 /dev/sdb'
Write same: pass through os error: Operation not permitted
Write same(10): Sense category: -1, try '-v' option for more information

Proposed kernel (pass)
-----------------------

# uname -rv
4.8.0-36-generic #38-Ubuntu SMP Tue Jan 17 15:31:08 UTC 2017

# capsh --drop=cap_sys_rawio -- -c \
>       'sg_write_same --num 1 --xferlen 512 /dev/sdb'

# echo $?
0

This bug was fixed in the package linux - 4.8.0-37.39

---------------
linux (4.8.0-37.39) yakkety; urgency=low

[ Thadeu Lima de Souza Cascardo ]

* Release Tracking Bug
- LP: #1659381

* Mouse cursor invisible or does not move (LP: #1646574)
- drm/nouveau/disp/nv50-: split chid into chid.ctrl and chid.user
- drm/nouveau/disp/nv50-: specify ctrl/user separately when constructing
classes
- drm/nouveau/disp/gp102: fix cursor/overlay immediate channel indices

-- Benjamin M Romer <benjamin.ro...@canonical.com>  Wed, 25 Jan 2017
16:12:02 -0200

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1651242

Title:
  Ubuntu16.04.2KVM: Installing any package on Ubuntu16.04.2 guest having
  NPIV disk shows traces: blk_update_request: I/O error, dev sda, sector
  5006840

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Yakkety:
  Fix Released
Status in linux source package in Zesty:
  Fix Released

Bug description:
  == Comment: #35 - Mauricio Faria De Oliveira - 2016-12-19 09:20:41 ==
  Hi Canonical,

  Could you please apply this patch [1] for 16.04.x HWE 4.8 ?

  It has not yet been accepted by the block subsystem maintainer Jens Axboe,
  but good a reviewed-by tag from Christoph Hellwig [2].

  The change is very straightforward and clearly spottable/documented,
  so if at all possible, I think it wouldn't be a problem for it to be SAUCE 
commit for now.

  Thank you,

  [PATCH RESEND] block: allow WRITE_SAME commands with the SG_IO ioctl

  [1] https://lkml.org/lkml/2016/12/15/503
  [2] https://lkml.org/lkml/2016/12/19/132

  == Comment: #36 - Mauricio Faria De Oliveira - 2016-12-19 12:39:24 ==
  (In reply to comment #35)
  > Hi Canonical,
  > 
  > Could you please apply this patch [1] for 16.04.x HWE 4.8 ?
  > 
  > It has not yet been accepted by the block subsystem maintainer Jens Axboe,
  > but good a reviewed-by tag from Christoph Hellwig [2].

  Hey, it just got word from Jens; added to 4.10 [3].

  [3] https://lkml.org/lkml/2016/12/19/318

  == Comment: #37 - Mauricio Faria De Oliveira - 2016-12-19 12:40:51 ==
  (In reply to comment #36)
  > (In reply to comment #35)
  > > Hi Canonical,
  > > 
  > > Could you please apply this patch [1] for 16.04.x HWE 4.8 ?
  > > 
  > > It has not yet been accepted by the block subsystem maintainer Jens Axboe,
  > > but good a reviewed-by tag from Christoph Hellwig [2].
  > 
  > Hey, it just got word from Jens; added to 4.10 [3].

  And here is it in his branch on g.k.o [4]

  [4] http://git.kernel.org/cgit/linux/kernel/git/axboe/linux-
  block.git/commit/?h=for-
  linus&id=25cdb64510644f3e854d502d69c73f21c6df88a9

  Bug History:

  == Comment: #0 - Manjunatha H R - 2016-12-06 01:52:11 ==
  Ubuntu16.04.2 KVM guest having NPIV disks shows following traces upon 
installing any package:

  root@lotg5:~# apt-get install -y python-paramiko
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  The following additional packages will be installed:
    python-crypto python-ecdsa python-six
  Suggested packages:
    python-crypto-dbg python-crypto-doc
  The following NEW packages will be installed:
    python-crypto python-ecdsa python-paramiko python-six
  0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
  Need to get 404 kB of archives.
  After this operation, 3,092 kB of additional disk space will be used.
  Get:1 http://us.ports.ubuntu.com/ubuntu-ports xenial/main ppc64el 
python-crypto ppc64el 2.6.1-6build1 [251 kB]
  Get:2 http://us.ports.ubuntu.com/ubuntu-ports xenial/main ppc64el python-six 
all 1.10.0-3 [10.9 kB]
  Get:3 http://us.ports.ubuntu.com/ubuntu-ports xenial/main ppc64el 
python-ecdsa all 0.13-2 [34.0 kB]
  Get:4 http://us.ports.ubuntu.com/ubuntu-ports xenial/main ppc64el 
python-paramiko all 1.16.0-1 [109 kB]
  Fetched 404 kB in 5s (72.6 kB/s)          
  Selecting previously unselected package python-crypto.
  (Reading database ... 104986 files and directories currently installed.)
  Preparing to unpack .../python-crypto_2.6.1-6build1_ppc64el.deb ...
  Unpacking python-crypto (2.6.1-6build1) ...
  [  529.051285] blk_update_request: I/O error, dev sda, sector 17096824
  [  529.175195] blk_update_request: I/O error, dev sda, sector 5009416
  [  529.239143] blk_update_request: I/O error, dev sda, sector 5009440
  [  529.303689] blk_update_request: I/O error, dev sda, sector 5009480
  [  529.375233] blk_update_request: I/O error, dev sda, sector 5009488
  [  529.455172] blk_update_request: I/O error, dev sda, sector 5009520
  [  529.535189] blk_update_request: I/O error, dev sda, sector 5009544
  [  529.595205] blk_update_request: I/O error, dev sda, sector 5009576
  [  529.675198] blk_update_request: I/O error, dev sda, sector 5009600
  [  529.755205] blk_update_request: I/O error, dev sda, sector 5009608
  [  534.103339] blk_update_request: I/O error, dev sda, sector 5005904
  [  534.187173] blk_update_request: I/O error, dev sda, sector 5005936
  [  534.251191] blk_update_request: I/O error, dev sda, sector 5006000
  [  534.323185] blk_update_request: I/O error, dev sda, sector 5006032
  [  534.407207] blk_update_request: I/O error, dev sda, sector 5006040
  [  534.487177] blk_update_request: I/O error, dev sda, sector 5006048
  [  534.555229] blk_update_request: I/O error, dev sda, sector 5006056
  [  534.639177] blk_update_request: I/O error, dev sda, sector 5006064
  [  534.703178] blk_update_request: I/O error, dev sda, sector 63468736
  [  534.783175] blk_update_request: I/O error, dev sda, sector 5006080
  Selecting previously unselected package python-six.
  Preparing to unpack .../python-six_1.10.0-3_all.deb ...
  Unpacking python-six (1.10.0-3) ...
  [  539.179209] blk_update_request: I/O error, dev sda, sector 5006840
  [  539.271201] blk_update_request: I/O error, dev sda, sector 5095584
  [  539.335185] blk_update_request: I/O error, dev sda, sector 5095592
  [  539.415193] blk_update_request: I/O error, dev sda, sector 5095600
  Selecting previously unselected package python-ecdsa.
  Preparing to unpack .../python-ecdsa_0.13-2_all.deb ...
  Unpacking python-ecdsa (0.13-2) ...
  [  539.547207] blk_update_request: I/O error, dev sda, sector 5006904
  [  539.627181] blk_update_request: I/O error, dev sda, sector 5006912
  [  539.707183] blk_update_request: I/O error, dev sda, sector 5006920
  [  539.779174] blk_update_request: I/O error, dev sda, sector 5006928
  [  539.843205] blk_update_request: I/O error, dev sda, sector 5006960
  [  539.923169] blk_update_request: I/O error, dev sda, sector 5006968
  Selecting previously unselected package python-paramiko.
  Preparing to unpack .../python-paramiko_1.16.0-1_all.deb ...
  Unpacking python-paramiko (1.16.0-1) ...
  Setting up python-crypto (2.6.1-6build1) ...
  Setting up python-six (1.10.0-3) ...
  Setting up python-ecdsa (0.13-2) ...
  Setting up python-paramiko (1.16.0-1) ...


  These traces are seen only on guest with uses NPIV disks.

  Guest using following NPIV disks from host:
  ----------------------------------
  root@lotkvm:~# virsh vol-list poolvhba0 --details
   Name         Path                                                            
 Type    Capacity  Allocation
  
------------------------------------------------------------------------------------------------------------
   unit:0:0:4   /dev/disk/by-path/pci-0001:09:00.0-fc-0x500507680215e2c6-lun-4  
 block  42.00 GiB   42.00 GiB
   unit:0:0:5   /dev/disk/by-path/pci-0001:09:00.0-fc-0x500507680215e2c6-lun-5  
 block  31.00 GiB   31.00 GiB
   unit:0:0:6   /dev/disk/by-path/pci-0001:09:00.0-fc-0x500507680215e2c6-lun-6  
 block  31.00 GiB   31.00 GiB


  
  Guest XML for Disks:
  ---------------------------
      <disk type='volume' device='lun'>
        <driver name='qemu' type='raw' cache='none'/>
        <source pool='poolvhba0' volume='unit:0:0:4'/>
        <backingStore/>
        <target dev='hd0' bus='scsi'/>
        <alias name='scsi0-0-0-0'/>
        <address type='drive' controller='0' bus='0' target='0' unit='0'/>
      </disk>
      <disk type='volume' device='lun'>
        <driver name='qemu' type='raw' cache='none'/>
        <source pool='poolvhba0' volume='unit:0:0:5'/>
        <backingStore/>
        <target dev='hd1' bus='scsi'/>
        <alias name='scsi0-0-0-1'/>
        <address type='drive' controller='0' bus='0' target='0' unit='1'/>
      </disk>
      <disk type='volume' device='lun'>
        <driver name='qemu' type='raw' cache='none'/>
        <source pool='poolvhba0' volume='unit:0:0:6'/>
        <backingStore/>
        <target dev='hd2' bus='scsi'/>
        <alias name='scsi0-0-0-2'/>
        <address type='drive' controller='0' bus='0' target='0' unit='2'/>
      </disk>

  
  Guest build:
  ----------------
  Ubuntu16.04.2: 
  Linux lotg5 4.8.0-28-generic #30~16.04.1-Ubuntu SMP Mon Nov 21 12:02:06 UTC 
2016 ppc64le ppc64le ppc64le GNU/Linux

  Host build:
  ---------------
  Ubuntu16.04.2
  Linux lotkvm 4.8.0-28-generic #30~16.04.1-Ubuntu SMP Mon Nov 21 12:02:06 UTC 
2016 ppc64le ppc64le ppc64le GNU/Linux

  == Comment: #19 - Mauricio Faria De Oliveira - 2016-12-07 14:21:49 ==
  Okay, the SCSI Write Same command is not being allowed for unprivileged users 
(e.g., libvirt-qemu, which is used to run guests with libvirt) on this kernel.

  By running the command as user libvirt-qemu in the host, the failure
  can be reproduced.

  Debugging the kernel.

  root@lotkvm:~/mauricfo# sg_write_same -vv --10 --num 8 --xferlen 512 --lba 
17096824 /dev/sdak
  open /dev/sdak with flags=0x802
  Default data-out buffer set to 512 zeros
      Write same(10) cmd: 41 00 01 04 e0 78 00 00 08 00 
      Data-out buffer length=512

  root@lotkvm:~/mauricfo# sudo -u libvirt-qemu sg_write_same -vv --10 --num 8 
--xferlen 512 --lba 17096824 /dev/sdak
  open /dev/sdak with flags=0x802
  Default data-out buffer set to 512 zeros
      Write same(10) cmd: 41 00 01 04 e0 78 00 00 08 00 
      Data-out buffer length=512
  ioctl(SG_IO v3) failed: Operation not permitted (errno=1)
  Write same: pass through os error: Operation not permitted
  Write same(10): Sense category: -1, try '-v' option for more information

  == Comment: #26 - Richard M. Scheller - 2016-12-12 15:56:50 ==
  I installed the 4.8.0-131 test kernel on my Ubuntu 16.04 KVM host, dotkvm.  
It fixed the guest multipath I/O problem that I reported in bug 149832, which 
turned out to be a dup of this bug.

  == Comment: #27 - Manjunatha H R - 2016-12-15 01:16:01 ==
  (In reply to comment #25)
  > Manju,
  > 
  > Please pay attention to the emphasis that is present in the test-request
  > comment:

  > You installed the kernel in the guest.

  Apologies, last time I missed to install patched kernel on the host.

  Verified the same set of patches on lotkvm too, which helps to fix the
  issue..

  root@lotkvm:~# uname -r
  4.8.0-131-generic

  root@lotg5:~# apt-get install docker
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  The following packages were automatically installed and are no longer 
required:
    linux-headers-4.4.0-52 linux-headers-4.4.0-52-generic
    linux-image-4.4.0-52-generic linux-image-extra-4.4.0-52-generic
  Use 'apt autoremove' to remove them.
  The following NEW packages will be installed:
    docker
  0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
  Need to get 11.9 kB of archives.
  After this operation, 69.6 kB of additional disk space will be used.
  Get:1 http://us.ports.ubuntu.com/ubuntu-ports xenial/universe ppc64el docker 
ppc64el 1.5-1 [11.9 kB]
  Fetched 11.9 kB in 0s (32.9 kB/s)
  Selecting previously unselected package docker.
  (Reading database ... 153115 files and directories currently installed.)
  Preparing to unpack .../docker_1.5-1_ppc64el.deb ...
  Unpacking docker (1.5-1) ...
  Processing triggers for man-db (2.7.5-1) ...
  Setting up docker (1.5-1) ...

  
  Thanks,
  Manju

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1651242/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to