<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;" dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">In theory, lnetctl itself is the exporter. Once modprobe.conf settings are loaded, lnetctl export will get you most of the way there (default values for tunables and such are exported as well). If you're already using
 lnetctl, it can export the current configuration (again, including tunables, etc).</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">As for migrating from lnetctl back to modprobe.conf, I wasn't planning on tackling that.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
What I am trying to implement is a method of "reconciling" the current configuration with a newly imported one. So to start, let us assume lnet has some configuration x. Let's say you make changes to the YAML file (add a few new routes, remove a network, maybe
 remove a route) producing configuration y. I want to implement a feature in lnetctl that will take the currently loaded configuration (in this case, configuration x) and turn it into configuration y without taking down connections unless it's necessary.<br>
<br>
Giuseppe<br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Ben Evans <bevans@cray.com><br>
<b>Sent:</b> Friday, April 13, 2018 7:01:15 AM<br>
<b>To:</b> Di Natale, Giuseppe; lustre-devel@lists.lustre.org<br>
<b>Subject:</b> Re: [lustre-devel] LNET Configuration Update/Reconciliation</font>
<div> </div>
</div>
<div style="word-wrap:break-word; color:rgb(0,0,0); font-size:14px; font-family:Calibri,sans-serif">
<div>In LU-4939, I'm working on exporting and importing the parameters set via lctl conf_param and set_param -P.  The output is in yaml, and I've got an importer working in a separate patch that has yet to be accepted upstream.</div>
<div><br>
</div>
<div>Would you consider having an exporter for the lnetctl and modprobe.conf settings into yaml so that you could migrate between the two methods of setting configuration?</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; border-bottom:medium none; border-left:medium none; padding-bottom:0in; padding-left:0in; padding-right:0in; border-top:#b5c4df 1pt solid; border-right:medium none; padding-top:3pt">
<span style="font-weight:bold">From: </span>lustre-devel <<a href="mailto:lustre-devel-bounces@lists.lustre.org" id="LPlnk929267" previewremoved="true">lustre-devel-bounces@lists.lustre.org</a>> on behalf of "Di Natale, Giuseppe" <<a href="mailto:dinatale2@llnl.gov" id="LPlnk210725" previewremoved="true">dinatale2@llnl.gov</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, April 12, 2018 at 3:53 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:lustre-devel@lists.lustre.org" id="LPlnk83799" previewremoved="true">lustre-devel@lists.lustre.org</a>" <<a href="mailto:lustre-devel@lists.lustre.org" id="LPlnk832798" previewremoved="true">lustre-devel@lists.lustre.org</a>><br>
<span style="font-weight:bold">Subject: </span>[lustre-devel] LNET Configuration Update/Reconciliation<br>
</div>
<div><br>
</div>
<div>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,"EmojiFont","Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0; margin-bottom:0">Greetings Developers,</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">We are currently using modprobe.conf to configure routes, but we are hoping to reach a point where we can push out new LNET configurations to nodes and have lnetctl apply configuration changes on the fly.</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">It would be nice to have the ability to update or "reconcile" the difference between the loaded configuration and an updated configuration being imported. I was exploring how to implement such functionality in lnetctl.
 Would others find such functionality useful?</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">My current thought is that I'd implement this as a new lnetctl subcommand (i.e. "update"). Does that seem reasonable or would you suggest another interface?<br>
</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">Thanks,</p>
<p style="margin-top:0; margin-bottom:0">Giuseppe<br>
</p>
</div>
</div>
</div>
</span></div>
</div>
</body>
</html>