mirror_corosync/exec
Jan Friesse a84ade701c totemconfig: Enhance totem.ip_version
Originally totem.ip_version was used to force ip version used by totem.
With Knet this variable didn't make too much sense so it was not used.

Sadly rely only on DNS resolver order doesn't always work (RFC is quite
complicated, but if IPv6 is not configured then IPv4 is preferred), what
we tried to solve by forcing IPv6 and only if that fails, use IPv4.

Sadly this collides with nss_myhostname which is able to return every
local address and today system usually have at least one autogenerated
link-local IPv6 address so it is able to "overwrite" /etc/hosts.

Solution is to enhance totem.ip_version and use it also for Knet.
totem.ip_version is now just a flag for resolver and can have four
states: ipv4 (only IPv4 is used), ipv6 (only IPv6 is used), ipv4-6 (ask
IPv4 first and if it fails ask for IPv6) and ipv6-4 (ask IPv6 first and
if it fails ask for IPv4). Default for Knet and UDPU transports is
ipv6-4, for UDP it's ipv4, because autogenerated mcast addr doesn't play
too well with ipv6-4.

So everywhere where nss_myhostname becomes problem, it's just possible
to set totem.ip_version to ipv4-6.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
2018-12-14 10:56:06 +01:00
..
.gitignore Add .gitignore files. 2010-10-21 07:43:46 -07:00
apidef.c CFG: Remove ring-reenable code 2017-08-03 14:32:02 +02:00
apidef.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
cfg.c main: Remove COROSYNC_RUN_DIR 2018-11-15 17:30:37 +01:00
cmap.c stats: Fix delete of track 2018-11-16 11:47:22 +01:00
coroparse.c totemconfig: Enhance totem.ip_version 2018-12-14 10:56:06 +01:00
cpg.c cpg: Inform clients about left nodes during pause 2018-04-30 14:37:20 +02:00
cs_queue.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
fsm.h Make logging of WD and MON service correct 2012-08-16 14:45:15 +02:00
icmap.c stats: Add map with on-demand statistics 2017-07-27 15:53:04 +02:00
ipc_glue.c main: Move sched paramaters to config file 2018-11-15 17:30:03 +01:00
ipcs_stats.h stats: Add cmap key to clear the various stats. 2017-10-31 17:39:14 +01:00
logconfig.c logsys: Make hires timestamp default 2018-10-29 17:45:35 +01:00
logconfig.h list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
logsys.c logsys: Support hires timestamp 2018-10-29 17:45:29 +01:00
main.c totemconfig: Enhance totem.ip_version 2018-12-14 10:56:06 +01:00
main.h main: Replace COROSYNC_MAIN_CONFIG_FILE 2018-11-15 17:30:14 +01:00
Makefile.am build: Do not compile totempg as a shared library 2018-09-25 08:23:30 +02:00
mon.c list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
pload.c build: bring SOLARIS up to the same standard as other OSes 2012-08-30 15:00:27 +02:00
quorum.c Remove redundant header file inclusion 2016-12-05 09:59:08 +01:00
quorum.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
schedwrk.c schedwrk: Cleanup and make it work on PPC BE 2016-05-17 16:29:25 +02:00
schedwrk.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
service.c service: Fix memleak in service_unlink_and_exit 2013-06-21 11:21:29 +02:00
service.h service: remove leftovers from mt corosync 2012-08-09 15:10:16 +02:00
stats.c stats: Fix delete of track 2018-11-16 11:47:22 +01:00
stats.h stats: Add map with on-demand statistics 2017-07-27 15:53:04 +02:00
sync.c sync: Call sync_init of all services at once 2017-11-16 15:22:19 +01:00
sync.h sync: kill evil and syncv1 in one shot 2012-03-09 11:15:08 +01:00
timer.c Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
timer.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
totemconfig.c totemconfig: Enhance totem.ip_version 2018-12-14 10:56:06 +01:00
totemconfig.h config: Allow links to have different ip_versions 2017-12-22 17:15:19 +01:00
totemip.c totemconfig: Enhance totem.ip_version 2018-12-14 10:56:06 +01:00
totemknet.c totemknet: Free instance on failure exit 2018-08-13 09:00:35 +02:00
totemknet.h totem: Display IP of sender 2018-03-16 13:58:15 +01:00
totemnet.c totem: Display IP of sender 2018-03-16 13:58:15 +01:00
totemnet.h totem: Display IP of sender 2018-03-16 13:58:15 +01:00
totempg.c config: Fix crash in reload if new interfaces are added 2018-10-15 15:54:57 +02:00
totemsrp.c build: Remove NSS dependencies 2018-09-17 10:26:05 +02:00
totemsrp.h Add option to force cluster into GATHER state 2018-09-07 13:27:36 +02:00
totemudp.c totem: Display IP of sender 2018-03-16 13:58:15 +01:00
totemudp.h totem: Display IP of sender 2018-03-16 13:58:15 +01:00
totemudpu.c totemudpu: Pass correct paramto totemip_nosigpipe 2018-07-12 16:29:15 +02:00
totemudpu.h totem: Display IP of sender 2018-03-16 13:58:15 +01:00
util.c main: Remove COROSYNC_RUN_DIR 2018-11-15 17:30:37 +01:00
util.h main: Remove COROSYNC_RUN_DIR 2018-11-15 17:30:37 +01:00
votequorum.c config: Allow generated nodeis for UDP & UDPU 2018-10-25 18:21:02 +02:00
votequorum.h list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
vsf_quorum.c Remove redundant header file inclusion 2016-12-05 09:59:08 +01:00
vsf_ykd.c YKD: Fix loading of YKD quorum module 2014-08-18 09:33:59 +01:00
vsf_ykd.h list: Replace uses of list.h with qblist.h 2016-10-27 14:56:52 +02:00
vsf.h Update copyright header dates in exec directory 2012-02-13 17:05:04 -07:00
wd.c wd: fix snprintf warnings 2017-12-01 17:23:54 +01:00