From: "Ryan O'Hara" <rohara@redhat.com>
To: Alexander Holler <holler@ahsoftware.de>
Cc: lvs-devel@vger.kernel.org
Subject: Re: [PATCH] ipvsadm: fix list_daemon to handle master/backup status in either position
Date: Thu, 09 Feb 2012 13:36:50 -0600 [thread overview]
Message-ID: <4F342052.8040400@redhat.com> (raw)
In-Reply-To: <4F34056F.3010509@ahsoftware.de>
On 02/09/2012 11:42 AM, Alexander Holler wrote:
> Am 09.02.2012 16:50, schrieb Ryan O'Hara:
>> Attached is a patch that fixes the list_daemon function such that it
>> does not assume that the master sync daemon status is always in the
>> first position and master sync daemon status is always in the second
>> position.
>>
>> If libipvs uses the netlink interface to retrieve sync daemon status,
>> the results are not guaranteed to follow this ordering. As explained in
>> a previous email, if libipvs uses the netlink interface to retrieve sync
>> daemon status while only a backup sync daemon is running, the backup
>> sync daemon status will but in the first position (index 0). This
>> differs from the getsockopt interface, which would always put master
>> sync daemon status in first position and backup sync daemon status in
>> the second position, even when only backup sync daemon exists. Solution
>> is to make ipvsadm check both elements of the array for master and
>> backup.
>>
>> Ryan
>
> I've fixed that through letting the netlink-api reporting the same as
> without netlink.
>
> Don't know what solutions should be prefered.
>
> Regards,
>
> Alexander
Thanks for the patch. After taking a close look at your patch, I believe
it will fix the problem.
I'm also unsure about which is the preferred solution. I decided to fix
it in ipvsadm directly because (it seemed) ipvsadm was making incorrect
assumptions about the master/backup sync daemon status being in at a
specific index. That said, I'm find with your patch. Keeping the strict
ordering is just as reasonable.
Ryan
prev parent reply other threads:[~2012-02-09 19:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-09 15:50 [PATCH] ipvsadm: fix list_daemon to handle master/backup status in either position Ryan O'Hara
2012-02-09 17:42 ` Alexander Holler
2012-02-09 19:36 ` Ryan O'Hara [this message]
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=4F342052.8040400@redhat.com \
--to=rohara@redhat.com \
--cc=holler@ahsoftware.de \
--cc=lvs-devel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.