Injecting DHCP configuration from Hyper-V host fails

Bug #1646248 reported by Yonatan Amir
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned
Xenial
Confirmed
Medium
Unassigned

Bug Description

When injecting a DHCP configuration from a Hyper-V host using WMI, the IP address does not change, and the syslog contains the following line:
Failed to execute cmd 'hv_set_ifconfig /var/lib/hyperv/ifcfg-eth0'; error: 2 No such file or directory
the ifcfg-eth0 exists with a modification time identical to the log line's.
Switching the scheduler to noop did not resolve this issue.
---
AlsaDevices:
 total 0
 crw-rw----+ 1 root audio 116, 1 Dec 1 10:06 seq
 crw-rw----+ 1 root audio 116, 33 Dec 1 10:06 timer
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.20.1-0ubuntu2.1
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 16.04
HibernationDevice: RESUME=UUID=a3b32a0b-59a9-4b50-8d31-a06477933916
InstallationDate: Installed on 2016-11-22 (8 days ago)
InstallationMedia: Ubuntu-Server 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
IwConfig: Error: [Errno 2] No such file or directory
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MachineType: Microsoft Corporation Virtual Machine
Package: linux (not installed)
PciMultimedia:

ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 hyperv_fb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-47-generic root=UUID=31af956a-1342-4e8d-9c74-af0308e00111 ro
ProcVersionSignature: Ubuntu 4.4.0-47.68-generic 4.4.24
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-47-generic N/A
 linux-backports-modules-4.4.0-47-generic N/A
 linux-firmware 1.157.5
RfKill: Error: [Errno 2] No such file or directory
Tags: xenial
Uname: Linux 4.4.0-47-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True
dmi.bios.date: 05/23/2012
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 090006
dmi.board.name: Virtual Machine
dmi.board.vendor: Microsoft Corporation
dmi.board.version: 7.0
dmi.chassis.asset.tag: 1923-5120-7734-2680-0264-8714-27
dmi.chassis.type: 3
dmi.chassis.vendor: Microsoft Corporation
dmi.chassis.version: 7.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr090006:bd05/23/2012:svnMicrosoftCorporation:pnVirtualMachine:pvr7.0:rvnMicrosoftCorporation:rnVirtualMachine:rvr7.0:cvnMicrosoftCorporation:ct3:cvr7.0:
dmi.product.name: Virtual Machine
dmi.product.version: 7.0
dmi.sys.vendor: Microsoft Corporation
---
AlsaDevices:
 total 0
 crw-rw----+ 1 root audio 116, 1 Dec 1 10:06 seq
 crw-rw----+ 1 root audio 116, 33 Dec 1 10:06 timer
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.20.1-0ubuntu2.1
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 16.04
HibernationDevice: RESUME=UUID=a3b32a0b-59a9-4b50-8d31-a06477933916
InstallationDate: Installed on 2016-11-22 (8 days ago)
InstallationMedia: Ubuntu-Server 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
IwConfig: Error: [Errno 2] No such file or directory
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MachineType: Microsoft Corporation Virtual Machine
Package: linux (not installed)
PciMultimedia:

ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 hyperv_fb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-47-generic root=UUID=31af956a-1342-4e8d-9c74-af0308e00111 ro
ProcVersionSignature: Ubuntu 4.4.0-47.68-generic 4.4.24
RelatedPackageVersions:
 linux-restricted-modules-4.4.0-47-generic N/A
 linux-backports-modules-4.4.0-47-generic N/A
 linux-firmware 1.157.5
RfKill: Error: [Errno 2] No such file or directory
Tags: xenial
Uname: Linux 4.4.0-47-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True
dmi.bios.date: 05/23/2012
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 090006
dmi.board.name: Virtual Machine
dmi.board.vendor: Microsoft Corporation
dmi.board.version: 7.0
dmi.chassis.asset.tag: 1923-5120-7734-2680-0264-8714-27
dmi.chassis.type: 3
dmi.chassis.vendor: Microsoft Corporation
dmi.chassis.version: 7.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr090006:bd05/23/2012:svnMicrosoftCorporation:pnVirtualMachine:pvr7.0:rvnMicrosoftCorporation:rnVirtualMachine:rvr7.0:cvnMicrosoftCorporation:ct3:cvr7.0:
dmi.product.name: Virtual Machine
dmi.product.version: 7.0
dmi.sys.vendor: Microsoft Corporation

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1646248

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Yonatan Amir (yonatan-amir) wrote : CRDA.txt

apport information

tags: added: apport-collected xenial
description: updated
Revision history for this message
Yonatan Amir (yonatan-amir) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : JournalErrors.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : Lspci.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : ProcModules.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : UdevDb.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : WifiSyslog.txt

apport information

description: updated
Revision history for this message
Yonatan Amir (yonatan-amir) wrote : CRDA.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : JournalErrors.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : Lspci.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : ProcModules.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : UdevDb.txt

apport information

Revision history for this message
Yonatan Amir (yonatan-amir) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Did this issue start happening after an update/upgrade? Was there a prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.9 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9-rc7

Changed in linux (Ubuntu):
importance: Undecided → Medium
Changed in linux (Ubuntu Xenial):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Yonatan Amir (yonatan-amir) wrote :

Joseph,
I can't test this on the mainline kernel without a matching linux-cloud-tools package. Are there any builds available? I don't have a build environment set up, so if not, can you build one and make it available?
TIA

tags: removed: hyperv
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.