cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sowmya Krishnan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-5605) [Hyper-V] Fix GetStorageStatsCommand for Hyper-V
Date Sun, 22 Dec 2013 17:12:51 GMT
Sowmya Krishnan created CLOUDSTACK-5605:
-------------------------------------------

             Summary: [Hyper-V] Fix GetStorageStatsCommand for Hyper-V
                 Key: CLOUDSTACK-5605
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5605
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Storage Controller
    Affects Versions: 4.3.0
         Environment: Hyper-V setup, Advanced zone
            Reporter: Sowmya Krishnan
            Priority: Critical
             Fix For: 4.3.0


Create an advanced zone set up with Hyper-V.
Logs keep showing the following exceptions during Stats collection for Storage:

2013-12-22 21:52:05,122 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-387:ctx-bb8cfa79)
POST request tohttp://10.102.192.14:8250/api/HypervResou
rce/com.cloud.agent.api.GetStorageStatsCommand with contents{"id":"ce50406b-9038-37ba-9b72-6228d5eb0858","localPath":"/HYPERV-SMB/abhinav-hyperv-ps1?user\u00
3dabhinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR","pooltype":"NetworkFilesystem","contextMap":{},"wait":0}
2013-12-22 21:52:05,122 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-387:ctx-bb8cfa79)
Sending cmd to http://10.102.192.14:8250/api/HypervResou
rce/com.cloud.agent.api.GetStorageStatsCommand cmd data:{"id":"ce50406b-9038-37ba-9b72-6228d5eb0858","localPath":"/HYPERV-SMB/abhinav-hyperv-ps1?user\u003dab
hinav\u0026password\u003dfreebsd@123\u0026domain\u003dBLR","pooltype":"NetworkFilesystem","contextMap":{},"wait":0}
2013-12-22 21:52:05,131 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-387:ctx-bb8cfa79)
POST response is[{"com.cloud.agent.api.GetStorageStatsAn
swer":{"result":false,"details":"com.cloud.agent.api.GetStorageStatsCommand failed on exceptionIllegal
characters in path.","capacity":0,"used":0,"contextMap
":{}}}]
2013-12-22 21:52:05,131 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-387:ctx-bb8cfa79)
executeRequest received response [{"com.cloud.agent.api.
GetStorageStatsAnswer":{"used":0,"capacity":0,"result":false,"details":"com.cloud.agent.api.GetStorageStatsCommand
failed on exceptionIllegal characters in p
ath.","contextMap":{},"wait":0}}]

Following are the agent side logs:

2013-12-18 12:18:57,596 [42] INFO  HypervResource.HypervResourceController [06b343ed-9619-4af0-b80a-e3f96b9bc53d]
- com.cloud.agent.api.GetStorageStatsCommand{
  "id": "ce50406b-9038-37ba-9b72-6228d5eb0858",
  "localPath": "/HYPERV-SMB/abhinav-hyperv-ps1?user=abhinav&password=freebsd@123&domain=BLR",
  "pooltype": "NetworkFilesystem",
  "contextMap": {},
  "wait": 0
}
2013-12-18 12:18:57,596 [42] ERROR HypervResource.HypervResourceController [06b343ed-9619-4af0-b80a-e3f96b9bc53d]
- com.cloud.agent.api.GetStorageStatsCommand failed on exceptionIllegal characters in path.
System.ArgumentException: Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
   at System.Security.Permissions.FileIOPermission.CheckIllegalCharacters(String[] str)
   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access,
AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath,
Boolean copyPathList)
   at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[]
pathList, Boolean checkForDuplicates, Boolean needFullPath)
   at System.IO.Path.GetFullPath(String path)
   at HypervResource.HypervResourceController.GetCapacityForLocalPath(String localStoragePath,
Int64& capacityBytes, Int64& availableBytes) in c:\source_code\cloudstack\plugins\hypervisors\hyperv\DotNet\ServerResource\HypervResource\HypervResourceController.cs:line
1798
   at HypervResource.HypervResourceController.GetStorageStatsCommand(Object cmd) in c:\source_code\cloudstack\plugins\hypervisors\hyperv\DotNet\ServerResource\HypervResource\HypervResourceController.cs:line
1497
2013-12-18 12:18:57,596 [42] INFO  HypervResource.HypervResourceController [06b343ed-9619-4af0-b80a-e3f96b9bc53d]
- {
  "com.cloud.agent.api.GetStorageStatsAnswer": {
    "result": false,
    "details": "com.cloud.agent.api.GetStorageStatsCommand failed on exceptionIllegal characters
in path.",
    "capacity": 0,
    "used": 0,
    "contextMap": {}
  }
}




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message