<div dir="ltr">Hi Jennifer<div><br></div><div>thank you very much for your help. It&#39;s really useful.</div><div><br></div><div>regards,</div><div>Pablo.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-28 19:10 GMT+01:00 Jennifer Staab <span dir="ltr">&lt;<a href="mailto:jstaab@cs.unc.edu" target="_blank">jstaab@cs.unc.edu</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>I installed Starcluster on Ubuntu 14.04
      LTS and it is working fine for me.  I didn&#39;t use the guide you mentioned, just a
      little guidance from emails on mailing list between Jacob and Hugh regarding installation (see <a href="http://star.mit.edu/cluster/mlarchives/2389.html" target="_blank">here</a>)
      and some sleuthing to get it to work.  Hugh also provides a guideline/cookbook for creating new Starcluster AMI&#39;s <a href="http://star.mit.edu/cluster/mlarchives/2353.html" target="_blank">here</a> on the mailing list and said that just upgrading the existing AMI for 12.04 to 14.04 worked for him. To me that seems like the easiest way to handle this whole issue is to use existing Ubuntu 12.04 Starcluster AMI and just upgrade it to 14.04.  I wasn&#39;t able to do this, so below is what worked for me. I am sure there are other ways to create a new Ubuntu 14.04 Starcluster AMI. <br><br></div><div>--------------------------------------------------------------------------------------<br>
      1) Locate the AMI ID of the latest version of Ubuntu 14.04 for your region (see  <a href="http://cloud-images.ubuntu.com/locator/ec2/" target="_blank">here</a>). Start up your Ubuntu 14.04 AMI -- login and run update and
      apply all the security and distribution updates.</div><div><br></div><div>
      2) Install packages &quot;python-dev&quot; and &quot;python-setuptools&quot; -- You
      are welcome to install other packages, but those are the only ones
      needed if to do the Starcluster install. A list of all python packages can be
      found <a href="http://packages.ubuntu.com/source/trusty/python/" target="_blank">here</a>
      .<br><br></div><div>
      3) You need to install NFS server so install package
      &quot;nfs-kernel-server&quot;. Installing this package should install its dependencies (for me that included: nfs-common rpcbind libgssglue1 libnfsidmap2 libtirpc1). One issue I found was that in
      previous versions the startup script located in /etc/init.d/ was
      named &quot;nfs&quot; this installed version it&#39;s named &quot;nfs-kernel-server&quot;.
      The easiest fix is to create a symbolic link to
      &quot;/etc/init.d/nfs&quot; (ln -s /etc/init.d/nfs-kernel-server /etc/init.d/nfs). Test by issuing the command &quot;/etc/init.d/nfs
      restart&quot; if it restarts then all is well.<br><br></div><div>
      4) Install Starcluster with &quot;easy_install Starcluster&quot;<br><br></div><div>
      5) You need to get a copy of the Open Grid Scheduler and place it
      in  &quot;/opt/sge6-fresh/&quot; -- this is what Hugh and Jacob discuss in
      their emails on the mailing list.  The easiest way I was able to do this was to use a running Ubuntu 12.04 Starcluster AMI (ami-765b3e1f) and copy
      &quot;/opt/sge-fresh&quot; from the 12.04 version to my Ubuntu 14.04
      version. There are other ways to do this see their emails <a href="http://star.mit.edu/cluster/mlarchives/2389.html" target="_blank">here</a>.<br><br></div><div>
      6) Ubuntu 14.04 replaces portmap with rpcbind -- so this was an issue for me because the Starcluster software expects &quot;portmap&quot; to exist. So this is where I had to &quot;edit&quot; the code a
      bit.There are other ways to deal with the portmap issue, look <a href="http://star.mit.edu/cluster/mlarchives/2353.html" target="_blank">here</a> for an alternative solution. This is just how I handled the issue: locate the &quot;node.py&quot; portion of the code in the installed
      StarCluster version, mine was in
      &quot;/usr/local/lib/python2.7/dist-packages/StarclusterXXX.egg/starcluster/node.py&quot; 
      On line 731 in the function &quot;mount_nfs_shares()&quot; you see line &quot;self.ssh.execute(&#39;/etc/init.d/portmap start&#39;)&quot;. This won&#39;t work
      on Ubuntu 14.04 since &quot;portmap&quot; was replaced with &quot;rpcbind&quot;. One way
      to fix this issue without breaking the code for other OS versions still using portmap is
      by replacing &quot;self.ssh.execute(&#39;/etc/init.d/portmap start&#39;)&quot; with
      a &quot;try/except&quot; statement so that if portmap doesn&#39;t work it calls
      rpcbind command instead; thus, handling the issue with portmap on Ubuntu
      14.04.  Below is how I changed the code in node.py:</div><div><div>FIND line 731:</div><div>        self.ssh.execute(&#39;/etc/init.d/portmap start&#39;)</div><div>REPLACE with:</div><div>        try:</div><div>           self.ssh.execute(&#39;/etc/init.d/portmap start&#39;)</div><div>        except:</div><div>           self.ssh.execute(&#39;service rpcbind restart&#39;)</div><div><br></div>
      7) Stop this instance and take an AMI of it.  Use that AMI for nodes on your Starcluster clusters. If it bothers you to have Starcluster installed on the AMI you are using in your Starcluster clusters skip steps 2 and 4 BUT be certain to edit the version of Starcluster software you are using to create your Ubuntu 14.04 clusters to deal with portmap/rpcbind issue as described in step 6.  <br>
      <br>
      A few things to note: <br><br></div><div>1) I only use starcluster commands to create clusters, terminate them,
      addnodes and removenodes (on-demand &amp; spots) -- and this is what has been working for me. I haven&#39;t tested the other functionality, so there could be other issues like the portmap one that I don&#39;t know about. For the other functionality (like stopping instances, saving AMIs, etc), I use AWS directly
      to perform those functions.</div><div>2) The version of StarCluster that I used was 0.95.6 -- as available via easy_install. These issues (or ones similar to them) have been discussed and a few fixed in some of the development branches of Starcluster available on github see <a href="https://github.com/jtriley/StarCluster/issues?q=portmap" target="_blank">here</a> and <a href="https://github.com/jtriley/StarCluster/issues?q=ubuntu+14.04" target="_blank">here</a>.<br></div><div>3) I had some issue installing other software, but I am guessing most of that has been resolved now that it has been so long since the initial release of Ubuntu 14.04.</div><div><br>Good Luck,</div><div>Jennifer</div><div><div class="h5"><div>
      <br><br>
      On 1/27/15 3:59 PM, Pablo Escobar wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hi all,
        <div><br>
        </div>
        <div>I plan to use starcluster with ubuntu14.04. I will adapt
          the ami following this guide</div>
        <div><a href="https://www.youtube.com/watch?v=2RBupgpi_ec" target="_blank">https://www.youtube.com/watch?v=2RBupgpi_ec</a><br>
        </div>
        <div><br>
        </div>
        <div>Is anyone in the list using starcluster with ubuntu 14.04
          in production? Is it working fine or is there any drawback? is
          there any problem I should be aware before start using
          starcluster with ubuntu14.04?</div>
        <div><br>
        </div>
        <div>I know this has been asked before, but is there any plan to
          release a ubuntu14.04 official ami?</div>
        <div><br>
        </div>
        <div>thanks in advance for any advice.</div>
        <div><br>
        </div>
        <div>best regards,</div>
        <div>Pablo.</div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
StarCluster mailing list
<a href="mailto:StarCluster@mit.edu" target="_blank">StarCluster@mit.edu</a>
<a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a>
</pre>
    </blockquote>
    <br>
  </div>

</div>
</blockquote></div><br></div>