Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6BE39200C1E for ; Fri, 17 Feb 2017 07:44:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 6A5E1160B73; Fri, 17 Feb 2017 06:44:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8C80C160B3F for ; Fri, 17 Feb 2017 07:44:46 +0100 (CET) Received: (qmail 41509 invoked by uid 500); 17 Feb 2017 06:44:45 -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 41500 invoked by uid 500); 17 Feb 2017 06:44:45 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 41497 invoked by uid 99); 17 Feb 2017 06:44:45 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Feb 2017 06:44:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 4BD82183A68 for ; Fri, 17 Feb 2017 06:44:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 8vArXI1Yd1TR for ; Fri, 17 Feb 2017 06:44:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 8BC9F5FE44 for ; Fri, 17 Feb 2017 06:44:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8F44EE07DA for ; Fri, 17 Feb 2017 06:44:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id EB8C824130 for ; Fri, 17 Feb 2017 06:44:41 +0000 (UTC) Date: Fri, 17 Feb 2017 06:44:41 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-9691) unhandeled excetion in list snapshot command when a primary store is deleted MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 17 Feb 2017 06:44:47 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-9691?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D15871284#comment-15871284 ]=20 ASF GitHub Bot commented on CLOUDSTACK-9691: -------------------------------------------- Github user karuturi commented on the issue: https://github.com/apache/cloudstack/pull/1847 =20 oops.. will wait for travis > unhandeled excetion in list snapshot command when a primary store is dele= ted > -------------------------------------------------------------------------= --- > > Key: CLOUDSTACK-9691 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-969= 1 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Reporter: Anshul Gangwar > > Repro steps: > I have a setup with 3 clusters . for one cluster i deleted the primary st= orage > now when i traverse to storage tab getting exception "Unable to locate da= tastore with id 1" > DB entries for deleted primary storage : > "id"=09"name"=09"uuid"=09"pool_type"=09"port"=09"data_center_id"=09"pod_i= d"=09"cluster_id" "used_bytes"=09"capacity_bytes"=09"host_address"=09"user_= info"=09"path"=09"created" "removed"=09"update_time"=09"status"=09"storage_= provider_name"=09"scope"=09"hypervisor" "managed"=09"capacity_iops" > "1"=09"dddd"=09\N=09"NetworkFilesystem"=09"2049"=09"1"=09"1"=09"1"=09"467= 4624913408" "5902284816384"=09"10.147.28.7"=09\N=09"/export/home/shweta/471= .xen.primary"=09"2016-08-17 08:14:12"=09"2016-08-25 04:54:53"=09\N=09"Maint= enance"=09"DefaultPrimary" "CLUSTER"=09\N=09"0"=09\N > MS log shows : > 2016-08-26 14:34:36,709 DEBUG [c.c.a.ApiServlet] (catalina-exec-1:ctx-90c= 9ba3a) (logid:115e39ad) =3D=3D=3DSTART=3D=3D=3D 10.233.88.59 =E2=80=93 GET = command=3DlistSnapshots&response=3Djson&listAll=3Dtrue&page=3D1&pagesize=3D= 20&_=3D1472202277072 > 2016-08-26 14:34:36,747 ERROR [c.c.a.ApiServer] (catalina-exec-1:ctx-90c9= ba3a ctx-94284178) (logid:115e39ad) unhandled exception executing api comma= nd: [Ljava.lang.String;@77f27ce8 > com.cloud.utils.exception.CloudRuntimeException: Unable to locate datasto= re with id 1 > at org.apache.cloudstack.storage.datastore.manager.PrimaryDataStoreProvid= erManagerImpl.getPrimaryDataStore(PrimaryDataStoreProviderManagerImpl.java:= 61) > at org.apache.cloudstack.storage.datastore.DataStoreManagerImpl.getDataSt= ore(DataStoreManagerImpl.java:48) > at com.cloud.api.ApiResponseHelper.getDataStoreRole(ApiResponseHelper.jav= a:571) > at com.cloud.api.ApiResponseHelper.createSnapshotResponse(ApiResponseHelp= er.java:537) > at org.apache.cloudstack.api.command.user.snapshot.ListSnapshotsCmd.execu= te(ListSnapshotsCmd.java:117) > at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:132) > at com.cloud.api.ApiServer.queueCommand(ApiServer.java:707) > at com.cloud.api.ApiServer.handleRequest(ApiServer.java:538) > at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:297) > at com.cloud.api.ApiServlet$1.run(ApiServlet.java:129) > at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.cal= l(DefaultManagedContext.java:56) > at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callW= ithContext(DefaultManagedContext.java:103) > at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWi= thContext(DefaultManagedContext.java:53) > at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:126) > at com.cloud.api.ApiServlet.doGet(ApiServlet.java:86) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli= cationFilterChain.java:290) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi= lterChain.java:206) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa= lve.java:233) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa= lve.java:191) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja= va:127) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja= va:102) > at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:5= 55) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv= e.java:109) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java= :298) > at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor= .java:889) > at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.pro= cess(Http11NioProtocol.java:721) > at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint= .java:2268) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j= ava:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.= java:617) > at java.lang.Thread.run(Thread.java:745) > 2016-08-26 14:34:36,749 DEBUG [c.c.a.ApiServlet] (catalina-exec-1:ctx-90c= 9ba3a ctx-94284178) (logid:115e39ad) =3D=3D=3DEND=3D=3D=3D 10.233.88.59 =E2= =80=93 GET command=3DlistSnapshots&response=3Djson&listAll=3Dtrue&page=3D1&= pagesize=3D20&_=3D1472202277072 > 2016-08-26 14:34:38,478 DEBUG [c.c.a.m.AgentManagerImpl] (AgentManager-Ha= ndler-8:null) (logid SeqA 3-49869: Processing Seq 3-49869: { Cmd , MgmtId: = -1, via: 3, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadRepo= rtCommand":{"_proxyVmId":2,"_loadInfo":" > {\n \"connections\": []\n} > ","wait":0}}] } -- This message was sent by Atlassian JIRA (v6.3.15#6346)