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

cannot add ipv6 address on debian #92

Closed
fschaer opened this issue Feb 3, 2015 · 6 comments
Closed

cannot add ipv6 address on debian #92

fschaer opened this issue Feb 3, 2015 · 6 comments

Comments

@fschaer
Copy link

fschaer commented Feb 3, 2015

Hi,

I'm evaluating your module to see if I could use it both on debian and redhat. And If I could at the same time enable IPv6.

Unfortunately, it seems that adding an IPv6 address in the debian interfaces file does not work because this is duplicating the interface name :

adding the following :

iface eth0 inet6 static
    address 2001:db8::c0ca:1eaf
    netmask 64
    gateway 2001:db8::1ead:ed:beef

yelds this :

$ puppet resource  --debug --modulepath puppet/ network_config
Debug: Runtime environment: puppet_version=3.7.4, run_mode=user, ruby_version=1.8.7
Debug: Failed to load library 'selinux' for feature 'selinux'
Error: Could not run: Malformed debian interfaces file; cannot instantiate network_config resources`

The parser seems OK If I replace eth0 with eth1 or eth0:6, but debian is not and there is no IPv6 address configured.

Am I doing something wrong ?

@igalic
Copy link
Contributor

igalic commented Feb 6, 2015

kinda surprised i haven't run into this.
but then, i haven't dared using this module in my ipv6 only infra bc it doesn't fully support all the weird config i need.

@bodepd
Copy link

bodepd commented Feb 20, 2015

I've run into the same issue, but in my case, it was trying to use the module for an interface where both ipv4 and ipv6 are defined (the default in rackspace cloud)

The offending lines are:

iface eth0 inet static
    address 162.209.6.110
    netmask 255.255.255.0
    gateway 162.209.6.1
iface eth0 inet6 static
    address 2001:4801:7819:74:be76:4eff:fe11:8a7a
    netmask 64
    gateway fe80::def
    dns-nameservers 173.203.4.9 173.203.4.8

and the resulting error is:

Feb 20 14:06:41 cp2-test200215133412 puppet-user[31226]: Wrapped exception:
Feb 20 14:06:41 cp2-test200215133412 puppet-user[31226]: invalid address

@igalic
Copy link
Contributor

igalic commented Feb 24, 2015

we'll have to add the inet-family to the namevar.


the problem with this is that we cannot use title_pattern, i'm guessing, because rhel and interfaces look very different.

@bodepd
Copy link

bodepd commented Feb 24, 2015

I'm working on a partial fix that will probably never get merged (b/c the real fix sounds really complicated). It basically just ignores ipv6 entries when there are duplicates. I'll share when I'm done, but this is more of a temporary fix so that I can move on ;)

@igalic
Copy link
Contributor

igalic commented Feb 24, 2015

yea, i looked into a quick-fix myself, however, i think we'll have to extract the interface into its own variable, that is not name

and that's going to be a lot of work, especially if we want to keep it backward compatible…

@jyaworski
Copy link
Member

This looks like a duplicate of #99, so closing in favor of that.

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

4 participants