Angus Salkeld
c8cdc2e2de
fix 'make distcheck'
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2738 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-24 22:42:09 +00:00
Angus Salkeld
ab4c8434a8
CTS: get some more code to execute.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2737 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-24 22:22:40 +00:00
Angus Salkeld
988be543cf
CTS: Add a condb test agent and python tests.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2736 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-24 22:22:00 +00:00
Angus Salkeld
8df2e184f9
CTS: Add a confdb test agent and python tests.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2735 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-24 22:21:22 +00:00
Angus Salkeld
831284cec2
CTS: fix issues with new pacemaker cts
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2734 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-24 22:20:24 +00:00
Angus Salkeld
1d24acdeb9
CTS: restruct tests so we can run them with multiple configs
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2733 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-24 22:18:09 +00:00
Angus Salkeld
f50ca25dce
Add quorum option to augeas lense
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2732 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-24 22:17:24 +00:00
Angus Salkeld
59826dd14e
Fix unloading of evs (service id == 0)
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2731 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-24 22:16:32 +00:00
Angus Salkeld
3eead28e17
CTS: add service load/unload test
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2730 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-24 22:15:45 +00:00
Angus Salkeld
9a862803aa
Fix code coverage with lcrso's
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2729 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-24 22:14:25 +00:00
Angus Salkeld
44e7eb5ca0
CTS: Add tests with more totem options.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2728 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-24 22:13:45 +00:00
Angus Salkeld
b3a2952088
Add crypto options to augeas lense & add make check
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2727 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-24 22:12:57 +00:00
Angus Salkeld
75dc6e1492
CTS: Add msg sha1 checking of the message body (like cpgverify)
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2726 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-24 22:12:09 +00:00
Steven Dake
65695c3149
Bump version to 1.2.1.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2723 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-23 21:49:46 +00:00
Steven Dake
64d60a26c6
Tone down noisy logging from ipcs system.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2721 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-23 17:16:39 +00:00
Steven Dake
2cc62fdd34
Fix lockup that occurs rarely with pthread_join() is called in atexit()
...
handler.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2719 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-22 22:07:01 +00:00
Steven Dake
084d19cddc
Fix problem where retransmissions don't occur resulting in failure to receive
...
condition.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2685 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-20 20:08:38 +00:00
Christine Caulfield
576614109e
Fix a couple of small bugs that happen when the configuration is reloaded.
...
1. the reload callback was not sent to the library,
2. totem exponentially added new callbacks because the old ones were not
removed properly.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2684 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-16 09:53:18 +00:00
Christine Caulfield
1baa7b2ab3
Add a reload callback to libconfdb.
...
This also increments the libconfdb version to 4.1.0
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2683 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-16 09:51:30 +00:00
Angus Salkeld
1e17751d0d
Remove warnings.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2682 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-11 00:27:04 +00:00
Angus Salkeld
85fb64727e
add optional --with testagents to the spec file
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2681 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-10 23:31:15 +00:00
Angus Salkeld
b5a9d81f1f
CTS: fix buffer overrun in test agent.
...
Also to make debugging easier:
1) don't stop abrt
2) fix debug message
3) catch a failed mesage to the TA and fail the test.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2680 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-10 23:29:41 +00:00
Angus Salkeld
1924e328ca
CTS: fix deletion of the tmp root for augeas
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2679 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-10 23:28:06 +00:00
Angus Salkeld
ce492d7008
add a list of member nodes into the objdb runtime tree.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2678 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-09 22:04:06 +00:00
Angus Salkeld
92ade89db6
tsafe: change fork() override to pthread_atfork() callbacks.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2677 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-09 21:59:24 +00:00
Jan Friesse
009dfc090e
Support for lib_cpg_finalize
...
Add support for MESSAGE_REQ_CPG_FINALIZE message. This will allow us
remove cpg_pd from list of active connections, and remove problem, when
cpg_finalize + cpg_initialize + cpg_join can result in CPG_ERR_EXIST
error.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2676 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-04 12:17:47 +00:00
Jan Friesse
7e8da9a6fc
Cpg join with undelivered leave message
...
Patch handles situation, when on one node, one process:
- join cpg
- do same actions
- leave cpg
- join cpg again
Following sequence can (racy) end with broken process_info list.
To solve this problem, one more check is done in
message_handler_req_lib_cpg_join so if process_info with same pid and
group as new join request exists, CPG_ERR_TRY_AGAIN is returned.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2675 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-04 12:12:24 +00:00
Angus Salkeld
ec09a97867
Fix some "make lint" problems
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2674 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-03 21:52:08 +00:00
Steven Dake
f1475a0516
Specify the ringnumber parameter must start at 0 in the corosync.conf man page.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2673 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-03 19:43:50 +00:00
Steven Dake
3dd78c7aec
Fix error handling to avoid segfaults/leaks on error in coroipcc_service_connect.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2672 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-03 19:19:12 +00:00
Steven Dake
9e6ef83d61
Turn executable bit on for py/sh scripts in cts.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2671 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-03 08:10:30 +00:00
Angus Salkeld
4a14c93fcb
Add tsafe.h to noinst_HEADERS to fix "make distcheck"
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2670 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-03 04:51:43 +00:00
Angus Salkeld
4e7ded5bf3
Add tsafe (thread safe) file to catch unsafe function calls.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2669 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-03 01:27:37 +00:00
Angus Salkeld
824fd8e82a
Add a test harness to corosync that uses CTS from pacemaker.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2668 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-03 00:08:57 +00:00
Christine Caulfield
e9adc51893
Reduce the number of times the quorum message is displayed.
...
Patch from David Teigland
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2667 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-26 15:30:38 +00:00
Angus Salkeld
efd0157b39
convert giduid calls to reentrant versions.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2666 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-25 19:29:49 +00:00
Angus Salkeld
20f3331d0e
convert strerror() into strerror_r()
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2665 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-25 19:28:36 +00:00
Angus Salkeld
2290913d28
convert readdir into readdir_r
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2664 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-25 19:26:54 +00:00
Angus Salkeld
5dd31150ee
convert strtok to strtok_r
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2663 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-25 19:25:20 +00:00
Angus Salkeld
fdeea0b3b1
Add a debug message on node join/leave.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2662 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-18 20:12:14 +00:00
Angus Salkeld
9b5b7872b6
Correct testcpg's groupname.length
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2661 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-18 20:10:36 +00:00
Steven Dake
bc64fbcb58
Patch to set unset value in token hold cancel structure as to not crash
...
wireshark.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2660 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-18 20:08:39 +00:00
Angus Salkeld
cb5f5c9432
add a note about rotating logfile created with to_logfile
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2659 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-17 22:23:12 +00:00
Angus Salkeld
07f506f0ac
Add augeas lense for corosync.conf
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2658 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-17 00:27:35 +00:00
Jan Friesse
5a8200c1cb
Fix corosync shutdown process
...
This patch change corosync shutdown process, so now:
- exit function of service engine is called
- all IPC connections are closed and removed from poll
- service engine is unlocked
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2657 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-16 11:29:14 +00:00
Steven Dake
1978c9d471
Use nodeid instead of localhost ip for the case when binding to a
...
loalhost interface.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2656 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-15 21:39:33 +00:00
Christine Caulfield
a22f051d04
Remove a double list_del() when a tracking CFG client shuts down without
...
calling cfg_track_stop. This caused corosync to crash.
The extra list_empty() check is redundant too because it also happens in remove_ci_from_shutdown()
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2655 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-12 07:46:02 +00:00
Steven Dake
a1bf354ed4
Merge of Dejan's on=yes patch for the config parser options to ease migration.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2654 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-04 21:36:21 +00:00
Angus Salkeld
c6beee076a
pass transitional members into the sync_init() callbacks.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2653 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-04 00:18:51 +00:00
Angus Salkeld
e88aebbac7
move sync_v2_init() into main_service_ready
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2652 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-02-04 00:13:27 +00:00