Context
Technically a loopback address should be able to resolve immediately
if it can connect or not. But for IPV6 loopback ::1 (to port that is not
been bounded), this is not the case and the client may be waiting
for the socket to get connected up to the maximum 3-4 mins
timeout. (If you are on the global zone, it is ok).

In global zone with IPv6 for localhost
# telnet ::1 9999
telnet: Unable to connect to remote host: Connection timed out  <- Quite immediately

In localzone with (IPV6 on lo0:1)
# telnet ::1 9999
..... 
telnet: Unable to connect to remote host: Connection timed out  <- 3 mins 40 sec later

Is this something wrong with zones/ip (for ipv6) compared to global zones.

PS: This is consistent across all the other machines

Config
SunOS v4u-xxxx 5.10 Generic_118822-25 sun4u sparc SUNW,Ultra-2
                       Solaris 10 1/06 s10s_u1wos_19a SPARC

TESTCASE

1. Enable IPV6 on globalzone
2. Create a local zone with IPv6 on hme0
3. Boot the zones
----------------------------------------
# zonecfg -z zone3 info
zonepath: /zones
autoboot: false
pool:
inherit-pkg-dir:
        dir: /lib
inherit-pkg-dir:
        dir: /platform
inherit-pkg-dir:
        dir: /sbin
inherit-pkg-dir:
        dir: /usr
net:
        address: 10.t.x.y
        physical: hme0
net:
        address: fe80::a00:20ff:fe9a:999c/10
        physical: hme0
--------------------------------------------
4. Use the localzone /usr/apache2/bin/apachectl start
    (after configuring /var/apache2/httpd.conf) so
    that say telnet ::1 80 works (in the zone3)
5. Now do
      telnet ::1 80 --> OK
      telnet ::1 9999 -> FAILS

Dtrace on fbt::::
OK
   |-> 2006 Jul 13 23:17:44 telnet 112464627215 sockfs.sowaitconnected tid=1 3298560182936 3
   |<- 2006 Jul 13 23:17:44 telnet 112464627256 sockfs.sowaitconnected tid=1 164 0

Not OK
   |-> 2006 Jul 13 23:00:29 telnet 111429905553 sockfs.sowaitconnected tid=1 3298560182936 3
    |-> 2006 Jul 13 23:00:29 telnet 111429905597 genunix.cv_wait_sig_swap tid=1 3298560182984 3298560182968
...
    |<- 2006 Jul 13 23:04:14 telnet 111654582049 genunix.cv_wait_sig_swap_core tid=1 612 1
   |<- 2006 Jul 13 23:04:14 telnet 111654582096 sockfs.sowaitconnected tid=1 140 3298560182936

_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to