GithubHelp home page GithubHelp logo

Comments (5)

jackwangchina avatar jackwangchina commented on July 1, 2024

I can provide more information:
[root@localhost heartbeat]# 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

    src_sin6.sin6_family = AF_INET6;
src_sin6.sin6_addr = *src_ip;
src_sin6.sin6_port = 0;
    //If I add src.sin6_scope_id=2 ,then It works fine 
   // if not ,then error to bind log from /var/log/message:     localhost IPv6addr: [2240]: ERROR: bind() failed: Invalid argument
  crm configure primitive test  ocf:heartbeat:IPv6addr params ipv6addr="fe80:0000:0000:0000:0250:56ff:fea2:ff3"  cidr_netmask="64" nic="eth0"   op monitor timeout="15s" interval="15s ,I have specified the nic ,but it does not know i want to bind on eth0.

from resource-agents.

jackwangchina avatar jackwangchina commented on July 1, 2024

I noticed 3.9.1 fixed the payload intialized issue ,but still Invalid argument error log in /var/log/messages.
crm configure primitive test ocf:heartbeat:IPv6addr params ipv6addr="fe80:0000:0000:0000:0250:56ff:fea2:ff3" cidr_netmask="64" nic="eth0" op monitor timeout="15s" interval="15s
it can bind ipv6 address to adaptor properly,just show error log :
Nov 9 03:59:51 localhost IPv6addr: [3905]: ERROR: bind() failed: Invalid argument
Nov 9 03:59:55 localhost last message repeated 4 tim
if i add src.sin6_scope_id=2 ,then It works fine(it does not make sense to hardcoded this),i passed nic=etho in crm command ,but it still need to calculate the adaptor,Is there a good solution to fix this error log?

from resource-agents.

kskmori avatar kskmori commented on July 1, 2024

Will you try the following patch?
kskmori@66ee15c

If it's OK with you I will submit a pull request for it.

from resource-agents.

jackwangchina avatar jackwangchina commented on July 1, 2024

my log:
Nov 23 22:06:53 localhost attrd: [13238]: info: attrd_trigger_update: Sending flush op to all hosts for: last-failure-testbni_1 (1320650849)
Nov 23 22:06:53 localhost attrd: [13238]: info: attrd_ha_callback: flush message from localhost.localdomain
Nov 23 22:06:53 localhost attrd: [13238]: info: attrd_ha_callback: flush message from localhost.localdomain
Nov 23 22:06:55 localhost avahi-daemon[4080]: Registering new address record for fe80::56ff:fea2:fe3 on eth0.
Nov 23 22:06:55 localhost kernel: ICMPv6 NA: someone advertises our address on eth0!
Nov 23 22:06:59 localhost last message repeated 4 times

So there's no error log now.

from resource-agents.

dmuhamedagic avatar dmuhamedagic commented on July 1, 2024

Thanks to Keisuke-san!

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.