<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Sanjay,<br>
Thanks for the ideas.  I've verified that nothing else is bound to port
80:<br>
[root@ca1-lb1 ~]# lsof|grep LISTEN<br>
sshd      2607      root    3u     IPv6              
7001                 TCP *:ssh (LISTEN)<br>
sendmail  2631      root    4u     IPv4              
7106                 TCP localhost.localdomain:smtp (LISTEN)<br>
snmpd     3107      root    8u     IPv4              
9842                 TCP localhost.localdomain:smux (LISTEN)<br>
[root@ca1-lb1 ~]# <br>
<br>
and the error list I sent in my earlier email were from using the "-v"
and "-n" (foreground) pulse options.<br>
<br>
-matt<br>
<br>
Sanjay Mahapatra wrote:
<blockquote cite="mid:535671.56397.qm@web55807.mail.re3.yahoo.com"
 type="cite">Hi Matt<br>
 <br>
I would consider running netstat to ensure that some other process is
not already bound to the port(80) <br>
  <br>
Also ( if you aren't doing so )  please consider  using  the "-v"
verbose/debug  flag in the pulse startup script:<br>
  <br>
daemon pulse -v<br>
  <br>
and monitor /var/log/messages to see if  the underlying cause of <br>
>> SIOCGIFADDR failed: Cannot assign requested address<br>
is disclosed therein.<br>
  <br>
Sanjay Mahapatra<br>
  <br>
  <br>
  <b><i>"Matthew J. Probst" <a class="moz-txt-link-rfc2396E" href="mailto:mprobst@verio.net"><mprobst@verio.net></a></i></b> wrote:
  <blockquote class="replbq"
 style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
Hi,<br>
When I start pulse (either the rc script or from command line) I get a<br>
SIOCGIFADDR failed error.<br>
    <br>
When I run pulse from the command line:<br>
/usr/sbin/pulse -c /etc/sysconfig/ha/lvs.cf -n -v<br>
    <br>
Here's the output: (I've replaced the actual public VIP that I'm using<br>
with <VIP>):<br>
    <br>
pulse: SIOCGIFADDR failed: Cannot assign requested address<br>
pulse: SIOCGIFADDR failed: Cannot assign requested address<br>
pulse: SIOCGIFADDR failed: Cannot assign requested address<br>
pulse: STARTING PULSE AS MASTER<br>
pulse: DEBUG -- setting SEND_heartbeat timer<br>
pulse: DEBUG -- setting SEND_heartbeat timer<br>
pulse: DEBUG -- setting SEND_heartbeat timer<br>
pulse: DEBUG -- setting NEED_heartbeat timer<br>
pulse: partner dead: activating lvs<br>
lvs: starting virtual service wwwlb.mydomain.com active: 80<br>
nanny: starting LVS client monitor for <VIP>:80<br>
nanny: Send_program is NULL<br>
nanny: Send_string len=38, text="GET <a class="moz-txt-link-freetext" href="http://www.mydomain.com/">http://www.mydomain.com/</a> HTTP/1.0<br>
    <br>
"<br>
nanny: Expect_string len=15, text="HTTP/1.1 200 OK"<br>
nanny: Service_type value=2<br>
nanny: Opening TCP socket to remote service port 80...<br>
nanny: Connecting socket to remote address...<br>
nanny: DEBUG -- Posting CONNECT poll()<br>
lvs: create_monitor for wwwlb.mydomain.com/ca1-web1 running as pid 4141<br>
pulse: DEBUG -- setting SEND_heartbeat timer<br>
pulse: DEBUG -- Executing '/sbin/ifconfig bond0.2:0 <VIP> netmask<br>
255.255.255.224 up'<br>
nanny: Sending len=38, text="GET <a class="moz-txt-link-freetext" href="http://www.mydomain.com/">http://www.mydomain.com/</a> HTTP/1.0<br>
    <br>
"<br>
nanny: DEBUG -- Posting READ poll()<br>
pulse: DEBUG -- Executing '/usr/sbin/send_arp'<br>
nanny: DEBUG -- READ poll() completed (1,1)<br>
nanny: Posting READ I/O; expecting 15 character(s)...<br>
nanny: DEBUG -- READ returned 15<br>
nanny: READ expected len=15, text="HTTP/1.1 200 OK"<br>
nanny: READ got len=15, text=HTTP/1.1 200 OK<br>
nanny: avail: 1 active: 0: count: 3<br>
nanny: making 10.3.1.3:80 available<br>
pulse: gratuitous lvs arps finished<br>
pulse: DEBUG -- setting SEND_heartbeat timer<br>
nanny: Opening TCP socket to remote service port 80...<br>
nanny: Connecting socket to remote address...<br>
nanny: DEBUG -- Posting CONNECT poll()<br>
nanny: Sending len=38, text="GET <a class="moz-txt-link-freetext" href="http://www.mydomain.com/">http://www.mydomain.com/</a> HTTP/1.0<br>
    <br>
"<br>
nanny: DEBUG -- Posting READ poll()<br>
nanny: DEBUG -- READ poll() completed (1,1)<br>
nanny: Posting READ I/O; expecting 15 character(s)...<br>
nanny: DEBUG -- READ returned 15<br>
nanny: READ expected len=15, text="HTTP/1.1 200 OK"<br>
nanny: READ got len=15, text=HTTP/1.1 200 OK<br>
nanny: avail: 1 active: 1: count: 4<br>
    <br>
    <br>
----<br>
    <br>
My kernel is: 2.6.18-8.1.14.el5 <br>
I'm running piranha.x86_64 version 0.8.4-7.el5<br>
I've trimmed down the lvs conf file to a minimum and I've turned off<br>
SELinux.<br>
    <br>
Here's the lvs.cf file I'm using (replaced the public VIP with <VIP>
and<br>
the primary public ip of the director with <PRIM-PUB-IP>)<br>
    <br>
    <br>
serial_no = 51<br>
primary = <PRIM-PUB-IP><br>
primary_private = 10.3.1.1<br>
service = lvs<br>
backup_active = 0<br>
heartbeat = 0<br>
heartbeat_port = 539<br>
keepalive = 6<br>
deadtime = 18<br>
network = direct<br>
debug_level = NONE<br>
monitor_links = 0<br>
virtual wwwlb.mydomain.com {<br>
active = 1<br>
address = <VIP> bond0.2:0<br>
vip_nmask = 255.255.255.224<br>
port = 80<br>
send = "GET <a class="moz-txt-link-freetext" href="http://www.mydomain.com/">http://www.mydomain.com/</a> HTTP/1.0\r\n\r\n"<br>
expect = "HTTP/1.1 200 OK"<br>
use_regex = 0<br>
load_monitor = none<br>
scheduler = wlc<br>
protocol = tcp<br>
timeout = 6<br>
reentry = 15<br>
quiesce_server = 0<br>
server ca1-web1 {<br>
address = 10.3.1.3<br>
active = 1<br>
weight = 1<br>
}<br>
}<br>
    <br>
    <br>
---<br>
    <br>
Here are the relevant network interfaces:<br>
    <br>
bond0.2 Link encap:Ethernet HWaddr 00:30:48:34:2C:D8 <br>
inet addr: <PRIM-PUB-IP> Bcast:<PRIM-BCAST> Mask:255.255.255.224<br>
inet6 addr: fe80::230:48ff:fe34:2cd8/64 Scope:Link<br>
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1<br>
RX packets:5990 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:4400 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:0<br>
RX bytes:2363411 (2.2 MiB) TX bytes:471985 (460.9 KiB)<br>
    <br>
bond0.3 Link encap:Ethernet HWaddr 00:30:48:34:2C:D8 <br>
inet addr:10.3.1.1 Bcast:10.3.255.255 Mask:255.255.0.0<br>
inet6 addr: fe80::230:48ff:fe34:2cd8/64 Scope:Link<br>
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1<br>
RX packets:2707 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:3333 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:0<br>
RX bytes:369502 (360.8 KiB) TX bytes:264616 (258.4 KiB)<br>
    <br>
    <br>
------<br>
    <br>
I can tell that this error is coming from the getInterfaceAddress()<br>
function in pulse.c, and I'm wondering if this has to do with the fact<br>
that I'm using a vlan interface on top of a bonded link (bond0.2:0 being<br>
the network interface name)?<br>
    <br>
Any suggestions/help would be greatly appreciated.<br>
    <br>
-matt<br>
    <br>
_______________________________________________<br>
Piranha-list mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:Piranha-list@redhat.com">Piranha-list@redhat.com</a><br>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/piranha-list">https://www.redhat.com/mailman/listinfo/piranha-list</a><br>
    </PRIM-BCAST></PRIM-PUB-IP></VIP></PRIM-PUB-IP></PRIM-PUB-IP></VIP></VIP></VIP></VIP></blockquote>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Piranha-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Piranha-list@redhat.com">Piranha-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/piranha-list">https://www.redhat.com/mailman/listinfo/piranha-list</a></pre>
</blockquote>
<br>
</body>
</html>