<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi All,
<div class=""><br class="">
</div>
<div class="">I just wanted to follow up on this thread … the only way I have found to obtain a list of filesets and their associated junction paths as a non-root user is via the REST API (and thanks to those who suggested that).  However, AFAICT querying the
 REST API via a script would expose the username / password used to do so to anyone who bothered to look at the code, which would in turn allow a knowledgeable and curious user to query the REST API themselves for other information we do not necessarily want
 to expose to them.  Therefore, it is not an acceptable solution to us.</div>
<div class=""><br class="">
</div>
<div class="">Therefore, unless someone responds with a way to allow a non-root user to obtain fileset junction paths that doesn’t involve the REST API, I’m afraid I’m at a dead end in terms of making our quota usage Python script something that I can share
 with the broader community.  It just has too much site-specific code in it.  Sorry…</div>
<div class=""><br class="">
</div>
<div class="">Kevin</div>
<div class=""><br class="">
</div>
<div class="">P.S.  In case you’re curious about how the quota script is obtaining those junction paths … we have a cron job that runs once per hour on the cluster manager that dumps the output of mmlsfileset to a text file, which the script then reads.  The
 cron job used to just run once per day and used to just run mmlsfileset.  I have modified it to be a shell script which checks for the load average on the cluster manager being less than 10 and that there are no waiters of more than 10 seconds duration.  If
 both of those conditions are true, it runs mmlsfileset.  If either are not, it simply exits … the idea being that one or both of those would likely be true if something were going on with the cluster manager that would cause the mmlsfileset to hang.</div>
<div class=""><br class="">
</div>
<div class="">I have also modified the quota script itself so that it checks that the junction path for a fileset actually exists before attempting to stat it (duh - should’ve done that from the start), which handles the case where a user would run the quota
 script and it would bomb off with an exception because the fileset was deleted and the cron job hadn’t run yet.  If a new fileset is created, well, it just won’t get checked by the quota script until the cron job runs successfully.  We have decided that this
 is an acceptable compromise.<br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Jan 15, 2019, at 8:46 AM, Marc A Kaplan <<a href="mailto:makaplan@us.ibm.com" class="">makaplan@us.ibm.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class=""><span style=" font-size:10pt;font-family:sans-serif" class="">Personally, I agree that there ought to be a way in the product.</span><br class="">
<br class="">
<span style=" font-size:10pt;font-family:sans-serif" class="">In the meawhile, you no doubt already have some ways to tell your users where to find their filesets as pathnames.</span><br class="">
<span style=" font-size:10pt;font-family:sans-serif" class="">Otherwise, how are they accessing their files?</span><br class="">
<br class="">
<span style=" font-size:10pt;font-family:sans-serif" class="">And to keep things somewhat sane, I'd bet filesets are all linked to one or small number of well known paths in the filesystem.</span><br class="">
<span style=" font-size:10pt;font-family:sans-serif" class="">Like  /AGpfsFilesystem/filesets/...  Plus you could add symlinks and/or as has been suggested post info extracted from mmlsfileset and/or mmlsquota.</span><br class="">
<br class="">
<span style=" font-size:10pt;font-family:sans-serif" class="">So as a practical matter, is this an urgent problem...?  Why?  How?</span><br class="">
_______________________________________________<br class="">
gpfsug-discuss mailing list<br class="">
gpfsug-discuss at <a href="http://spectrumscale.org" class="">spectrumscale.org</a><br class="">
</div>
</blockquote>
</div>
</div>
<br class="">
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">—</div>
<div class="">Kevin Buterbaugh - Senior System Administrator</div>
<div class="">Vanderbilt University - Advanced Computing Center for Research and Education</div>
<div class=""><a href="mailto:Kevin.Buterbaugh@vanderbilt.edu" class="">Kevin.Buterbaugh@vanderbilt.edu</a> - (615)875-9633</div>
</div>
</div>
<br class="">
</body>
</html>