michaelrigart / ansible-role-interfaces

An ansible role for configuring different network interfaces
GNU General Public License v3.0
83 stars 61 forks source link

Error after enabling VLAN interface #38

Open niedbalski opened 6 years ago

niedbalski commented 6 years ago

After running a playbook with the following configuration twice:

I get the following error message:

"msg": "non-zero return code", 
"rc": 1, 
"start": "2018-04-11 02:32:45.800879", 
"stderr": "ifdown: interface eno2.22 not configured\nifdown: interface eno2.21 not configured\nRTNETLINK answers: File exists\nifup: failed to bring up eno2.21\nRTNETLINK answers: File exists\nifup: failed to bring up eno2.22", 
"stderr_lines": [
    "ifdown: interface eno2.22 not configured", 
    "ifdown: interface eno2.21 not configured", 
    "RTNETLINK answers: File exists", 
    "ifup: failed to bring up eno2.21", 
    "RTNETLINK answers: File exists", 
    "ifup: failed to bring up eno2.22"
], 
itlinux commented 6 years ago

Multiple gw sometimes is a problem I would try to take one off and see if it brings it up.

Il giorno 10 apr 2018, alle ore 19:04, Jorge Niedbalski notifications@github.com ha scritto:

After running a playbook with the following configuration twice:

device: eno2 bootproto: static mtu: 1500

device: eno2.21 bootproto: static address: 10.21.x.x netmask: 255.255.0.0 gateway: 10.21.x.x

device: eno2.22 bootproto: static address: 10.22.x.x netmask: 255.255.0.0 gateway: 10.22.x.x

I get the following error message:

"msg": "non-zero return code", "rc": 1, "start": "2018-04-11 02:32:45.800879", "stderr": "ifdown: interface eno2.22 not configured\nifdown: interface eno2.21 not configured\nRTNETLINK answers: File exists\nifup: failed to bring up eno2.21\nRTNETLINK answers: File exists\nifup: failed to bring up eno2.22", "stderr_lines": [ "ifdown: interface eno2.22 not configured", "ifdown: interface eno2.21 not configured", "RTNETLINK answers: File exists", "ifup: failed to bring up eno2.21", "RTNETLINK answers: File exists", "ifup: failed to bring up eno2.22" ], — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.