Corosync report "Started" itself too early
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
corosync (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Won't Fix
|
Undecided
|
Unassigned | ||
Xenial |
Won't Fix
|
Undecided
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Unassigned | ||
Disco |
Won't Fix
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Problem description:
currently, we have no service state check after start-stop-daemon in do_start(),
it might lead to an error if corosync report itself started too early,
pacemaker might think it is a 'heartbeat' backended, which is not we desired,
we should check if corosync is "really" started, then report its state,
syslog with wrong state:
May 24 19:53:50 myhost corosync[1018]: [MAIN ] Corosync Cluster Engine ('1.4.2'): started and ready to provide service.
May 24 19:53:50 myhost corosync[1018]: [MAIN ] Corosync built-in features: nss
May 24 19:53:50 myhost corosync[1018]: [MAIN ] Successfully read main configuration file '/etc/corosync/
May 24 19:53:50 myhost corosync[1018]: [TOTEM ] Initializing transport (UDP/IP Unicast).
May 24 19:53:50 myhost corosync[1018]: [TOTEM ] Initializing transmit/receive security: libtomcrypt SOBER128/SHA1HMAC (mode 0).
May 24 19:53:50 myhost pacemakerd: [1094]: info: Invoked: pacemakerd
May 24 19:53:50 myhost pacemakerd: [1094]: info: crm_log_
May 24 19:53:50 myhost pacemakerd: [1094]: info: get_cluster_type: Assuming a 'heartbeat' based cluster
May 24 19:53:50 myhost pacemakerd: [1094]: info: read_config: Reading configure for stack: heartbeat
expected result:
May 24 21:45:02 myhost corosync[1021]: [MAIN ] Completed service synchronization, ready to provide service.
May 24 21:45:02 myhost pacemakerd: [1106]: info: Invoked: pacemakerd
May 24 21:45:02 myhost pacemakerd: [1106]: info: crm_log_
May 24 21:45:02 myhost pacemakerd: [1106]: info: config_find_next: Processing additional service options...
May 24 21:45:02 myhost pacemakerd: [1106]: info: get_config_opt: Found 'pacemaker' for option: name
May 24 21:45:02 myhost pacemakerd: [1106]: info: get_config_opt: Found '1' for option: ver
May 24 21:45:02 myhost pacemakerd: [1106]: info: get_cluster_type: Detected an active 'classic openais (with plugin)' cluster
please note the order of following two lines:
* corosync: [MAIN ] Completed service synchronization, ready to provide service.
* pacemakerd: info: get_cluster_type: ...
affected versions:
ALL (precise, trusty, vivid, wily, xenial, yakkety)
upstream solution: wait_for_ipc()
https:/
Changed in corosync (Ubuntu): | |
assignee: | nobody → guessi (guessi) |
status: | New → In Progress |
status: | In Progress → Fix Committed |
Changed in corosync (Ubuntu Focal): | |
assignee: | guessi (guessi) → nobody |
importance: | Medium → Undecided |
Changed in corosync (Ubuntu Trusty): | |
status: | New → Won't Fix |
Changed in corosync (Ubuntu Disco): | |
status: | New → Won't Fix |
Changed in corosync (Ubuntu Focal): | |
status: | In Progress → Triaged |
Changed in corosync (Ubuntu Eoan): | |
status: | New → Triaged |
Changed in corosync (Ubuntu Xenial): | |
status: | New → Triaged |
Changed in corosync (Ubuntu Bionic): | |
status: | New → Triaged |
The attachment "precise.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]