cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Steven Dake <sdake@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] Re: [RFC PATCH] dlm: enhancing dlm_controld (pcmk) to be able to handle redundant rings
Date: Fri, 23 Oct 2009 12:18:09 -0700	[thread overview]
Message-ID: <1256325489.2698.7.camel@localhost.localdomain> (raw)
In-Reply-To: <20091023175520.GC31794@redhat.com>

On Fri, 2009-10-23 at 12:55 -0500, David Teigland wrote:
> On Fri, Oct 23, 2009 at 09:23:20PM +0800, Jiaju Zhang wrote:
> +    result = corosync_cfg_ring_status_get(handle,
> +                                       &interface_names,
> +                                       &interface_status,
> +                                       &interface_count);
> +    if (result != CS_OK) {
> +       log_error("Failed to get the ring status (error=%d)", result);
> +       (void)corosync_cfg_finalize(handle);
> +       return -1;
> +    }
> +
> +    (void)corosync_cfg_finalize(handle);
> +    return interface_count;
> 
> What is interface_count if there's one ring up but rrp is configured?
> Could we read the totem/rrp config value from the objdb?
> 
> Dave
> 
Dave,

The rrp mode can be read from the confdb currently.  The other values
cannot be read from the confdb currently.  interface_count is the number
of configured interfaces so that interface_status may be iterated.

Long term the plan is to deprecate all of the APIs related to
config/diag in favor of using confdb (or some successor to this api if
absolutely necessary).  This includes things like the above ring status
api.

We have alot of work to do to get there.  Corosync 2.0 material.



  reply	other threads:[~2009-10-23 19:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-23 10:38 [Cluster-devel] Re: [RFC PATCH] dlm: enhancing dlm_controld (pcmk) to be able to handle redundant rings jjzhang
2009-10-23 13:05 ` Andrew Beekhof
2009-10-23 13:23   ` Jiaju Zhang
2009-10-23 13:34     ` Lars Marowsky-Bree
2009-10-23 17:55     ` David Teigland
2009-10-23 19:18       ` Steven Dake [this message]
2009-10-23 20:51         ` David Teigland
2009-10-26 10:44           ` Jiaju Zhang
  -- strict thread matches above, loose matches on Subject: below --
2009-10-14 10:50 [Cluster-devel] " Jiaju Zhang
2009-10-14 13:28 ` [Cluster-devel] " Jiaju Zhang
2009-10-14 18:17 ` David Teigland
2009-10-15  5:34   ` Jiaju Zhang
2009-10-15  7:43     ` Andrew Beekhof
2009-10-15 14:51       ` David Teigland
2009-10-15 15:30         ` Andrew Beekhof
2009-10-15 16:07           ` Jiaju Zhang
2009-10-16 10:17         ` Lars Marowsky-Bree

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1256325489.2698.7.camel@localhost.localdomain \
    --to=sdake@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).