-
Notifications
You must be signed in to change notification settings - Fork 908
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
[enhancement]: Add ability to pass specific ipv4/ipv6 options to network renderers #4621
Comments
See also #4439 . |
@ani-sinha see my comment here |
@ani-sinha is this still relevant given the approach in #4622? |
It might be relevant later if we wanted to override default values for some other use case. For now we got past it. |
This ticket is more generic than the fix for #4622 and if we can come up with a mechanism, it may be useful for other cases. |
It would certainly be useful to override the default setting of It looks like this user was experiencing the same problem a few years back. Does anyone know a workaround for dealing with this, other than modifying the |
Hey @jsf9k, thanks for the comment. I want to make sure that I understand correctly, so I'll rephrase and ask you to confirm. You are saying that you wish to set |
Thanks for the quick response @holmanb! You're very close. I don't think that (I'm assuming that |
Which cloud are you using? It should be possible (from cloud-init's perspective) for the cloud to define this setting to
Got that. Cloud-init doesn't currently allow users to - at runtime - define their own network settings. Currently network settings can only be set 1) by the datasource (via metadata), 2) by the user (by setting the configuration in It sounds like you want to set this key yourself, since the datasource's instance metadata isn't doing it. @jsf9k I just created this issue to track the request for users to define networking configuration to be applied at runtime. |
I'm using AWS. 🤷♂️
It sounds like I'll have to use
Thanks for creating an issue! Yes, I want to set this key myself. There are several other keys under |
No problem, I'm glad we're on the same page. This issue's title reads similarly to the new one I created, but this is actually a different topic. This issue is related to changing the existing configuration to define new keys, not to adding users' ability to define network configuration. Lets continue the conversation over on the new issue, since this one is a separate topic. I'll respond to your question over there. |
Enhancement
Please see the discussion in #4474 . Currently network renderers use various default settings for ip configurations. For example, settings for
IPV4_FAILURE_FATAL
andIPV6_FAILURE_FATAL
in ifcfg files andmay-fail
settings for nm keyfiles. See tables 70 and 71 in https://people.freedesktop.org/~lkundrak/nm-docs/nm-settings-ifcfg-rh.html for various ipv4 and ipv6 options that can be set and how they translate to ifcfg files and keyfiles. Unfortunately, the defaults may not be appropriate for some use cases and it may be required to override the default values with specific values for some of these settings. My ask here to add to cloud-init ability to override some of these values. For example it could be similar todhcpv6-override
anddhcp4-override
options that are currently available https://netplan.readthedocs.io/en/latest/netplan-yaml/#dhcp-overrides . Since the above override options seems set in stone and we cannot add arbitrary options, we can introduce a new set of override options, likeipv4-override
oripv6-override
that maybe passed on to the renderers and then renderers can consume it appropriately.The text was updated successfully, but these errors were encountered: