incubator-cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohit Yadav (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CLOUDSTACK-254) Permission denied to execute netusage.sh which results NetworkUsage as 0 for sent and received bytes
Date Thu, 04 Oct 2012 10:03:07 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rohit Yadav resolved CLOUDSTACK-254.
------------------------------------

    Resolution: Fixed

Please pick this fix on 4.0 branch;
Applied on master;
>From 3e7ba774f92c31ed5be649e4ed5ec315757ef93e Mon Sep 17 00:00:00 2001
From: Rohit Yadav <rohit.yadav@citrix.com>
Date: Thu, 4 Oct 2012 14:26:09 +0530
Subject: [PATCH] CLOUDSTACK-254: Fix exec path for netusage.sh
                
> 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

Mime
View raw message