FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 09-28-2011, 11:19 AM
Michael Bunk
 
Default resource-agents: Find any descendant IP resource of a service

Not just immediate children. This fixes errors in sylog like this:

rgmanager[xxxx]: Looking For IP Addresses [apache:apache] > Failed - No IP Addresses Found
---
rgmanager/src/resources/utils/config-utils.sh.in | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rgmanager/src/resources/utils/config-utils.sh.in b/rgmanager/src/resources/utils/config-utils.sh.in
index 299537a..7786eb3 100644
--- a/rgmanager/src/resources/utils/config-utils.sh.in
+++ b/rgmanager/src/resources/utils/config-utils.sh.in
@@ -135,7 +135,7 @@ get_service_ip_keys()
#
x=1
while : ; do
- key="/cluster/rm/service[@name="$svc"]/ip[$x]"
+ key="/cluster/rm/service[@name="$svc"]//ip[$x]"

#
# Try direct method
--
1.7.5.1
 
Old 09-28-2011, 08:35 PM
Lon Hohberger
 
Default resource-agents: Find any descendant IP resource of a service

On 09/28/2011 07:19 AM, Michael Bunk wrote:

Not just immediate children. This fixes errors in sylog like this:

rgmanager[xxxx]: Looking For IP Addresses [apache:apache]> Failed - No IP Addresses Found


I -think- it was intentional; if it's not at the top level, you can do
things like:


<service>
<apache>
<ip/>
</apache>
</service>

The // will then find that IP, but the configuration generated by apache
resource agent will be incorrect and cause the Apache instance to fail
to start: it will try to bind to the IP address.


I suppose that's a degenerate case, however.

The RA guys should definitely have an idea here.

-- Lon
 
Old 09-30-2011, 09:01 AM
Michael Bunk
 
Default resource-agents: Find any descendant IP resource of a service

Am 28.09.2011 22:35, schrieb Lon Hohberger:
> On 09/28/2011 07:19 AM, Michael Bunk wrote:
>> Not just immediate children. This fixes errors in sylog like this:
>>
>> rgmanager[xxxx]: Looking For IP Addresses [apache:apache]> Failed -
>> No IP Addresses Found
>
> I -think- it was intentional; if it's not at the top level, you can do
> things like:
>
> <service>
> <apache>
> <ip/>
> </apache>
> </service>
>
> The // will then find that IP, but the configuration generated by apache
> resource agent will be incorrect and cause the Apache instance to fail
> to start: it will try to bind to the IP address.
>
> I suppose that's a degenerate case, however.

Yes, that is pathological... but our case - which worked in RHEL 4 -
looks like this:

<service>
<script ref="tiebreaker">
<script file="/etc/cluster/drbd0" name="drbd0" ...>
<fs device="/dev/drbd0" ...>
<ip ...>
<apache/>
</ip>
</fs>
</script>
</script>
</service>

It doesn't feel right to make the ip resource a sibling of the
tiebreaker script.

If <ip> resources are required to be put directly under <service>, then
the docs (without having read them every word) should mention this and
the XML schema for cluster.conf should enforce it.

Michael
 

Thread Tools




All times are GMT. The time now is 12:47 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org