Stefan Metzmacher
6a818e66ae
events: 10.interface handle updateip event
...
metze
(This used to be ctdb commit a5cdf1277387f8c6292153c37fa9ceb64707d04f)
2010-01-20 11:11:02 +01:00
Stefan Metzmacher
98ee69c66d
server: add updateip event
...
metze
(This used to be ctdb commit 712ed0c4c0bff1be9e96a54b62512787a4aa6259)
2010-01-20 11:11:01 +01:00
Stefan Metzmacher
50bff8c886
config: add CTDB_PARTIALLY_ONLINE_INTERFACES to ctdb.sysconfig
...
With this option set to "yes", we don't become unhealthy
as long as at least one interface is still available.
metze
(This used to be ctdb commit d054eb33c6ae92560cddb40732e5dcf622591a3c)
2010-01-20 11:11:01 +01:00
Stefan Metzmacher
179c098e86
server: start with disabled interfaces and let the event scripts enable the interfaces explicit
...
This makes sure that we don't get public addresses assigned during the
initial recovery and remove them again in the startup event.
metze
(This used to be ctdb commit f872e8c63a2f8979e6a0d088630575bdd4d7b4f1)
2010-01-20 11:11:01 +01:00
Stefan Metzmacher
5d2c3ef656
config: 10.interfaces call monitor_interfaces on startup
...
metze
(This used to be ctdb commit 615dec051c26aac628f120e96bf12fb39fc6d28a)
2010-01-20 11:11:01 +01:00
Stefan Metzmacher
94e7101070
config: 10.interfaces call ctdb ifaces and ctdb setifacelink for monitoring
...
metze
(This used to be ctdb commit c465f63585c419ba59a6b04cbbf78ae615a7259d)
2010-01-20 11:11:01 +01:00
Stefan Metzmacher
9c89dd9210
events: splitout a monitor_interfaces function in 10.interface
...
metze
(This used to be ctdb commit b5ba56dea57db97d6c6ba3e7582e74fe0e3041fc)
2010-01-20 11:11:01 +01:00
Stefan Metzmacher
5fa6a51388
server: monitor interfaces in verify_ip_allocation()
...
metze
(This used to be ctdb commit 965a65520693e3731b5b0250127b04c777087808)
2010-01-20 11:11:01 +01:00
Stefan Metzmacher
22ade0e456
server: only trigger one takeover run in verify_ip_allocation()
...
metze
(This used to be ctdb commit 10bc087d0280057962177721bdd6d4f28743b311)
2010-01-20 11:11:01 +01:00
Stefan Metzmacher
f2854f75c8
tools/ctdb: add PartiallyOnline state for "ctdb status" and "ctdb status -Y"
...
This is based on the GET_IFACES control against each node.
metze
(This used to be ctdb commit 38cb972382a09f830673277d0a9bd5d20deafff2)
2010-01-20 11:11:00 +01:00
Stefan Metzmacher
a6437bc707
tools/ctdb: display interfaces in "ctdb ip" and "ctdb ip -Y" outputs
...
metze
(This used to be ctdb commit dffa2b05acce8b73c2fdd085311732bf57f01b7f)
2010-01-20 11:11:00 +01:00
Stefan Metzmacher
0054f0c54f
tests: add a all_ips_on_node() helper function that wraps ctdb ip -Y
...
metze
(This used to be ctdb commit c24fbea156dfdc9154e94eace725526e44cbcdac)
2010-01-20 11:11:00 +01:00
Stefan Metzmacher
04d896a5fe
tests/simple/11_ctdb_ip.sh: be more strict in checking ctdb ip -Y output
...
metze
(This used to be ctdb commit 27bde04966e22975777b4034dbaccfe158369110)
2010-01-20 11:11:00 +01:00
Stefan Metzmacher
df5805d6a0
tools/ctdb: add "ctdb ipinfo <ip>"
...
metze
(This used to be ctdb commit e05e236fc019bfd3b316609a7c190e0e028a4bbc)
2010-01-20 11:11:00 +01:00
Stefan Metzmacher
a6803f42a5
tools/ctdb: add "ctdb setifacelink <iface> <status>"
...
metze
(This used to be ctdb commit 8d0c00b60db69bd10f12da4c676e1142dc37af7a)
2010-01-20 11:11:00 +01:00
Stefan Metzmacher
0ceef7036b
tools/ctdb: add "ctdb ifaces"
...
metze
(This used to be ctdb commit 80053d09eed967fb76898f4a53437bed2b43a02f)
2010-01-20 11:11:00 +01:00
Stefan Metzmacher
f4f72024fe
server: implement ctdb_control_set_iface_link()
...
This only marks the interface status and doesn't
generate any directly triggered action.
The actions is later taken by the recovery process
in verify_ip_allocation.
metze
(This used to be ctdb commit cff58b27c970e9252d131125941c372019fd6660)
2010-01-20 11:10:59 +01:00
Stefan Metzmacher
0dd7e1bfa1
server: implement ctdb_control_get_ifaces()
...
metze
(This used to be ctdb commit 0e982a416a126d9856145c19baef320cd0e71d66)
2010-01-20 11:10:59 +01:00
Stefan Metzmacher
80e3ab04de
server: implement ctdb_control_get_public_ip_info()
...
metze
(This used to be ctdb commit 486fbd15f4cc4f45a4c110b2ddbba48bade22c9f)
2010-01-20 11:10:59 +01:00
Stefan Metzmacher
20e2f6199c
client: implement ctdb_ctrl_set_iface_link()
...
metze
(This used to be ctdb commit e2d6582001be28c1800e4da8b0f2dc541538c314)
2010-01-20 11:10:59 +01:00
Stefan Metzmacher
a30513c1f8
client: implement ctdb_ctrl_get_ifaces()
...
metze
(This used to be ctdb commit a21e3765dd83e837d93111f387448bf0a5dd4652)
2010-01-20 11:10:59 +01:00
Stefan Metzmacher
11f643fa78
client: implement ctdb_ctrl_get_public_ip_info()
...
metze
(This used to be ctdb commit 4efab41dfa61d5c7951c583d584df3455ee9c704)
2010-01-20 11:10:59 +01:00
Stefan Metzmacher
32d00d0a0d
controls: add stups for GET_PUBLIC_IP_INFO, GET_IFACES and SET_IFACE_LINK_STATE
...
metze
(This used to be ctdb commit a2c9e4578e149eccb2c6183f64a6b657eb95c5e1)
2010-01-20 11:10:59 +01:00
Stefan Metzmacher
37880b0d0a
server: use CTDB_PUBLIC_IP_FLAGS_ONLY_AVAILABLE during a takeover run
...
We know ask for the known and available interfaces.
This means a node gets a RELEASE_IP event for all interfaces
it "knows", but doesn't serve and a node only gets a TAKE_IP event
for "available" interfaces.
metze
(This used to be ctdb commit a695a38e49e7c3e15a9706392dc920eeab1f11ba)
2010-01-20 11:10:59 +01:00
Stefan Metzmacher
d89604afab
server: implement CTDB_PUBLIC_IP_FLAGS_ONLY_AVAILABLE behavior
...
metze
(This used to be ctdb commit 09a5c59bc8d1301edf60d7ae77504dc6d11a7da2)
2010-01-20 11:10:58 +01:00
Stefan Metzmacher
b9f6afe4b0
client: add CTDB_PUBLIC_IP_FLAGS_ONLY_AVAILABLE ctdb_ctrl_get_public_ips_flags()
...
metze
(This used to be ctdb commit 6bd780510058e5589f2f7c3722d37acbba4935ab)
2010-01-20 11:10:58 +01:00
Stefan Metzmacher
15616d3271
reserve upper bits in ctdb_control->flags for opcode specific flags
...
metze
(This used to be ctdb commit 91122c322fbec08138b92c528d9a946f6727b4fd)
2010-01-20 11:10:58 +01:00
Stefan Metzmacher
bea53c60b8
server: keep the interface information in a list of ctdb_iface structures
...
metze
(This used to be ctdb commit ff5291778f0752e176539397e9530dcf0e546bea)
2010-01-20 11:10:58 +01:00
Stefan Metzmacher
539ebdc94c
server: we don't need to copy strings we pass as talloc_asprintf() arguments
...
metze
(This used to be ctdb commit 080ba5ac2195fb73ef6f18740abdde57a7b97151)
2010-01-20 11:10:58 +01:00
Stefan Metzmacher
9a43f5e42b
events: 10.interfaces allow multiple interfaces per public address
...
metze
(This used to be ctdb commit f9837f8b6f887d28f29aeb3eeffe8cfb423b40b4)
2010-01-20 11:10:58 +01:00
Stefan Metzmacher
a1da4e05b5
server: allow multiple interfaces comma separated in public_addresses
...
metze
(This used to be ctdb commit 33a00ef7233051acdbc66410130ec5d876a8422f)
2010-01-20 11:10:58 +01:00
Stefan Metzmacher
8d50eda2b1
server: add a ctdb_vnn_iface_string() helper function to access vnn->iface
...
metze
(This used to be ctdb commit 9e5532e215892b2e0aadd9b106a730727f92c62e)
2010-01-20 11:10:58 +01:00
Stefan Metzmacher
bec35e6441
server: add a ctdb_set_single_public_ip() helper function
...
metze
(This used to be ctdb commit 400b4806c4a9686a2ee6398b5d7c3e0ca0793fd1)
2010-01-20 11:10:57 +01:00
Stefan Metzmacher
628ac65709
config: add 13.per_ip_routing event script
...
With this script it's possible to generate routing tables
per public ip address.
metze
(This used to be ctdb commit ff5678fbec2daef461143acf00cef3f94d7655fc)
2010-01-20 11:10:57 +01:00
Stefan Metzmacher
2ecf8053f9
config: add some ipv4 helper shell functions
...
Many thanks to Michael Adam <obnox@samba.org>
for the basic work.
metze
(This used to be ctdb commit ff9c641763702ae99632bbf4d0825d578440c074)
2010-01-20 11:10:57 +01:00
Stefan Metzmacher
4493ba6ffa
config: add interface_modify.sh and call it under flock to make modification on interfaces atomic
...
When two releaseip events run in parallel it's possible that the 2nd script
readds a secondary ip that was removed by the 1st script.
metze
(This used to be ctdb commit e02417b2a55c45ac2c125b1b3463c9c39e7bc07a)
2010-01-20 11:10:48 +01:00
Stefan Metzmacher
c251ac20fa
events/10.interfaces: move some parts to helper functions
...
metze
(This used to be ctdb commit 24cd42769d8f32b90a8876a6a08a36ab23076cd1)
2010-01-20 09:44:37 +01:00
Stefan Metzmacher
d01870f138
config/functions: add tickle_tcp_connections()
...
metze
(This used to be ctdb commit 2397f13d7b5ca3847ef148187c6b179d06f6a47a)
2010-01-20 09:44:37 +01:00
Stefan Metzmacher
fd06167caa
server: add "init" event
...
This is needed because the "startup" event runs after the initial recovery,
but we need to do some actions before the initial recovery.
metze
(This used to be ctdb commit e953808449c102258abb6cba6f4abf486dda3b82)
2010-01-20 09:44:36 +01:00
Stefan Metzmacher
8456a1b0ef
server: setup fault handler to get the build-in backtrace support
...
The panic action feature will be added later.
metze
(This used to be ctdb commit 37d11895e96ba8bc8c9ba159083970c45f76d9bb)
2010-01-20 09:44:36 +01:00
Stefan Metzmacher
78b78fc478
lib/util: add pre and post panic action hooks
...
metze
(This used to be ctdb commit e366e77ba170d2c27110c56004ae1adf97abef9e)
2010-01-20 09:44:36 +01:00
Stefan Metzmacher
9cba540514
lib/util: import fault/backtrace handling from samba.
...
metze
(This used to be ctdb commit 8171d66f0061fe23ed6dfef87ffe63bfc19596eb)
2010-01-20 09:44:36 +01:00
Stefan Metzmacher
b70ff7e4d1
configure: don't overwrite AC_CHECK_FUNC_EXT and AC_CHECK_LIB_EXT
...
This has curently no affect on the generated configure and config.h.in files.
metze
(This used to be ctdb commit 9d39ada437b02d84b70a5fea78b61bbb32f16d81)
2010-01-20 09:44:36 +01:00
Stefan Metzmacher
a309287947
move DEBUG* macros to one place
...
metze
(This used to be ctdb commit 4b4dd5d7f81bf226e05c7f3d40087043da1517a2)
2010-01-20 09:44:36 +01:00
Stefan Metzmacher
a23c409e73
tools/ctdb: display INACTIVE status in "ctdb status" and "ctdb status -Y"
...
metze
(This used to be ctdb commit 18af37e99ef8ff5623161495be432abfe5e3407f)
2010-01-20 09:44:36 +01:00
Stefan Metzmacher
2f36e78d88
server: add missing goto again after do_recovery()
...
metze
(This used to be ctdb commit 898894d3acbcc0add2ab0706a3172a446622f687)
2010-01-20 09:44:35 +01:00
Stefan Metzmacher
35a15ad7a9
lib/events: finish "Run only one event for each epoll_wait/select call"
...
This finished commit a78b8ea7168e5fdb2d62379ad3112008b2748576.
The logic was missing in events_standard (the one that's used by default).
metze
(This used to be ctdb commit 49f0488a5e60c74b6b8361dffcd09ebb2db740f0)
2010-01-20 09:44:35 +01:00
Ronnie Sahlberg
21e5b44673
source the nfs sysconfig file from the 61.nfstickles script
...
(This used to be ctdb commit 085d1bea78fabf754ef6dd6d323f74a1d361e45c)
2010-01-20 10:35:02 +11:00
Ronnie Sahlberg
88dc248ada
document the in-memory ringbuffer for logging and the commands
...
used to set it up and manage it.
(This used to be ctdb commit 037e64e1900f09e699d5fce50df2850f26f47f91)
2010-01-15 16:01:51 +11:00
Ronnie Sahlberg
a1d60b1511
Make the size of the in memory ringbuffer for keeping the recent log messages
...
configureable using --log-ringbuf-size=<num-entries>.
Add an entry in the sysconfig file to set this persistently.
(This used to be ctdb commit c79c2da69bc352f509e7fca4b9172a4b7f23c0f8)
2010-01-15 15:38:56 +11:00