Hi, please review the following webrev: http://cr.opensolaris.org/~frueauf/colorado-1-ha-ipkg-zone-6812924/
The sczbt components allows to make an IP configured through a SUNW.LogicalHostname (LH) resource available within the non-global zone, after the zone is booting. This is done by setting the zone flag with ifconfig on the corresponding adapter, which hosts the IP for the LH, when the zone is booting, and removing that flag before the zone is halted. Clearview did change the way IPMP works. Details can be found at http://www.opensolaris.org/os/project/clearview/ipmp-highlevel-design.pdf and a very good blog with many example output: http://blogs.sun.com/stw/entry/ipmp_re_architecture_is_delivered The sczbt functions file does implement the get_ipmp_state() function. In the lack of a better CLI API (pre Clearview), it uses scstat to retrieve the adapter list for a given IPMP group, for which the LH is configured, and tries to determine the adapter where the IP is currently configured on, to then set the zone flag. scstat does not display any Clearview information. Clearview will configure the IP not on any physical adapter, instead it uses the new ipmp<number> interface. The current code does not work with that logic and needs modification, which is tracked with CR 6812924. Clearview did introduce a new command line interface: /sbin/ipmpstat The option -g will output information that can be used to determine the ipmp interface for which the zone flag needs to get set. Example: # ipmpstat -g GROUP GROUPNAME STATE FDT INTERFACES ipmp0 sc_ipmp0 ok -- e1000g0 The fix has been verified with OpenSolaris build 108. Regression test has been done on OpenSolaris 2008.11 (build 101a), which has no Clearview. The review will timeout at Friday, 6. March, COB MET. Greets Thorsten -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~