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

network_state should not change IPv6 state when not configured #614

Open
myllynen opened this issue May 17, 2023 · 2 comments
Open

network_state should not change IPv6 state when not configured #614

myllynen opened this issue May 17, 2023 · 2 comments

Comments

@myllynen
Copy link

Using this definition against RHEL 8.8 systems which use NM and ifcfg files

    network_state:
      dns-resolver:
        config:
          server:
            - 1.1.1.1
      interfaces:
        - name: net0
          type: ethernet
          state: up
          ipv4:
            enabled: true
            auto-dns: false
            dhcp: true

changes IPV6_INIT=no to IPV6_INIT=yes on IPv4-only systems. On RHEL 9.2 systems which use NM and nmconnection files this does not happen, which is expected. The workaround is of course obvious but nevertheless network_state should not change anything outside of the provided configuration definition. Thanks.

@cathay4t
Copy link
Collaborator

@myllynen When not mentioned IPv6 config, nmstate copy from current status in kernel(not config of NM). Can you provide more detail on how to reproduce this problem?

@myllynen
Copy link
Author

myllynen commented May 17, 2023

On the target system I have these sysctls in place:

$ cat /etc/sysctl.d/50-ipv6.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

And also IPV6_INIT=no in the corresponding ifcfg file. I configured these, updated the initramfs (just in case), rebooted and ip a showed no IPv6 enabled for any interface. After applying with a playbook the above I then see the ifcfg/IPV6_INIT change.

Is this enough for you to test/reproduce or would you need more info? Thanks.

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