Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after enabling VLAN interface #38

Open
niedbalski opened this issue Apr 11, 2018 · 1 comment
Open

Error after enabling VLAN interface #38

niedbalski opened this issue Apr 11, 2018 · 1 comment

Comments

@niedbalski
Copy link

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"
], 
niedbalski added a commit to niedbalski/ansible-role-interfaces that referenced this issue Apr 11, 2018
This commit implements an additional ip addr flush on the changed interfaces before running a ifup,
this prevents michaelrigart#38 to happen.
@itlinux
Copy link

itlinux commented Apr 11, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants