[Hyper-V] hv_set_ifconfig fails due to new netplan configuration

Bug #1722513 reported by bogdan carpusor
26
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Incomplete
Medium
Joseph Salisbury
Bionic
Incomplete
Medium
Joseph Salisbury

Bug Description

Issue description: hv_set_ifconfig does not work due to new netplan configuration

Platform: host independent
Distribution name and release: Ubuntu 18.04
Kernel version: 4.15+

The hv_set_ifconfig script does not take in consideration netplan config files. Consequently, the changes made by hv_set_ifconfig in /etc/network/interfaces are not affecting the final network configuration.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
Chris Valean (cvalean)
tags: added: hyper-v
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1722513/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Chris Valean (cvalean)
summary: - hv_set_ifconfig fails due to new netplan configuration
+ [Hyper-V] Ubuntu 17.10 hv_set_ifconfig fails due to new netplan
+ configuration
Revision history for this message
Chris Valean (cvalean) wrote : Re: [Hyper-V] Ubuntu 17.10 hv_set_ifconfig fails due to new netplan configuration

Joseph Salisbury, can you please mark this for Bionic as well?
I see this remained for generic Ubuntu, but it affects all releases that use netplan.

summary: - [Hyper-V] Ubuntu 17.10 hv_set_ifconfig fails due to new netplan
- configuration
+ [Hyper-V] hv_set_ifconfig fails due to new netplan configuration
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Do we know if this is a regression?

Also, would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.20 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.20-rc2

affects: ubuntu → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → New
tags: added: kernel-da-key
Changed in linux (Ubuntu Bionic):
importance: Undecided → Medium
tags: added: kernel-hyper-v
description: updated
Changed in linux (Ubuntu):
assignee: nobody → Joseph Salisbury (jsalisbury)
Changed in linux (Ubuntu Bionic):
assignee: nobody → Joseph Salisbury (jsalisbury)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1722513

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
Changed in linux (Ubuntu Bionic):
status: New → Incomplete
Brad Figg (brad-figg)
tags: added: cscc
Revision history for this message
Benjamin Bendel (benvandamme) wrote :

Is there any update on this? I am on Kernel 5.13.0-1022-azure and linux-cloud-tools-common 5.4.0-109.123 and the script hv_set_ifconfig is only able to manipulate /etc/network/interfaces.

Kind Regards

Revision history for this message
Benjamin Bendel (benvandamme) wrote :

Hi!,

I was able to fix this by adding the ability to create the netplan yaml files from the hyperv-input.
In my case everything works fine. I tested it with 18.04 LTS and 20.04 LTS. It adds .bak the default 01-netcfg.yaml and any previous files for the same interface you want to edit. It creates a seperate yaml-File for each interface when you edit it via the hyperv-host or via scvmm.

tags: added: patch
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.