Creating instance fail when inject ssh key in cells mode
The conductor service of compute host will try to find ssh key in child
cells when creating instance. But the ssh key was only stored at parent
api cells. Therefore the conductor service will throw ssh key not found
exception.
There are three solutions:
1. add keypair_type into the instance object, along side keypair_name, etc
2. Sync ssh keypair to every child cell database
3. consider sending a message to the parent cell to fetch the keypair
This commit prefer to use third solution. Because of the data ssh
keypair should be global. And cells v2 split key_pairs table into global
API tables.
Reviewed: https:/ /review. openstack. org/197514 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=371be3f4a96 83429e63cc2c37d 3e73208da2847e
Committed: https:/
Submitter: Jenkins
Branch: master
commit 371be3f4a968342 9e63cc2c37d3e73 208da2847e
Author: Chung Chih, Hung <email address hidden>
Date: Wed Jul 1 10:54:00 2015 +0000
Creating instance fail when inject ssh key in cells mode
The conductor service of compute host will try to find ssh key in child
cells when creating instance. But the ssh key was only stored at parent
api cells. Therefore the conductor service will throw ssh key not found
exception.
There are three solutions:
1. add keypair_type into the instance object, along side keypair_name, etc
2. Sync ssh keypair to every child cell database
3. consider sending a message to the parent cell to fetch the keypair
This commit prefer to use third solution. Because of the data ssh
keypair should be global. And cells v2 split key_pairs table into global
API tables.
Change-Id: I156a1c3cf3e31f 34cea5e240b14a9 575e9e45239
Closes-Bug: #1443816