Comment 8 for bug 1464298

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

Reviewed: https://review.openstack.org/191847
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8280575b0b6772f1895e4df80cc74711ce12f038
Submitter: Jenkins
Branch: stable/kilo

commit 8280575b0b6772f1895e4df80cc74711ce12f038
Author: Victor Stinner <email address hidden>
Date: Mon Jun 15 16:10:45 2015 +0200

    Support ssh-keygen of OpenSSH 6.8

    OpenSSH 6.8 changed the default hash method to SHA256. OpenSSH 6.7 and
    older don't support the -E command line option to specify the hash
    method.

    First try without -E since most Linux distribution for OpenStack Kilo
    still use OpenSSH 6.7. If OpenSSH 6.8 and newer is detected (hash method
    specified in the output), call again ssh-keygen with -E md5 to hash the
    fingerprint using MD5.

    This change fixes the two following tests on Fedora 22:

    * nova.tests.unit.api.ec2.test_cloud.CloudTestCase.test_import_key_pair
    * nova.tests.unit.compute.test_keypairs.ImportKeypairTestCase.test_success_ssh

    Add two unit tests mocking OpenSSH 6.7 and 6.8 outputs.

    Closes-bug: #1464298
    Change-Id: I867684c36377e5c1e5ca5d33e3fc2f1795f44e06