** Description changed:
- Launching a recent daily image of disco on azure results in a VM in
- which the hv-kvp-daemon.service fails to start:
+ SRU Justification
+
+ Impact: The KVP daemon fails to start on first boot due to being started
+ before the hv_kvp device appears.
+
+ Fix: Update the hv-kvp-daemon service file to start the daemon after
+ device node appears.
+
+ Regression Potential: The changes are only to the hv-kvp-daemon service
+ file and adding a udev rule, so the worst case regression would be that
+ the service does not start. In testing the service did start as
+ expected.
+
+ Test Case: See comment #15.
+
+ ---
+
+
+ Launching a recent daily image of disco on azure results in a VM in which the
hv-kvp-daemon.service fails to start:
$ systemctl status -o cat hv-kvp-daemon.service
● hv-kvp-daemon.service - Hyper-V KVP Protocol Daemon
- Loaded: loaded (/lib/systemd/system/hv-kvp-daemon.service; enabled; vendor
pr
- Active: failed (Result: exit-code) since Thu 2019-03-14 13:07:15 UTC;
11min a
- Main PID: 219 (code=exited, status=1/FAILURE)
+ Loaded: loaded (/lib/systemd/system/hv-kvp-daemon.service; enabled; vendor
pr
+ Active: failed (Result: exit-code) since Thu 2019-03-14 13:07:15 UTC;
11min a
+ Main PID: 219 (code=exited, status=1/FAILURE)
Started Hyper-V KVP Protocol Daemon.
KVP starting; pid is:219
open /dev/vmbus/hv_kvp failed; error: 2 No such file or directory
hv-kvp-daemon.service: Main process exited, code=exited, status=1/FAILURE
hv-kvp-daemon.service: Failed with result 'exit-code'.
-
The instance was created with:
$ az vm create --resource-group [redacted] --image
Canonical:UbuntuServer:19.04-DAILY:19.04.201903130 --size Standard_D2_v2 --name
disco-0313
As best as I can tell, the /dev/vmbus/hv_kvp isn't available when the
hv-kvp-daemon.service starts, but it is available a few seconds later. Manually
starting the daemon once I can ssh in works.
- ---
+ ---
ProblemType: Bug
AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code
2: ls: cannot access '/dev/snd/': No such file or directory
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.10-0ubuntu23
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord':
'arecord'
CRDA: N/A
DistroRelease: Ubuntu 19.04
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MachineType: Microsoft Corporation Virtual Machine
Package: linux (not installed)
PciMultimedia:
-
+
ProcEnviron:
- TERM=screen-256color
- PATH=(custom, no user)
- XDG_RUNTIME_DIR=<set>
- LANG=C.UTF-8
- SHELL=/bin/bash
+ TERM=screen-256color
+ PATH=(custom, no user)
+ XDG_RUNTIME_DIR=<set>
+ LANG=C.UTF-8
+ SHELL=/bin/bash
ProcFB: 0 hyperv_fb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.18.0-1011-azure
root=PARTUUID=11894199-2ca2-4912-9c41-d28128744d57 ro console=tty1
console=ttyS0 panic=-1
ProcVersionSignature: User Name 4.18.0-1011.11-azure 4.18.20
RelatedPackageVersions:
- linux-restricted-modules-4.18.0-1011-azure N/A
- linux-backports-modules-4.18.0-1011-azure N/A
- linux-firmware N/A
+ linux-restricted-modules-4.18.0-1011-azure N/A
+ linux-backports-modules-4.18.0-1011-azure N/A
+ linux-firmware N/A
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
Tags: disco uec-images
Uname: Linux 4.18.0-1011-azure x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm audio cdrom dialout dip floppy netdev plugdev sudo video
_MarkForUpload: True
dmi.bios.date: 06/02/2017
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 090007
dmi.board.name: Virtual Machine
dmi.board.vendor: Microsoft Corporation
dmi.board.version: 7.0
dmi.chassis.asset.tag: 7783-7084-3265-9085-8269-3286-77
dmi.chassis.type: 3
dmi.chassis.vendor: Microsoft Corporation
dmi.chassis.version: 7.0
dmi.modalias:
dmi:bvnAmericanMegatrendsInc.:bvr090007:bd06/02/2017:svnMicrosoftCorporation:pnVirtualMachine:pvr7.0:rvnMicrosoftCorporation:rnVirtualMachine:rvr7.0:cvnMicrosoftCorporation:ct3:cvr7.0:
dmi.product.name: Virtual Machine
dmi.product.uuid: 3b0f2160-7fc4-a646-904c-4248f04792d4
dmi.product.version: 7.0
dmi.sys.vendor: Microsoft Corporation
** Changed in: linux (Ubuntu)
Status: Incomplete => In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1820063
Title:
[Hyper-V] KVP daemon fails to start on first boot of disco VM
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1820063/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs