>From the following link[1], I felt that the "key_name" should be template option "keyPairName".
[1]: https://github.com/jenkinsci/jclouds-plugin/pull/42 Thanks Tang Tang Yong wrote: > About the point("key_name"), maybe my understanding is wrong, > > However, while I use pallet to create and start an openstack(Essex) node, > > by jclouds.wire debug info: > > 22:27:13.137 [i/o thread 0] DEBUG jclouds.wire - << "{"server": > {"OS-EXT-STS:task_state": "deleting", "addresses": {"private": > [{"version": 4, "addr": "192.168.22.54"}]}, "links": [{"href": ... > "OS-EXT-SRV-ATTR:host": "ubuntu", "key_name": "", > "OS-EXT-SRV-ATTR:hypervisor_hostname": null, "name": "test2-42b", > "created": "2013-06-08T14:26:22Z", "tenant_id": > "0396f59fe144477ca6a338b7a64c720c", "metadata": {}}}" > > I only want to know whether having any way to set or pass "key_name" by > jclouds? > > Thanks > Tang > > Tang Yong wrote: >> Team, >> >> About OS-EXT-SRV-ATTR of Openstack, I have a question as following, >> >> Currently, Whether having any way to set OS-EXT-SRV-ATTR's "key_name" >> property or not? >> >> By my investigation, >> org.jclouds.openstack.nova.v2_0.domain.ServerExtendedAttributes has not >> "key_name" field. >> >> Eg. the following is an openstack node creating and starting way, >> >> nova keypair-add --pub_key id_rsa.pub key1 >> >> nova boot --flavor 1 --image 9bab7ce7-7523-4d37-831f-c18fbc5cb543 >> --key_name key1 superfrobnicator >> >> The above "--key_name" is stored into openstack nova database as an >> openstack OS-EXT-SRV-ATTR: >> >> ...0396f59fe144477ca6a338b7a64c720c | >> 7cf21d93-d04a-4fb4-a09b-f546a9461726 | | | NULL >> | 0 | key1 | ssh-rsa ... >> >> >> Thanks >> Tang >> > -- −−−−−−−−−−−−−−−−−−−−−− Tang Yong Senior Engineer GlassFish Committer (OSGi & OSGi-JavaEE) OSGi Alliance Supporter Blog: http://osgizone.typepad.com/tangyong/ Nanjing Fujitsu NanDa Software Tec CO.,LTD http://www.fujitsu.com/cn/fnst Tel: +86-25-86630566-8310 Fax: +86-25-83317685 −−−−−−−−−−−−−−−−−−−−−−
