Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 24CEC10CE0 for ; Wed, 1 Jan 2014 09:06:53 +0000 (UTC) Received: (qmail 41005 invoked by uid 500); 1 Jan 2014 09:06:51 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 40930 invoked by uid 500); 1 Jan 2014 09:06:51 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 40807 invoked by uid 500); 1 Jan 2014 09:06:50 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 40646 invoked by uid 99); 1 Jan 2014 09:06:50 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jan 2014 09:06:50 +0000 Date: Wed, 1 Jan 2014 09:06:50 +0000 (UTC) From: "Devdeep Singh (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CLOUDSTACK-5605) [Hyper-V] Fix GetStorageStatsCommand for Hyper-V 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-5605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Devdeep Singh resolved CLOUDSTACK-5605. --------------------------------------- Resolution: Fixed > [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 > Assignee: Devdeep Singh > Priority: Critical > Labels: Hyper-V, hyper-V,, hyperv > 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)