nova/devstack
Chung Chih, Hung 371be3f4a9 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: I156a1c3cf3e31f34cea5e240b14a9575e9e45239
Closes-Bug: #1443816
2015-09-14 10:55:33 -07:00
..