netplan ifupdown-migrate fails to handle multi-field auto

Bug #1748635 reported by Mark Shuttleworth
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Netplan
Confirmed
Undecided
Unassigned

Bug Description

Saw this today on a server that acts as a router for me, so has quite a few bonded networks:

$ sudo netplan ifupdown-migrate
Expected 1 fields for stanza type auto but got 3

Will attach the relevant /e/n/interfaces for your debugging pleasure :)

Revision history for this message
Mark Shuttleworth (sabdfl) wrote :
Revision history for this message
Mike Pontillo (mpontillo) wrote :

I see that your `interfaces` file contains lines like:

    auto p2p2 inet manual
    auto p5p1 inet manual
    auto p5p2 inet manual

These should instead be:

    auto p2p2
    auto p5p1
    auto p5p2

It seems that ifupdown is less strict than netplan about what it accepts after "auto". (I guess it ignores arguments that aren't interface names; I vaguely remember using syntax such as "auto eth0 eth1", but I'm not positive that works.)

Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1748635] Re: netplan ifupdown-migrate fails to handle multi-field auto

Thank you, yes, this appeared to clear the issue.

 status invalid

Revision history for this message
Mark Shuttleworth (sabdfl) wrote :

Perhaps the error message could have shown the offending line?

Something like this:

$ sudo netplan ifupdown-migrate
Expected 1 fields for stanza type auto but got 3, please check:
auto p1p2 inet manual

Revision history for this message
Daniel Axtens (daxtens) wrote :

/e/n/i does allow multiple interfaces on the one line for auto - per the man page - and netplan should support migrating that. I've added it to my list of migration bugs.

Changed in netplan:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.