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

Ipv6 support for provisioning nodes #1220

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

dacianstremtan
Copy link

Description of the Pull Request (PR):

Write your description of the PR here. Be sure to include as much background,
and details necessary for the reviewers to understand exactly what this is
fixing or enhancing.

This fixes or addresses the following GitHub issues:

  • Fixes #

Before submitting a PR, make sure you have done the following:

The Ipaddr6 was not being read from the warewulf.conf
Also the Ipv6 needed CIDR notation, which is not IP. 
Moved the check for the valid network from the IP address to the IPv6net option. This also should be set.
IPv6 ipaddr6 needed to be parsed differently at ":" then legacy IP.
Add Ipaddr6 as an option to the provisioning of nodes
Fix remote port.
@anderbubble
Copy link
Collaborator

Thanks for the PR, @dacianstremtan! I look forward to reviewing it.

@anderbubble anderbubble self-requested a review May 10, 2024 19:42
@anderbubble anderbubble added the enhancement New feature or request label May 10, 2024
@anderbubble anderbubble added this to the v4.6.0 milestone May 10, 2024
@@ -29,10 +29,10 @@ type RootConf struct {
WWInternal int `yaml:"WW_INTERNAL"`
Comment string `yaml:"comment,omitempty"`
Ipaddr string `yaml:"ipaddr"`
Ipaddr6 string `yaml:"ipaddr6,omitempty"`
Ipaddr6 string `yaml:"Ipaddr6,omitempty"`
Netmask string `yaml:"netmask"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like to keep ipaddr6 in the nodes.conf yaml file, as we have already ipaddr without capitalization.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, when using the lower case "ipaddr6", the script (parser.go) is not picking up the Ipaddr6 declaration from the warewulf.conf file. It's being skipped. I did not know where this was declared to make sure that the case is ignored.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the script

Which script? Or do you mean that a configured ipaddr6 value isn't actually available within Warewulf?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The value ipaddr6 for the Warewulf controller node is not being picked up from the warewulf.conf

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have the following situation, in warewulf.conf we use ipaddr6, but in all the templates (file ending with .ww it's Ipaddr6 as this is an exported variable in golang which must be capitalized.
We have similar problems for the variables in nodes.conf, but we might need to sync the variable names in the long run.

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

Successfully merging this pull request may close these issues.

None yet

3 participants