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:
Reviewed: https:/ /review. openstack. org/191847 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=8280575b0b6 772f1895e4df80c c74711ce12f038
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit 8280575b0b6772f 1895e4df80cc747 11ce12f038
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.CloudTest Case.test_ import_ key_pair unit.compute. test_keypairs. ImportKeypairTe stCase. test_success_ ssh
* nova.tests.
Add two unit tests mocking OpenSSH 6.7 and 6.8 outputs.
Closes-bug: #1464298 c1e5ca5d33e3fc2 f1795f44e06
Change-Id: I867684c36377e5