Comments (15)
Anyone can follow up this issue? this issue affected me a lot .
from resource-agents.
Can you try to provide the nic as well (eth0 in this case), it should work for the local link scope.
from resource-agents.
[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.
Any update ?
from resource-agents.
Anyone can help to fix this bug?
from resource-agents.
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.
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.
Ah, I need to look into more about the case of site-local address...
from resource-agents.
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
- Since site-local addresses has been deprecated over 8 years, you should not use site-locals any more (see RFC3879).
- 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.
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:
be3596bI don't think we should add a support for site-locals to IPv6addr in the future because
- Since site-local addresses has been deprecated over 8 years, you should not use site-locals any more (see RFC3879).
- 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.
Do you want to make it for 3.9.3 release? When would be the due date?
from resource-agents.
I will look through the docs and test it ,Thanks for you guys feedback.
from resource-agents.
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.
I've submitted a pull request #63 for this issues. I would appreciate if you could review and test it.
Thanks,
from resource-agents.
Implemented. Closing.
from resource-agents.
Related Issues (20)
- mysql: variable master_host empty on slave reboot
- Are awsvip and awseip still supported resources agents for RHEL HA? HOT 2
- awsvip versus AWS Policy HOT 3
- nothing provides /bin/ps needed by resource-agents-4.11.0 HOT 1
- WARNING: Can't get <node-name> xlog location. HOT 6
- ZFS promotion not working HOT 10
- Occasional false positive "down" reports from IPv6addr "monitor" action
- ZFS can't migrate to other node (cannot open pool: no such pool) HOT 2
- ERROR: LXC container name not set! HOT 23
- How to use the parameter of monitor_script?
- Unable to get metadata for resource agent 'stonith:fence_watchdog' (SyntaxError:JSON.parse:unexpected character at line 1) HOT 2
- master-pgsql attribute disappear HOT 1
- AWS Pacemaker awsvip failing with different errors HOT 4
- Resource agent - AWS Lambda support HOT 2
- Postfix RA continuously fails validate check HOT 1
- iSCSITarget - don't create default portal HOT 4
- resource-agents/heartbeat/ZFS - '-f' to option HOT 1
- "ocf : heartbeat : docker" does not exists in resource-agent v4.10 HOT 1
- How can I create a galera resource with two nodes?
- Filesystem in RHEL9.3 takes considerably longer to complete its stop operation compared to RHEL9.2. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resource-agents.