Hi Alessio, Great to hear that you're considering Brooklyn for your research project - I hope it works well for you!
To configure brooklyn to use a specific key file, you can use the privateKeyFile and publicKeyFile (note the removal of the 'login' prefix) configuration keys as follows: ======================================================== brooklyn.location.named.OpenStack=XXXX brooklyn.location.named.OpenStack.identity=XXXX brooklyn.location.named.OpenStack.credential=XXXX brooklyn.location.named.OpenStack.imageId=XXXX # m1.micro brooklyn.location.named.OpenStack.hardwareId=myregion/000000960 # Security Configuration brooklyn.location.named.OpenStack.loginUser=ubuntu brooklyn.location.named.OpenStack.privateKeyFile=~/.ssh/brooklyn_rsa brooklyn.location.named.OpenStack.publicKeyFile=~/.ssh/brooklyn_rsa.pub brooklyn.location.named.OpenStack.securityGroups=default ======================================================== Cheers Martin Harris On 4 June 2014 13:50, Alessio Gambi <[email protected]> wrote: > Hi, > > I am about to start a new research project that focuses on testing elastic > cloud-based applications, and I am considering Brooklyn as Case Study. > > At the moment, I am trying to deploy the WebClusterDatabaseExample on a > private OpenStack installation. However I am stuck with something that > should be simple, but apparently it is not: setting a KeyPair for the VM. > > I configured the OpenStack location in the brooklyn.properities file as > below, but I am probably missing something. > Maybe you can help. > > > The deployment goes smooth up to the point of launching the three VMs > (loadbalancer, jboss and mysql), but it gets stuck there. > The machines run but the Brooklyn manager cannot ssh to them. > > From the Web console of OpenStack I see that the machines have no KeyPair, > but from the startup logs of the VMs I see that they received 2 public keys. > (Of course, none of them match the one specified in the properties file) > > Many thanks > > — Alessio > > ======================================================== > > brooklyn.location.named.OpenStack=XXXX > brooklyn.location.named.OpenStack.identity=XXXX > brooklyn.location.named.OpenStack.credential=XXXX > brooklyn.location.named.OpenStack.imageId=XXXX > > # m1.micro > brooklyn.location.named.OpenStack.hardwareId=myregion/000000960 > > # Security Configuration > brooklyn.location.named.OpenStack.loginUser=ubuntu > brooklyn.location.named.OpenStack.loginPrivateKeyFile=~/.ssh/brooklyn_rsa > > brooklyn.location.named.OpenStack.loginPublicKeyFile=~/.ssh/brooklyn_rsa.pub > > brooklyn.location.named.OpenStack.securityGroups=default > brooklyn.location.named.OpenStack.extraSshPublicKeyData=~/.ssh/id_rsa.pub > > > ======================================================== > > > > Dr. Alessio Gambi, PhD > Distributed Systems Group (DSG) > Vienna University of Technology, Austria > [email protected] > > > > > -- Martin Harris Lead Software Engineer Cloudsoft Corporation Ltd www.cloudsoftcorp.com Mobile: +44 (0)7989 047-855
