windows: networker tries to update invalid device and blocks machiner from working

Bug #1567676 reported by Bogdan Teleaga
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Dimiter Naydenov

Bug Description

Logs here: http://sprunge.us/LdKN

This happens on the latest master as of now(b631875ff9ed67ec321f1d6fa90bc65d839b9e93), should probably be seen in the CI as well.

Tags: windows
Changed in juju-core:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Cheryl Jennings (cherylj) wrote :

Error is:

machine-3: 2016-04-08 05:34:46 ERROR juju.worker.dependency engine.go:522 "machiner" manifold worker returned unexpected error: cannot update observed network config: cannot set link-layer devices to machine "3": invalid device "Loopback Pseudo-Interface 1": Name "Loopback Pseudo-Interface 1" not valid

Revision history for this message
Cheryl Jennings (cherylj) wrote :
Revision history for this message
Andrew McDermott (frobware) wrote :
Revision history for this message
Bogdan Teleaga (bteleaga) wrote :
Curtis Hovey (sinzui)
tags: added: windows
Changed in juju-core:
milestone: none → 2.0-rc1
Revision history for this message
Andrew McDermott (frobware) wrote :

Can we attach the windows equivalent of /etc/network/interfaces? (I'm guessing there is such a thing.)

Changed in juju-core:
assignee: nobody → Katherine Cox-Buday (cox-katherine-e)
Revision history for this message
Gabriel Samfira (gabriel-samfira) wrote :

Hi Andrew,

There is no real equivalent to /etc/network/interfaces. Windows stores information about the system in various registry locations. The standard Windows way to get this kind of information is via WMI queries. For example, using powershell, to get a listing of network adapters:

Get-CimInstance -Class Win32_NetworkAdapter -Filter "PhysicalAdapter='True'"

To get a listing of all IP addresses configured on the system:

Get-CimInstance -Class MSFT_NetIPAddress -Namespace root/StandardCimv2

The net package seems to do a good job at listing interfaces and configured IP addresses though.

One note. Network interfaces in windows can have arbitrary names that even include spaces.

Changed in juju-core:
status: Triaged → In Progress
Revision history for this message
Dimiter Naydenov (dimitern) wrote :

Hey Gabriel,
Juju expects network interface names on Windows to be up to 255 characters, and spaces are ok. No other restrictions are imposed.
There are even tests with names like that.

Anyway, I'll look into it to see what's going on, and thanks to Cloudbase's guide I have a working win2012r2 to test on :)

Changed in juju-core:
assignee: Katherine Cox-Buday (cox-katherine-e) → Dimiter Naydenov (dimitern)
Revision history for this message
Dimiter Naydenov (dimitern) wrote :

I see the root cause - since the bootstrap machine is on Ubuntu (where the API server and controller are), it cannot deal well with network config coming from a Windows machine. Fortunately, it should be easy to fix.

Revision history for this message
Dimiter Naydenov (dimitern) wrote :
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta5 → none
milestone: none → 2.0-beta5
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.