hv_set_ifconfig script parsing fails for certain configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Andy Whitcroft | ||
Xenial |
Fix Released
|
Medium
|
Andy Whitcroft | ||
Yakkety |
Fix Released
|
Medium
|
Andy Whitcroft | ||
Zesty |
Fix Released
|
Medium
|
Andy Whitcroft |
Bug Description
When trying to configure a virtual NIC to DHCP with no IPv6 addresses using Hyper-V's integration services, a configuration file similar to the following is generated:
HWADDR=XX:YY:ZZ
DEVICE=eth0
BOOTPROTO=dhcp
When running the hv_set_ifconfig script with this script as an argument (executed by IS, most likely the KVP daemon; I ran it manually in order to debug), it fails with the following stderr (stderr is muted, the script must be edited to retrieve this information, so the line number is offset):
File "hv_set_ifconfig", line 171, in <module>
output = ["auto "+" ".join(autolist)] + output
NameError: name 'autolist' is not defined
Editing the script so that autolist is defined in all flows resolves the issue and the script successfully sets the interface to use DHCP
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: linux-cloud-
ProcVersionSign
Uname: Linux 4.4.0-45-generic x86_64
AlsaDevices:
total 0
crw-rw----+ 1 root audio 116, 1 Nov 7 16:50 seq
crw-rw----+ 1 root audio 116, 33 Nov 7 16:50 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
Date: Mon Nov 7 17:21:05 2016
HibernationDevice: RESUME=
InstallationDate: Installed on 2016-10-13 (25 days ago)
InstallationMedia: Ubuntu-Server 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MachineType: Microsoft Corporation Virtual Machine
PciMultimedia:
ProcEnviron:
TERM=linux
PATH=(custom, no user)
LANG=en_US.UTF-8
LANGUAGE=en_US:en
SHELL=/bin/bash
ProcFB: 0 hyperv_fb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.157.4
RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
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.
dmi.chassis.type: 3
dmi.chassis.vendor: Microsoft Corporation
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: Virtual Machine
dmi.product.
dmi.sys.vendor: Microsoft Corporation
description: | updated |
tags: | added: hyperv |
tags: | added: hyper-v |
tags: | added: patch |
Changed in linux (Ubuntu Yakkety): | |
status: | New → Confirmed |
Changed in linux (Ubuntu Xenial): | |
status: | New → Confirmed |
Changed in linux (Ubuntu Zesty): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Yakkety): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in linux (Ubuntu Zesty): | |
assignee: | nobody → Andy Whitcroft (apw) |
Changed in linux (Ubuntu Yakkety): | |
assignee: | nobody → Andy Whitcroft (apw) |
Changed in linux (Ubuntu Xenial): | |
assignee: | nobody → Andy Whitcroft (apw) |
Changed in linux (Ubuntu Yakkety): | |
status: | Confirmed → Fix Committed |
Changed in linux (Ubuntu Xenial): | |
status: | Confirmed → Fix Committed |
This change was made by a bot.