unregister_netdevice: waiting for tape3e33cb9-d6 to become free. Usage count = 2

Bug #1873352 reported by Benjamin Allot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Hello,

We recently encountered an issue when trying to stop nova instances.

| Apr 16 09:35:10 ginzel kernel: [6925958.071665] unregister_netdevice: waiting for tape3e33cb9-d6 to become free. Usage count = 2

When I try to stop manually the qemu process, it errors
"""
ballot@ginzel:~$ sudo virsh destroy instance-000718af
setlocale: No such file or directory
error: Failed to destroy domain instance-000718af
error: Failed to terminate process 20953 with SIGKILL: Device or resource busy
"""

The qemu process is in D state because of this
"""
libvirt+ 20953 12.9 0.5 9001400 2925908 ? D Apr15 84:25 /usr/bin/qemu-system-x86_64 -name instance-000718af -S -machine pc-i440fx-trusty,accel=kvm,usb=off -cpu EPYC-IBPB-2.0,+perfctr_nb,+perfctr_core,+t
opoext,+tce,+wdt,+skinit,+extapic,+cmp_legacy,+osxsave,+ht -m 4096 -realtime mlock=off -smp 2,sockets=2,cores=1,threads=1 -uuid 020ecf87-4c96-47af-8d3f-d86d51b445f4 -smbios type=1,manufacturer=OpenStack Foundati
on,product=OpenStack Nova,version=2014.1.5,serial=993710e9-0a44-428e-88ec-9210c6dfed55,uuid=020ecf87-4c96-47af-8d3f-d86d51b445f4 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/q
emu/instance-000718af.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=discard -no-hpet -no-shutdown -boot strict=on -device pii
x3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/srv/nova/instances/020ecf87-4c96-47af-8d3f-d86d51b445f4/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none -device virtio-blk-pci,scsi=off,bus=pci.0
,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -netdev tap,fd=24,id=hostnet0,vhost=on,vhostfd=29 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=fa:16:3e:eb:99:5e,bus=pci.0,addr=0x3 -chardev f
ile,id=charserial0,path=/srv/nova/instances/020ecf87-4c96-47af-8d3f-d86d51b445f4/console.log -device isa-serial,chardev=charserial0,id=serial0 -chardev pty,id=charserial1 -device isa-serial,chardev=charserial1,i
d=serial1 -device usb-tablet,id=input0 -vnc 0.0.0.0:4 -k en-us -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
ballot@ginzel:~$ sudo cat /proc/20953/sta
stack stat statm status
"""

and we can see the stack of the process
"""
ballot@ginzel:~$ sudo cat /proc/20953/stack
[<0>] msleep+0x2d/0x40
[<0>] netdev_run_todo+0x11c/0x320
[<0>] rtnl_unlock+0xe/0x10
[<0>] tun_chr_close+0x28/0x30
[<0>] __fput+0xea/0x220
[<0>] ____fput+0xe/0x10
[<0>] task_work_run+0x9d/0xc0
[<0>] exit_to_usermode_loop+0xc0/0xd0
[<0>] do_syscall_64+0x115/0x130
[<0>] entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[<0>] 0xffffffffffffffff
"""

Will attach the relevant files
---
AlsaDevices:
 total 0
 crw-rw---- 1 root audio 116, 1 Jan 27 05:43 seq
 crw-rw---- 1 root audio 116, 33 Jan 27 05:43 timer
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.14.1-0ubuntu3.29
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
DistroRelease: Ubuntu 14.04
IwConfig: Error: [Errno 2] No such file or directory
MachineType: HPE ProLiant DL385 Gen10
Package: linux (not installed)
PciMultimedia:

ProcFB: 0 mgadrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-42-generic root=UUID=06e712a9-0adb-4078-8976-0c41ce346aa5 ro console=tty0 console=ttyS0,115200
ProcVersionSignature: Ubuntu 4.15.0-42.45-generic 4.15.18
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-42-generic N/A
 linux-backports-modules-4.15.0-42-generic N/A
 linux-firmware 1.127.24
RfKill: Error: [Errno 2] No such file or directory
Tags: trusty uec-images
Uname: Linux 4.15.0-42-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True
dmi.bios.date: 10/02/2018
dmi.bios.vendor: HPE
dmi.bios.version: A40
dmi.board.name: ProLiant DL385 Gen10
dmi.board.vendor: HPE
dmi.chassis.type: 23
dmi.chassis.vendor: HPE
dmi.modalias: dmi:bvnHPE:bvrA40:bd10/02/2018:svnHPE:pnProLiantDL385Gen10:pvr:rvnHPE:rnProLiantDL385Gen10:rvr:cvnHPE:ct23:cvr:
dmi.product.family: ProLiant
dmi.product.name: ProLiant DL385 Gen10
dmi.sys.vendor: HPE

Revision history for this message
Benjamin Allot (ballot) wrote : BootDmesg.txt

apport information

tags: added: apport-collected trusty uec-images
description: updated
Revision history for this message
Benjamin Allot (ballot) wrote : CRDA.txt

apport information

Revision history for this message
Benjamin Allot (ballot) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Benjamin Allot (ballot) wrote : Lspci.txt

apport information

Revision history for this message
Benjamin Allot (ballot) wrote : Lsusb.txt

apport information

Revision history for this message
Benjamin Allot (ballot) wrote : NonfreeKernelModules.txt

apport information

Revision history for this message
Benjamin Allot (ballot) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Benjamin Allot (ballot) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Benjamin Allot (ballot) wrote : ProcEnviron.txt

apport information

Revision history for this message
Benjamin Allot (ballot) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Benjamin Allot (ballot) wrote : ProcModules.txt

apport information

Revision history for this message
Benjamin Allot (ballot) wrote : UdevDb.txt

apport information

Revision history for this message
Benjamin Allot (ballot) wrote : UdevLog.txt

apport information

Revision history for this message
Benjamin Allot (ballot) wrote : WifiSyslog.txt

apport information

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

4.15.0-42 is a bit old. Maybe try the latest one like 4.15.0-99?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.