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 7883710466 for ; Mon, 24 Feb 2014 15:03:24 +0000 (UTC) Received: (qmail 86388 invoked by uid 500); 24 Feb 2014 15:03:23 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 86093 invoked by uid 500); 24 Feb 2014 15:03:22 -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 85983 invoked by uid 500); 24 Feb 2014 15:03:20 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 85929 invoked by uid 99); 24 Feb 2014 15:03:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Feb 2014 15:03:19 +0000 Date: Mon, 24 Feb 2014 15:03:19 +0000 (UTC) From: "Santhosh Kumar Edukulla (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CLOUDSTACK-6164) [Automation]: Alter base.py for Host Create changes 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-6164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Santhosh Kumar Edukulla updated CLOUDSTACK-6164: ------------------------------------------------ Summary: [Automation]: Alter base.py for Host Create changes (was: [Automation]: Alter base.py for Host Creation) > [Automation]: Alter base.py for Host Create changes > --------------------------------------------------- > > Key: CLOUDSTACK-6164 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6164 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Reporter: Santhosh Kumar Edukulla > Assignee: Santhosh Kumar Edukulla > > Currently,Host class has a create method and use addHost Command. > 1. It does not verify the output of addHost command is valid output in all forms. > 2. Tests some times directly goes to using Host post Host.create, but we are not sure whether the host is up or not, they have to explicitly call again listHosts api call, so every where host is added list host is called. Instead, the create method now returns the FAILED or host object based upon the api success and whether the host is up. > 3. Added a try\except block and return FAILED to tests in case of an exception. -- This message was sent by Atlassian JIRA (v6.1.5#6160)