Skip to content

Regression with debian network management and the loopback interface. #37942

Closed

Description

@jochumdev

Description of Issue/Question

The network state fails to configure the loopback interface.

Setup

state:

/etc/network/interfaces.d:
  file:
  - source: salt://network/files/interfaces.d
  - clean: true
  - recurse

network_lo:
  network:
  - managed
  - name: lo
  - enabled: true
  - type: eth
  - proto: loopback

network_eth0_192.168.158.22:
  network:
  - managed
  - name: eth0
  - enabled: true
  - type: eth
  - proto: static
  - ipaddr: 192.168.158.22
  - gateway: 192.168.158.1
  - netmask: 255.255.255.0
  - noifupdown: true
  - dns-nameservers:
    - fd57:c87d:f1ee:2::19
    - 10.128.2.19
  - dns-search:
    - lxch.lan
  - noifupdown: true

network_eth1_10.128.2.22:
  network:
  - managed
  - name: eth1
  - enabled: true
  - type: eth
  - proto: static
  - ipaddr: 10.128.2.22
  - netmask: 255.255.255.0
  - up_cmds:
    - /sbin/ip -4 route add 10.0.0.0/8 via 10.128.2.1 dev $IFACE
    - /sbin/ip -6 route add fd57:c87d:f1ee::/48 via fe80::1 dev $IFACE
  - noifupdown: true
  - dns-nameservers:
    - fd57:c87d:f1ee:2::19
    - 10.128.2.19
  - dns-search:
    - lxch.lan
  - enable_ipv6: true
  - ipv6proto: static
  - ipv6ipaddr: fd57:c87d:f1ee:2::22
  - ipv6netmask: 64
  - noifupdown: true

Steps to Reproduce Issue

1.) Install Ubuntu Xenial with salt 2016.11.0 somewhere
2.) Run the above state
3.) You will get:

root@checkmk1:~# salt-call state.sls network.interfaces
[ERROR   ] Interface file malformed for interface: lo.
[ERROR   ] Interface file malformed for interface: lo.

Temporary workaround

Define ipaddr: 127.0.0.1 for the interface lo.

Versions Report

root@checkmk1:~# salt-minion --versions-report
Salt Version:
           Salt: 2016.11.0
 
Dependency Versions:
           cffi: Not Installed
       cherrypy: Not Installed
       dateutil: 2.4.2
          gitdb: Not Installed
      gitpython: Not Installed
          ioflo: Not Installed
         Jinja2: 2.8
        libgit2: Not Installed
        libnacl: Not Installed
       M2Crypto: Not Installed
           Mako: 1.0.3
   msgpack-pure: Not Installed
 msgpack-python: 0.4.6
   mysql-python: Not Installed
      pycparser: Not Installed
       pycrypto: 2.6.1
         pygit2: Not Installed
         Python: 2.7.12 (default, Nov 19 2016, 06:48:10)
   python-gnupg: Not Installed
         PyYAML: 3.11
          PyZMQ: 15.2.0
           RAET: Not Installed
          smmap: Not Installed
        timelib: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.1.4
 
System Versions:
           dist: Ubuntu 16.04 xenial
        machine: x86_64
        release: 4.4.0-47-generic
         system: Linux
        version: Ubuntu 16.04 xenial

Activity

  1. changed the title [-]Regression with debian network manegment and the loopback interface.[/-] [+]Regression with debian network management and the loopback interface.[/+] on Nov 29, 2016
  2. Ch3LL commented on Nov 29, 2016

    @Ch3LL
    Contributor

    I'm able to replicate this. git bisect shows this commit: d63cd6b as the first bad commit.

    Here is a docker container for anyone to quickly replicate:

    1. docker run -it -v /home/ch3ll/git/salt/:/testing ch3ll/issues:37942 salt-call --local state.sls test (where /home/ch3ll/git/salt is a local cloned git repo)

    We will need to get this fixed up thanks!

  3. added
    bug
    P2
    Platform
    on Nov 29, 2016
  4. added this to the Approved milestone on Nov 29, 2016
  5. added
    severity-medium
    severity-critical
    on Nov 29, 2016
  6. meggiebot commented on Dec 1, 2016

    @meggiebot

    @garethgreenaway do you have any ideas here? I know you've worked with the debian_ip module.

  7. modified the milestones: Nitrogen 1, Approved on Dec 1, 2016
  8. self-assigned this
    on Dec 5, 2016
  9. gtmanfred commented on Dec 5, 2016

    @gtmanfred
    Contributor

    This should be resolved by #38043 (once it is merged)

  10. MTecknology commented on Dec 7, 2016

    @MTecknology
    Contributor

    If anyone watching this is interested in helping test, I believe the patch is ready for review!

  11. meggiebot commented on Dec 8, 2016

    @meggiebot

    PR #38043 is now merged

  12. added
    fixed-pls-verify
    on Dec 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Execution-ModuleP2PlatformZRELEASED - 2016.11.1bugfixed-pls-verifyseverity-criticalseverity-medium

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions