Skip to content

Conversation

@gao-yan
Copy link
Member

@gao-yan gao-yan commented Nov 5, 2025

More distributions are using systemd's network device naming schemes: https://www.freedesktop.org/software/systemd/man/latest/systemd.net-naming-scheme.html

In that case, eth0 is no longer the default interface name.

…ources

More distributions are using systemd's network device naming schemes:
https://www.freedesktop.org/software/systemd/man/latest/systemd.net-naming-scheme.html

In that case, eth0 is no longer the default interface name.
@clumens clumens merged commit 192f0bc into ClusterLabs:main Nov 5, 2025
1 check passed
help="Offset for generated IP address resources")
grp2.add_argument("--nic",
default="eth0",
help="Network interface used for generated IP address resources")
Copy link
Contributor

Choose a reason for hiding this comment

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

We should note that this applies only if --ip is set to an IPv6 address.

Alternatively, we could modify cib.py so that it applies to both IPv4 and IPv6 base addresses.

As a side note, I'm not sure that explicitly setting a nic parameter is required anymore for IPv6, in most cases. It looks like the IPaddr2 resource agent should be able to find the correct interface via its findif.sh helper. For example:

IPv6 support in IPaddr2 was probably less mature (or perhaps nonexistent) when CTS lab was written.

Copy link
Member Author

@gao-yan gao-yan Nov 5, 2025

Choose a reason for hiding this comment

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

We should note that this applies only if --ip is set to an IPv6 address.

Alternatively, we could modify cib.py so that it applies to both IPv4 and IPv6 base addresses.

Makes sense. The latter sounds better to me.

As a side note, I'm not sure that explicitly setting a nic parameter is required anymore for IPv6, in most cases. It looks like the IPaddr2 resource agent should be able to find the correct interface via its findif.sh helper.

I assume so. But nic parameter is anyway mandatory for a link local address:

https://github.com/ClusterLabs/resource-agents/blob/44f1489bd8cc329d1f94a6907007159493b7cce6/heartbeat/findif.sh#L154-L159

, such as the ones by defaulting --ip.

Copy link
Member Author

@gao-yan gao-yan Nov 5, 2025

Choose a reason for hiding this comment

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

We might want something like: #3986

I'll have to test it tomorrow though.

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

Successfully merging this pull request may close these issues.

3 participants