jtriley / StarCluster

StarCluster is an open source cluster-computing toolkit for Amazon's Elastic Compute Cloud (EC2).
http://star.mit.edu/cluster
GNU Lesser General Public License v3.0
583 stars 313 forks source link

unhandled exception while setting static ip address #589

Open fsoltanshahi opened 7 years ago

fsoltanshahi commented 7 years ago

I am trying to use the following plugin to set a public ip address for grid master node. It works on Linux but on windows it fails 80% of the times with unhandled exception.

Platform: Windows-8.1-6.3.9600 ---------- SYSTEM INFO ---------- Platform: Windows-8.1-6.3.9600 boto: 2.40.0 paramiko: 2.0.2

Crypto: 2.6.1

from starcluster.clustersetup import ClusterSetup from starcluster.logger import log

class ElasticIPSetup(ClusterSetup):

def __init__(self,elasticip):
     self.elasticip = elasticip
     log.debug('elasticip = %s' % elasticip)

def run(self, nodes, master, user, user_shell, volumes):

    master.ec2.conn.associate_address(master.instance.id,self.elasticip)