<html>#2574: alias patterns for BlueWaters and frontera conflict
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td>ET_2021_05</td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td>SimFactory</td></tr>
</table>

<p>Both Blue Waters and Frontera define somewhat lenient regular expressions to match for their respective login nodes. Namely:</p>
<div class="codehilite"><pre><span></span><span>aliaspattern    = ^h2ologin[1-4](\.ncsa\.illinois\.edu)?$</span>
</pre></div>


<p>and</p>
<div class="codehilite"><pre><span></span><span>aliaspattern    = login[1234](\.frontera\.tacc\.utexas\.edu)?$</span>
</pre></div>


<p>In particular Frontera’s is too lenient since it misses the <code>^</code> anchor to anchor the regex to the beginning of the string making it match any node whose name contains <code>login[1234]</code>. This was encountered in real live by Cheng-Hsin Cheng  while testing the BBH gallery example on BlueWaters.</p>
<p>This confuses <code>sim setup</code> (and <code>setup-silent</code>) but does apparently not face <code>sim whoami</code>, which on Blue Waters at least returns <code>bluewaters</code>. Possibly b/c Blue Waters is alphabetically first.</p>
<p>There are two things that should be fixed by:</p>
<ol>
<li>add a <code>^</code> to the alias pattern for Frontera</li>
<li>check whether one can leave in the FQDN instead of just the hostname itself since <code>login</code> since a fairly typical (if annoyingly generic) hostname (eg Stampede2, also TACC, uses the same name).</li>
<li>simfactory should warn / abort if more than one machine definition files aliaspattern matches I think (unless the pattern is emtpy, which we use for “alternative” machine definition files).</li>
</ol>
<p>Should be backported.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2574/alias-patterns-for-bluewaters-and-frontera'>https://bitbucket.org/einsteintoolkit/tickets/issues/2574/alias-patterns-for-bluewaters-and-frontera</a></p>
</html>