GithubHelp home page GithubHelp logo

Comments (15)

jackwangchina avatar jackwangchina commented on July 18, 2024

Anyone can follow up this issue? this issue affected me a lot .

from resource-agents.

dmuhamedagic avatar dmuhamedagic commented on July 18, 2024

Can you try to provide the nic as well (eth0 in this case), it should work for the local link scope.

from resource-agents.

jackwangchina avatar jackwangchina commented on July 18, 2024

[root@ha1 ~]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:50:56:a2:06:ee brd ff:ff:ff:ff:ff:ff
inet 10.20.12.119/23 brd 10.20.13.255 scope global eth0
inet6 fe80::250:56ff:fea2:6ee/64 scope link
valid_lft forever preferred_lft forever
3: sit0: mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0

I tested link-local address ,it can bind on adaptor successfully ,but site-local/global(2001::1) address can not bind on eth0.

from resource-agents.

jackwangchina avatar jackwangchina commented on July 18, 2024

Any update ?

from resource-agents.

jackwangchina avatar jackwangchina commented on July 18, 2024

Anyone can help to fix this bug?

from resource-agents.

dmuhamedagic avatar dmuhamedagic commented on July 18, 2024

On Mon, Feb 20, 2012 at 10:30:58PM -0800, jackwangchina wrote:

Anyone can help to fix this bug?

I guess that we need to relax the rules then. In case the user
provides the interface name and for certain scopes.

Keisuke-san, what do you make of this?

from resource-agents.

kskmori avatar kskmori commented on July 18, 2024

I guess that jackwangchine wants to assign a virtual IPv6 address on the nic which does NOT have any static IPv6 address of the same subnet to the virtual address, correct?

At least for the current version of IPv6addr, you must have assigned a static IP address of the subnet which the virtual IP address you're going to use belongs to. It has been a typical usage in IPv4, and that's how I've been using IPv6addr too. Scopes should not do the matter here; assigning a link-local address succeeds because a static link-local address is just always there.

But yes, certainly there is such an use case that "force to use the specified nic if provided" even if the nic does not have any static IP address of the subnet.

In the case of IPaddr2 (or more specifically 'findif'), it already behaves like it; "force to use the specified nic if provided", though I'm not sure if it is intended or not.
Anyway it is also preferable to have a consistent behavior between those RAs.

The problem of this behavior is that, the RAs can not detect a configuration error any more; if an user specified a wrong nic, the RA would silently use the nic.

If it's OK with you, I'm positive to write a patch to fix it.

from resource-agents.

kskmori avatar kskmori commented on July 18, 2024

Ah, I need to look into more about the case of site-local address...

from resource-agents.

kskmori avatar kskmori commented on July 18, 2024

In the case of site-local addresses, there is another issue.
IPv6addr RA has never support site-local addresses. Any site-local address is skipped here:
be3596b

I don't think we should add a support for site-locals to IPv6addr in the future because

  1. Since site-local addresses has been deprecated over 8 years, you should not use site-locals any more (see RFC3879).
  2. Linux kernel does not support sin6_scope_id for site-locals (see man ipv6(7)).

Instead, you can use Unique Local IPv6 Unicast Addresses (FC00::/7, see RFC4193).
It should work as exactly same as global addresses.

Except about site-locals, my comment above is still valid.

from resource-agents.

dmuhamedagic avatar dmuhamedagic commented on July 18, 2024

On Tue, Feb 21, 2012 at 09:49:06PM -0800, Keisuke MORI wrote:

But yes, certainly there is such an use case that "force to use the specified nic if provided" even if the nic does not have any static IP address of the subnet.

In the case of IPaddr2 (or more specifically 'findif'), it already behaves like it; "force to use the specified nic if provided", though I'm not sure if it is intended or not.
Anyway it is also preferable to have a consistent behavior between those RAs.

Agreed.

The problem of this behavior is that, the RAs can not detect a configuration error any more; if an user specified a wrong nic, the RA would silently use the nic.

Let's allow our users to shoot themselves in foot ;-) Seriously
though, we may log an info severity message to that extent.

If it's OK with you, I'm positive to write a patch to fix it.

Great!

On Wed, Feb 22, 2012 at 01:13:24AM -0800, Keisuke MORI wrote:

In the case of site-local addresses, there is another issue.
IPv6addr RA has never support site-local addresses. Any site-local address is skipped here:
be3596b

I don't think we should add a support for site-locals to IPv6addr in the future because

  1. Since site-local addresses has been deprecated over 8 years, you should not use site-locals any more (see RFC3879).
  2. Linux kernel does not support sin6_scope_id for site-locals (see man ipv6(7)).

Agreed too.

Instead, you can use Unique Local IPv6 Unicast Addresses (FC00::/7, see RFC4193).
It should work as exactly same as global addresses.

Except about site-locals, my comment above is still valid.

from resource-agents.

kskmori avatar kskmori commented on July 18, 2024

Do you want to make it for 3.9.3 release? When would be the due date?

from resource-agents.

jackwangchina avatar jackwangchina commented on July 18, 2024

I will look through the docs and test it ,Thanks for you guys feedback.

from resource-agents.

dmuhamedagic avatar dmuhamedagic commented on July 18, 2024

On Wed, Feb 22, 2012 at 04:05:20PM -0800, Keisuke MORI wrote:

Do you want to make it for 3.9.3 release? When would be the due date?

I was just about to propose to release next week. But this is not
such an urgent issue if you're out of time.

from resource-agents.

kskmori avatar kskmori commented on July 18, 2024

I've submitted a pull request #63 for this issues. I would appreciate if you could review and test it.
Thanks,

from resource-agents.

dmuhamedagic avatar dmuhamedagic commented on July 18, 2024

Implemented. Closing.

from resource-agents.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.