Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A4E9A925D for ; Thu, 4 Oct 2012 06:49:08 +0000 (UTC) Received: (qmail 41603 invoked by uid 500); 4 Oct 2012 06:49:08 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 41550 invoked by uid 500); 4 Oct 2012 06:49:08 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 41529 invoked by uid 99); 4 Oct 2012 06:49:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 06:49:08 +0000 Date: Thu, 4 Oct 2012 17:49:07 +1100 (NCT) From: "Alex Huang (JIRA)" To: cloudstack-dev@incubator.apache.org Message-ID: <1509811661.164128.1349333347929.JavaMail.jiratomcat@arcas> In-Reply-To: <571545761.163952.1349327947613.JavaMail.jiratomcat@arcas> Subject: [jira] [Assigned] (CLOUDSTACK-254) Permission denied to execute netusage.sh which results NetworkUsage as 0 for sent and received bytes 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-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alex Huang reassigned CLOUDSTACK-254: ------------------------------------- Assignee: Rohit Yadav > Permission denied to execute netusage.sh which results NetworkUsage as 0 for sent and received bytes > ---------------------------------------------------------------------------------------------------- > > Key: CLOUDSTACK-254 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-254 > Project: CloudStack > Issue Type: Bug > Components: Management Server, VMware > Affects Versions: pre-4.0.0 > Reporter: Sailaja Mada > Assignee: Rohit Yadav > Attachments: management-server.log, screenshot-1.jpg > > > Steps: > 1. Install and Configure Advanced Zone using VMWARE ESXi 5 server. > 2. Create new account , Network offering with Redundant Router enabled > 3. Create Network with the above offering. > 4. Deploy instance with this network > 5. Both Routers and instance got deployed. > 6. Verify Management server for any errors. > Observation: > ERROR is observed in management server logs - Permission denied to execute netusage.sh which results NetworkUsage as 0 for sent and received bytes > 2012-10-04 00:02:09,018 ERROR [utils.ssh.SshHelper] (DirectAgent-227:10.102.125.7) SSH execution of command /root/netusage.sh -g has an error status code in return. result output: bash: /root/netusage.sh: Permission denied > Details of the log: > 2012-10-04 00:02:07,736 INFO [vmware.resource.VmwareResource] (DirectAgent-227:10.102.125.7) Executing resource NetworkUsageCommand > 2012-10-04 00:02:09,018 ERROR [utils.ssh.SshHelper] (DirectAgent-227:10.102.125.7) SSH execution of command /root/netusage.sh -g has an error status code in return. result output: bash: /root/netusage.sh: Permission denied > 2012-10-04 00:02:09,024 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-227:null) Seq 1-73532288: Response Received: > 2012-10-04 00:02:09,024 DEBUG [agent.transport.Request] (DirectAgent-227:null) Seq 1-73532288: Processing: { Ans: , MgmtId: 55487956346259, via: 1, Ver: v1, Flags: 10, [{"NetworkUsageAnswer":{"routerName":"r-4-VM","bytesSent":0,"bytesReceived":0,"result":true,"details":"","wait":0}}] } > 2012-10-04 00:02:09,024 DEBUG [agent.transport.Request] (RouterMonitor-1:null) Seq 1-73532288: Received: { Ans: , MgmtId: 55487956346259, via: 1, Ver: v1, Flags: 10, { NetworkUsageAnswer } } > 2012-10-04 00:02:09,024 DEBUG [agent.manager.AgentManagerImpl] (RouterMonitor-1:null) Details from executing class com.cloud.agent.api.NetworkUsageCommand: > 2012-10-04 00:02:09,024 DEBUG [network.router.VirtualNetworkApplianceManagerImpl] (RouterMonitor-1:null) Recieved and Sent bytes are both 0. Not updating user_statistics > 2012-10-04 00:02:09,031 DEBUG [agent.manager.DirectAgentAttache] (DirectAgent-485:null) Seq 1-73532289: Executing request > 2012-10-04 00:02:09,031 INFO [vmware.resource.VmwareResource] (DirectAgent-485:10.102.125.7) Executing resource NetworkUsageCommand > Attached MS log and snap. > Note : @ Router networkusage.sh does not have execution permissions set. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira