EC2Endpoint

EC2Endpoint class is the implementation of the EC2 interface to a cloud endpoint

class DIRAC.Resources.Cloud.EC2Endpoint.EC2Endpoint(parameters=None)

Bases: Endpoint

__init__(parameters=None)
createInstance(instanceID='')
createInstances(vmsToSubmit)
getParameterDict()
getProxyFileLocation()
initialize()
isValid()
setBootstrapParameters(bootstrapParameters)
setParameters(parameters)
setProxy(proxy)
stopVM(nodeID, publicIP='')

Given the node ID it gets the node details, which are used to destroy the node making use of the libcloud.openstack driver. If three is any public IP ( floating IP ) assigned, frees it as well.

Parameters:
uniqueId - string

openstack node id ( not uuid ! )

public_ip - string

public IP assigned to the node if any

Returns:

S_OK | S_ERROR