Angus Salkeld
d312db330f
CTS: add --rrp-bindaddr to enable rrp tests.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2758 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-04-14 01:41:35 +00:00
Angus Salkeld
212126fa34
When sync is aborted clear the "my_ring_id" variable.
...
This patch fixes crashes found by repeated pacemaker CTS SimluStart
tests. When you bring up the nodes together it can cause a lot of
configuration changes and sync gets started and aborted
lots of times.
When abort is called the ring_id is not changed which means that any
sync packet that arrive from that point on will be accepted as valid.
I have seen old barrier messages causing the processing index to increment
later causing an array out of bounds.
This patch memsets the ring_id to 0, thus causing the ring_id in the packet and
my_ring_id not to match.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2757 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-04-12 19:51:38 +00:00
Angus Salkeld
2090373321
add comment to the man page explaining the use of port and port -1.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2756 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-04-07 05:04:15 +00:00
Steven Dake
97174868b1
Allow modifying POLLIN/POLLOUT state in another thread while the main thread
...
is blocked in poll system call.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2755 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-04-02 19:16:23 +00:00
Steven Dake
5408399b23
Remove problem where NULL dispatch handler functions would result in lockup
...
of the dispatch if they were sent by a service engine.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2754 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-04-02 00:10:43 +00:00
Jan Friesse
a568462601
Support for user configurable warning signal
...
Allow developer configure a signal to be send as a warning signal
before real SIGKILL.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2753 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-04-01 12:51:07 +00:00
Jan Friesse
4b18364c61
Support for specific libraries version
...
Patch adds support for changing version number of library simply by edit
lib$(LIB).verso file.
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2752 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-04-01 12:35:31 +00:00
Angus Salkeld
efccdcf140
Add missing cts files.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2751 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-30 21:38:38 +00:00
Steven Dake
cf4e2069b6
Fix barrier operation with syncv2 and compat:none or openais service engines.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2750 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-30 08:23:10 +00:00
Angus Salkeld
5371fc9ede
augeas: add uidgid and quorum options to lense
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2749 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-30 07:25:38 +00:00
Jérôme Flesch
52acd736d0
Coroipcc: Make sure that coroipcc_service_connect() always return a valid cs_error_t
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2748 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-30 07:24:59 +00:00
Angus Salkeld
621a7c0ee1
CTS: add votequorum test agent
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2747 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-30 07:20:57 +00:00
Angus Salkeld
805a0f3c1d
objdb: fix key change notifications
...
1) don't send notifications if the key is the same.
2) Add key value change notifications to key_inc & key_dec
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2746 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-30 07:19:25 +00:00
Angus Salkeld
0ffd872fef
CTS: add some more confdb tests
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2745 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-30 07:18:10 +00:00
Angus Salkeld
afc6b1a1e6
CTS: add sam tests
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2744 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-30 07:16:43 +00:00
Angus Salkeld
7afd625183
CTS: add cpg_zcb tests
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2743 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-30 07:14:28 +00:00
Angus Salkeld
15afe1d192
CTS: add a test for sync events
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2742 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-30 07:11:56 +00:00
Angus Salkeld
04e70cbaa1
fix make distcheck (add corosync.aug to EXTRA_DIST
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2741 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-30 07:09:55 +00:00
Jérôme Flesch
a5f2733211
Totemudp: Add debug logs when a call to sendmsg() fails
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2740 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-26 13:54:42 +00:00
Angus Salkeld
49ef3eb196
Make corosync exit with 0 normally and +1.. on error.
...
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2739 fd59a12c-fef9-0310-b244-a6a79926bd2f
2010-03-25 00:58:14 +00:00
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