EC2 SSH Keypair name collisions
CMS OSG Fermilab
We specify the ssh key pair name in the job submit file for the vm request:
ec2_keypair_file = $ENV/ssh_key_pair.$(Cluster).$(Process).pem
The only "unique" aspects to this are the Cluster and ProcId. However, this is only unique within the specific SCHEDD. It isn't even unique across the factory. This impacts any Cloud account with multiple factories submitting to it.
I suggest we change the submit file to the following:
ec2_keypair_file = $ENV/$(Name).ssh_key_pair.$(Cluster).$(Process).pem
Note the inclusion of the $(Name) macro to the beginning of the file name. This will identify the schedd and the factory that the request is coming from.