weizhouapache commented on pull request #5419:
URL: https://github.com/apache/cloudstack/pull/5419#issuecomment-920794921


   @rhtyd @nvazquez 
   the test failures are caused by macchinina template we use for testing.
   
   only the first ssh connection is ok, the next ssh attempts are refused. (it 
seems to be working in vmware65 environments)
   ```
   root@r-463-VM:~# date;ssh 10.1.1.159
   Thu 16 Sep 2021 09:55:47 AM UTC
   The authenticity of host '10.1.1.159 (10.1.1.159)' can't be established.
   ECDSA key fingerprint is SHA256:WQQZ6Sm2CxR5eDkbOw4Xwl+mTrE37fMmnR1tZigCQ8E.
   Are you sure you want to continue connecting (yes/no/[fingerprint])? ^C
   
   root@r-463-VM:~# date;ssh 10.1.1.159
   Thu 16 Sep 2021 09:55:49 AM UTC
   ssh: connect to host 10.1.1.159 port 22: Connection refused
   root@r-463-VM:~# date;ssh 10.1.1.159
   Thu 16 Sep 2021 09:55:52 AM UTC
   ssh: connect to host 10.1.1.159 port 22: Connection refused
   ```
   
   for default centos55 template, it works
   ```
   root@r-463-VM:~# date;ssh -o KexAlgorithms=diffie-hellman-group1-sha1 
10.1.1.120
   Thu 16 Sep 2021 09:58:53 AM UTC
   The authenticity of host '10.1.1.120 (10.1.1.120)' can't be established.
   RSA key fingerprint is SHA256:gdLIogU+y021XvZfEGio/58rU5NrHOqHHLmA8T6z5G8.
   Are you sure you want to continue connecting (yes/no/[fingerprint])? ^C
   root@r-463-VM:~# 
   
   root@r-463-VM:~# date;ssh -o KexAlgorithms=diffie-hellman-group1-sha1 
10.1.1.120
   Thu 16 Sep 2021 09:58:56 AM UTC
   The authenticity of host '10.1.1.120 (10.1.1.120)' can't be established.
   RSA key fingerprint is SHA256:gdLIogU+y021XvZfEGio/58rU5NrHOqHHLmA8T6z5G8.
   Are you sure you want to continue connecting (yes/no/[fingerprint])? 
   Host key verification failed.
   ```
   
   When I use centos55 for testing, tests passed.
   ```
   diff --git a/test/integration/smoke/test_loadbalance.py 
b/test/integration/smoke/test_loadbalance.py
   index 53047f91f2..0a1b2ee5f4 100644
   --- a/test/integration/smoke/test_loadbalance.py
   +++ b/test/integration/smoke/test_loadbalance.py
   @@ -41,7 +41,7 @@ class TestLoadBalance(cloudstackTestCase):
            cls.domain = get_domain(cls.apiclient)
            cls.zone = get_zone(cls.apiclient, testClient.getZoneForTests())
            cls.hypervisor = testClient.getHypervisorInfo()
   -        template = get_test_template(
   +        template = get_template(
                                cls.apiclient,
                                cls.zone.id,
                                cls.hypervisor)
   diff --git a/test/integration/smoke/test_privategw_acl.py 
b/test/integration/smoke/test_privategw_acl.py
   index 90596c6984..28cc0a3999 100644
   --- a/test/integration/smoke/test_privategw_acl.py
   +++ b/test/integration/smoke/test_privategw_acl.py
   @@ -169,7 +169,7 @@ class TestPrivateGwACL(cloudstackTestCase):
            cls.zone = get_zone(cls.api_client, 
cls.testClient.getZoneForTests())
            cls.hypervisor = cls.testClient.getHypervisorInfo()
            cls.services['mode'] = cls.zone.networktype
   -        cls.template = get_test_template(
   +        cls.template = get_template(
                cls.api_client,
                cls.zone.id,
                cls.hypervisor)
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to