Some EL7 systems have sshd configured with UseDNS yes by default. This will cause terrible performance with ssh and especially with Ansible. You can use --sshd-usedns-no or set TEST_SSHD_USEDNS_NO=True to configure the VM to use UseDNS no instead.
sshd
UseDNS yes
ssh
--sshd-usedns-no
TEST_SSHD_USEDNS_NO=True
UseDNS no
rebased onto 88a68724f5a0d45c96063f7e2eedec997d79114b
lgtm
This fix works for me flawlessly. One question, shouldn't this be a default behavior for RHEL 7? Without adding TEST_SSHD_USEDNS_NO=True performance of rhel 7 VM is terrible.
I think we need to add some sort of item to our config.json which will allow to specify environment variables for each image e.g.
{ "name": "rhel-7", ... "env": { "TEST_SSHD_USEDNS_NO": "True" }
we need something like this for el6 as well to set the ssh cipher parameters, which we definitely only want to set for el6:
{ "name": "rhel-6", ... "env": { "TEST_EXTRA_SSH_ARGS": "-o PubkeyAcceptedKeyTypes=+ssh-rsa" }
@rmeggins please let me know when this PR can be merged.
It is ready to be merged
Commit 5bb8fc13 fixes this pull-request
Pull-Request has been merged by astepano
TEST_SSHD_USEDNS_NO
Some EL7 systems have
sshdconfigured withUseDNS yesby default. This willcause terrible performance with
sshand especially with Ansible. You can use--sshd-usedns-noor setTEST_SSHD_USEDNS_NO=Trueto configure the VM to useUseDNS noinstead.