[openib-general] [PATCH 0/4] opensm: Loading unicast routes from the file

Sasha Khapyorsky sashak at voltaire.com
Tue Jun 13 13:00:35 PDT 2006


Hi Greg,

On 11:02 Tue 13 Jun     , Greg Johnson wrote:
> On Sun, Jun 11, 2006 at 03:27:58AM +0300, Sasha Khapyorsky wrote:
> > Hi,
> > 
> > There are couple of unicast routing related patches for OpenSM.
> > 
> > Basically it implements routing module which provides possibility to load
> > switch forwarding tables from pre-created dump file. Currently unicast
> > tables loading is only supported, multicast may be added in a future.
> > 
> > Short patch descriptions (more details may be found in emails with
> > patches):
> > 
> > 1. Ucast dump file simplification.
> > 2. Modular routing - preliminary implements generic model to plug new
> > routing engine to OpenSM.
> > 3. New simple unicast routing engine which allows to load LFTs from
> > pre-created dump file.
> > 4. Example of ucast dump generation script.
> > 
> > Please comment and test. Thanks.
> 
> We tried this on our 256-node cluster with a single chassis Voltaire
> 288-port switch.

Thanks.

> It seems to load the routes generated by the dump
> script, but afterward it is not possible to dump the routes again.

This means you have broken LFTs now. Probably I know what is going on
here - new LFTs don't have "<switch-lid> 0" entries, and switches are
not accessible by LIDs anymore.

Please update 'ibroute' utility (diags/) from the trunk and recreate the
dump file - this should fix the problem.

(Sorry, I forgot to mention 'ibroute' upgrade issue in patch announcement).

> I
> would like to re-dump the routes after loading to ensure that they were
> loaded correctly.
> 
> After loading routes with "opensm -R file -U dump_file", dump_lfts.sh
> gives:
> 
> nodeinfo
> 0000 0000 0000 0000 0000 0000 0000 0000
> 0000 0000 0000 0000 0000 0000 0000 0000
> 0000 0000 0000 0000 0000 0000 0000 0000
> 0000 0000 0000 0000 0000 0000 0000 0000
> ibroute: iberror: dump tables failed: node info failed: valid addr?
> 
> for each switch.
> 
> Also, I had to delete a space in the sed script on line 17 of
> dump_lfts.sh:
> 
> sed -ne 's/^.* lid \([1-9a-f]*\) .*$/\1/p'
> 
> became
> 
> sed -ne 's/^.* lid \([1-9a-f]*\).*$/\1/p'

I see. I've used ibswitches/ibnetdiscover from the trunk, there is some
minor difference in the output (' lmc N' was added). I think with your
change the script will work with both old and new outputs. Thanks for
the fix.

> Thanks for the work!

Thanks for trying this.

Sasha




More information about the general mailing list