Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6F5517D57 for ; Wed, 26 Aug 2015 11:54:46 +0000 (UTC) Received: (qmail 11233 invoked by uid 500); 26 Aug 2015 11:54:46 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 11192 invoked by uid 500); 26 Aug 2015 11:54:46 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 11183 invoked by uid 500); 26 Aug 2015 11:54:46 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 11180 invoked by uid 99); 26 Aug 2015 11:54:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2015 11:54:46 +0000 Date: Wed, 26 Aug 2015 11:54:46 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-8728) Testcase to Verify if VRs IP changes if it is destroyed and re-created in Basic Zone MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-8728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14712993#comment-14712993 ] ASF GitHub Bot commented on CLOUDSTACK-8728: -------------------------------------------- Github user sanju1010 commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/684#discussion_r37972977 --- Diff: test/integration/smoke/test_routers.py --- @@ -796,3 +830,122 @@ def test_09_reboot_router(self): "Router response after reboot is either is invalid\ or in stopped state") return + + def check_virtual_machine_accessibility(self, virtual_machine): + response = virtual_machine.getState( + self.userapiclient, + VirtualMachine.RUNNING + ) + self.assertEqual(response[0], PASS, "Virtual machine is not running") + + # Check VM Accessibility + try: + SshClient(host=virtual_machine.ssh_ip, + port=self.services['natrule']['publicport'], + user=virtual_machine.username, + passwd=virtual_machine.password) + except Exception as e: + raise Exception("Error while trying SSH to VM: %s" % e) + + def try_ssh_to_host(self): + list_virtual_machine_response = list_virtual_machines( + self.apiclient, + listall=True) + status = validateList(list_virtual_machine_response) + self.assertEqual( + status[0], + PASS, + "VM List Validation Failed due to %s" % + status[2]) + + host_id = list_virtual_machine_response[0].hostid + list_host_response = list_hosts(self.apiclient, id=host_id) + status = validateList(list_host_response) + self.assertEqual( + status[0], + PASS, + "Host List Validation Failed due to %s" % + status[2]) + + self.services['hosts'][self.hypervisor.lower()]['password'] = "xenroot" --- End diff -- Can you please remove the hardcoded password for the host and see if you can get from the config file? > Testcase to Verify if VRs IP changes if it is destroyed and re-created in Basic Zone > ------------------------------------------------------------------------------------ > > Key: CLOUDSTACK-8728 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8728 > Project: CloudStack > Issue Type: Test > Security Level: Public(Anyone can view this level - this is the default.) > Components: Automation > Affects Versions: 4.2.1 > Reporter: Priti Sarap > Fix For: 4.2.1 > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)