You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "Sailaja Mada (JIRA)" <ji...@apache.org> on 2012/10/04 07:19:07 UTC

[jira] [Created] (CLOUDSTACK-254) Permission denied to execute netusage.sh which results NetworkUsage as 0 for sent and received bytes

Sailaja Mada created CLOUDSTACK-254:
---------------------------------------

             Summary: 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


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

[jira] [Assigned] (CLOUDSTACK-254) Permission denied to execute netusage.sh which results NetworkUsage as 0 for sent and received bytes

Posted by "Alex Huang (JIRA)" <ji...@apache.org>.
     [ 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

[jira] [Updated] (CLOUDSTACK-254) Permission denied to execute netusage.sh which results NetworkUsage as 0 for sent and received bytes

Posted by "Sailaja Mada (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLOUDSTACK-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sailaja Mada updated CLOUDSTACK-254:
------------------------------------

    Attachment: management-server.log
    
> 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
>         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

[jira] [Resolved] (CLOUDSTACK-254) Permission denied to execute netusage.sh which results NetworkUsage as 0 for sent and received bytes

Posted by "Rohit Yadav (JIRA)" <ji...@apache.org>.
     [ 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 <ro...@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

[jira] [Updated] (CLOUDSTACK-254) Permission denied to execute netusage.sh which results NetworkUsage as 0 for sent and received bytes

Posted by "Rohit Yadav (JIRA)" <ji...@apache.org>.
     [ 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

[jira] [Commented] (CLOUDSTACK-254) Permission denied to execute netusage.sh which results NetworkUsage as 0 for sent and received bytes

Posted by "Rohit Yadav (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLOUDSTACK-254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13469232#comment-13469232 ] 

Rohit Yadav commented on CLOUDSTACK-254:
----------------------------------------

Patch sent for review; please merge in 4.0 and master;
https://reviews.apache.org/r/7434/
                
> 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

[jira] [Closed] (CLOUDSTACK-254) Permission denied to execute netusage.sh which results NetworkUsage as 0 for sent and received bytes

Posted by "Sailaja Mada (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLOUDSTACK-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sailaja Mada closed CLOUDSTACK-254.
-----------------------------------


Regressed with 72 non-oss build. Reported issue is not observed now. Hence closing the bug.
                
> 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

[jira] [Updated] (CLOUDSTACK-254) Permission denied to execute netusage.sh which results NetworkUsage as 0 for sent and received bytes

Posted by "Sailaja Mada (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CLOUDSTACK-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sailaja Mada updated CLOUDSTACK-254:
------------------------------------

    Attachment: screenshot-1.jpg
    
> 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
>         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

[jira] [Commented] (CLOUDSTACK-254) Permission denied to execute netusage.sh which results NetworkUsage as 0 for sent and received bytes

Posted by "Rohit Yadav (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLOUDSTACK-254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13470312#comment-13470312 ] 

Rohit Yadav commented on CLOUDSTACK-254:
----------------------------------------

Patch pulled in 4.0. Please start verifying using latest builds from jenkins and close this issue.
                
> 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