[
https://issues.apache.org/jira/browse/CLOUDSTACK-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rohit Yadav updated CLOUDSTACK-254:
-----------------------------------
Status: Ready To Review (was: In Progress)
> 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