Comment 2 for bug 1443816

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/197514
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=371be3f4a9683429e63cc2c37d3e73208da2847e
Submitter: Jenkins
Branch: master

commit 371be3f4a9683429e63cc2c37d3e73208da2847e
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: I156a1c3cf3e31f34cea5e240b14a9575e9e45239
    Closes-Bug: #1443816