Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A0127200B8B for ; Tue, 30 Aug 2016 00:26:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9E88C160AB8; Mon, 29 Aug 2016 22:26:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EC2A5160AC8 for ; Tue, 30 Aug 2016 00:26:21 +0200 (CEST) Received: (qmail 40805 invoked by uid 500); 29 Aug 2016 22:26:21 -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 40766 invoked by uid 500); 29 Aug 2016 22:26:20 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 40755 invoked by uid 99); 29 Aug 2016 22:26:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2016 22:26:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BAD852C015A for ; Mon, 29 Aug 2016 22:26:20 +0000 (UTC) Date: Mon, 29 Aug 2016 22:26:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9470) [BLOCKER] Bug in SshHelper affecting interaction with vRouter in VmwareResource and HypervDirectConnectResource MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 29 Aug 2016 22:26:22 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15447245#comment-15447245 ] ASF GitHub Bot commented on CLOUDSTACK-9470: -------------------------------------------- Github user serg38 commented on the issue: https://github.com/apache/cloudstack/pull/1660 @rhtyd @jburwell Can this be merged? > [BLOCKER] Bug in SshHelper affecting interaction with vRouter in VmwareResource and HypervDirectConnectResource > --------------------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-9470 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9470 > Project: CloudStack > Issue Type: Improvement > Security Level: Public(Anyone can view this level - this is the default.) > Components: VMware > Affects Versions: 4.10.0 > Reporter: Nicolas Vazquez > Assignee: Nicolas Vazquez > Fix For: 4.10.0 > > > h2. Problem > In a Vmware environment, running {{test_network_acl}} we examined why it was failing, it was discovered an issue on {{VmwareResource}}: > {code:title=VmwareResource.java|borderStyle=solid} > private int findRouterEthDeviceIndex(String domrName, String routerIp, String mac) throws Exception { > VmwareManager mgr = getServiceContext().getStockObject(VmwareManager.CONTEXT_STOCK_NAME); > s_logger.info("findRouterEthDeviceIndex. mac: " + mac); > // TODO : this is a temporary very inefficient solution, will refactor it later > Pair result = SshHelper.sshExecute(routerIp, DefaultDomRSshPort, "root", mgr.getSystemVMKeyFile(), null, "ls /proc/sys/net/ipv4/conf"); > {code} > Command sent to router returned a pair which its first parameter was always true but second parameter sometimes it was null and sometimes the correct output for given command. > h2. Solution > Examining {{SshHelper}} we discovered that cases in which second parameter in result was null, didn't consume stdout properly -- This message was sent by Atlassian JIRA (v6.3.4#6332)