Hi Paul, yesterday when I was trying to add secondary storage with /hcloud/secondary , In logs I was not able to see much activity, but storage got attached. I have uploaded screenshot in previous mail.
I have reattached the secondary storage, and it logs are Trying to add a new data store at cifs:// 10.129.151.55/hcloud/secondary?user=administrator&domain=nwx.com to data center 3 2014-02-05 15:36:07,825 DEBUG [c.c.u.UriUtils] (catalina-exec-20:ctx-a19af0fa ctx-fb83ed9b) foundUser istrue 2014-02-05 15:36:07,825 DEBUG [c.c.u.UriUtils] (catalina-exec-20:ctx-a19af0fa ctx-fb83ed9b) foundPswd istrue I have not enable the zone yet. In attached screenshot of secondary storage in previous mail protocol:cifs provider : NFS I suspect, it because I have taken chunk of NFS datastore, mounted and share it via Windows fie server (Standalone) please find logs in attached file. Regards, Tejas On Tue, Feb 4, 2014 at 5:52 PM, Paul Angus <paul.an...@shapeblue.com> wrote: > Hey Tejas, > > > cifs%3A%2F%2F10.129.151.155hcloud%2Fsecondary%3Fuser%3Dadministrator%26domain%3Dnwx.com > > Theres a "/" ("%2F") missing between 10.129.151.155 and hcloud - my > recollection is that primary and secondary storage UIs are not consistent, > add the secondary path as /hcloud/secondary > > re primary - is the agent service running? it doesn't seem to (always) > automatically start even when it's set to automatic in services. > > Regards, > > Paul Angus > Cloud Architect > S: +44 20 3603 0540 | M: +447711418784 | T: @CloudyAngus > paul.an...@shapeblue.com > > From: Tejas Gadaria [mailto:refond.g...@gmail.com] > Sent: 04 February 2014 12:15 > To: us...@cloudstack.apache.org > Cc: rajesh.batt...@citrix.com; dev@cloudstack.apache.org > Subject: Re: Not able to add primary Storage Cloudstack 4.3 > > Hi Paul, > I tried with "hcloud/primary" and > primary storage shows Unsupported command issued. > > secondary storage shows Failed to add data store: cifs URI missing host > and/or path. Make sure it's of the format > cifs://hostname/path?user=<username>&password=<password> > > After that I was trying to add secondary storage with /hcloud/secondary, I > didn't show much activity in log. > In Cloudstack console, secondary storage got added, but protocol is CIFS > and provider is NFS. > > Please find attached logs. and screenshot from attached secondary storage. > > Regards, > Tejas > > On Tue, Feb 4, 2014 at 12:29 PM, Paul Angus <paul.an...@shapeblue.com > <mailto:paul.an...@shapeblue.com>> wrote: > Tejas, You have hcloud\primary, it should be hcloud/primary > > Regards > > Paul Angus > Cloud Architect > S: +44 20 3603 0540<tel:%2B44%2020%203603%200540> | M: > +447711418784<tel:%2B447711418784> > | T: CloudyAngus > paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com><mailto: > paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com>> > > From: Tejas Gadaria [mailto:refond.g...@gmail.com<mailto: > refond.g...@gmail.com>] > Sent: 04 February 2014 05:16 > To: us...@cloudstack.apache.org<mailto:us...@cloudstack.apache.org> > Cc: rajesh.batt...@citrix.com<mailto:rajesh.batt...@citrix.com>; > dev@cloudstack.apache.org<mailto:dev@cloudstack.apache.org> > Subject: Re: Not able to add primary Storage Cloudstack 4.3 > Hi, > I have tried to add Primary Storage as suggested above, I am getting > similar error. > Failed to add data store: cifs:// > 10.129.151.155/hcloud\primary?user=administrator&password=abc_123&domain=nwx.com > < > http://10.129.151.155/hcloud/primary?user=administrator&password=abc_123&domain=nwx.com > >< > http://10.129.151.155/hcloud%5Cprimary?user=administrator&password=abc_123@123&domain=nwx.com> > is not a valid uri > Regards, > Tejas > > On Sun, Feb 2, 2014 at 9:58 AM, Tejas Gadaria <refond.g...@gmail.com > <mailto:refond.g...@gmail.com><mailto:refond.g...@gmail.com<mailto: > refond.g...@gmail.com>>> wrote: > Hi Paul, > Thanks for your replay. > I was entering the path exactly what you predicted. > ("\\server\share\directory <file:///\\server\share\directory%20> > <file:///\\server\share\directory%20%3cfile:\server\share\directory%2520%3e%20> > ") > I will try to add primary storage with 'share/folder' and the 'server' > without the \\ path . > Regards, > Tejas > On Sat, Feb 1, 2014 at 5:34 PM, Paul Angus <paul.an...@shapeblue.com > <mailto:paul.an...@shapeblue.com><mailto:paul.an...@shapeblue.com<mailto: > paul.an...@shapeblue.com>>> wrote: > Tejas, > I guess that your entering the path as an smb path > \\server\share\directory<file:///\\server\share\directory<file:///\\server\share\directory%3cfile:\server\share\directory>> > For primary storage try 'share/folder' and the 'server' without the \\ > > There were issues with shared primary storage, so I've included one of the > devs working on the feature. > > The same is true for secondary storage (although the UI may need > \share\directory in the path). > > Regards > > Paul Angus > Cloud Architect > S: +44 20 3603 > 0540<tel:%2B44%2020%203603%200540><tel:%2B44%2020%203603%200540> > | M: +447711418784<tel:%2B447711418784><tel:%2B447711418784> | T: > CloudyAngus > paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com><mailto: > paul.an...@shapeblue.com<mailto:paul.an...@shapeblue.com>> > > -----Original Message----- > From: Sean Hamilton [mailto:s...@seanhamilton.co.uk<mailto: > s...@seanhamilton.co.uk><mailto:s...@seanhamilton.co.uk<mailto: > s...@seanhamilton.co.uk>>] > Sent: 01 February 2014 11:55 > To: us...@cloudstack.apache.org<mailto:us...@cloudstack.apache.org > ><mailto:us...@cloudstack.apache.org<mailto:us...@cloudstack.apache.org>> > Cc: us...@cloudstack.apache.org<mailto:us...@cloudstack.apache.org > ><mailto:us...@cloudstack.apache.org<mailto:us...@cloudstack.apache.org>> > Subject: Re: Not able to add primary Storage Cloudstack 4.3 > > Hi Tejas, > > What hypervisor are you using? > I can't remember if CIFS is a valid protocol for hypervisors other than > Hyper-V. NFS is used for other hypervisors. > > Cheers, > Sean > > On 1 Feb 2014, at 09:26, Tejas Gadaria <refond.g...@gmail.com<mailto: > refond.g...@gmail.com><mailto:refond.g...@gmail.com<mailto: > refond.g...@gmail.com>>> wrote: > > > > Hi, > > > > While adding primary Storage I am getting > > > > "cifs:// > 10.129.151.155/\\hcloud\primary\?user=administrator&password=abc_123&domain=nwx.com > < > http://10.129.151.155/hcloud/primary/?user=administrator&password=abc_123&domain=nwx.com > >< > http://10.129.151.155/%5C%5Chcloud%5Cprimary%5C?user=administrator&password=abc_123&domain=nwx.com> > is not a valid uri" > > > > Similar error I am facing while adding secondary storage also. > > > > Please find attachment for logs, > > > > > > Regards, > > Tejas > > <primary storage.txt> > > <secondary storage.txt> > Need Enterprise Grade Support for Apache CloudStack? > Our CloudStack Infrastructure Support< > http://shapeblue.com/cloudstack-infrastructure-support/> offers the best > 24/7 SLA for CloudStack Environments. > > Apache CloudStack Bootcamp training courses > > **NEW!** CloudStack 4.2.1 training< > http://shapeblue.com/cloudstack-training/> > 18th-19th February 2014, Brazil. Classroom< > http://shapeblue.com/cloudstack-training/> > 17th-23rd March 2014, Region A. Instructor led, On-line< > http://shapeblue.com/cloudstack-training/> > 24th-28th March 2014, Region B. Instructor led, On-line< > http://shapeblue.com/cloudstack-training/> > 16th-20th June 2014, Region A. Instructor led, On-line< > http://shapeblue.com/cloudstack-training/> > 23rd-27th June 2014, Region B. Instructor led, On-line< > http://shapeblue.com/cloudstack-training/> > > This email and any attachments to it may be confidential and are intended > solely for the use of the individual to whom it is addressed. Any views or > opinions expressed are solely those of the author and do not necessarily > represent those of Shape Blue Ltd or related companies. If you are not the > intended recipient of this email, you must neither take any action based > upon its contents, nor copy or show it to anyone. Please contact the sender > if you believe you have received this email in error. Shape Blue Ltd is a > company incorporated in England & Wales. ShapeBlue Services India LLP is a > company incorporated in India and is operated under license from Shape Blue > Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil > and is operated under license from Shape Blue Ltd. ShapeBlue is a > registered trademark. > > > This email and any attachments to it may be confidential and are intended > solely for the use of the individual to whom it is addressed. Any views or > opinions expressed are solely those of the author and do not necessarily > represent those of Shape Blue Ltd or related companies. If you are not the > intended recipient of this email, you must neither take any action based > upon its contents, nor copy or show it to anyone. Please contact the sender > if you believe you have received this email in error. Shape Blue Ltd is a > company incorporated in England & Wales. ShapeBlue Services India LLP is a > company incorporated in India and is operated under license from Shape Blue > Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil > and is operated under license from Shape Blue Ltd. ShapeBlue is a > registered trademark. > > This email and any attachments to it may be confidential and are intended > solely for the use of the individual to whom it is addressed. Any views or > opinions expressed are solely those of the author and do not necessarily > represent those of Shape Blue Ltd or related companies. If you are not the > intended recipient of this email, you must neither take any action based > upon its contents, nor copy or show it to anyone. Please contact the sender > if you believe you have received this email in error. Shape Blue Ltd is a > company incorporated in England & Wales. ShapeBlue Services India LLP is a > company incorporated in India and is operated under license from Shape Blue > Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil > and is operated under license from Shape Blue Ltd. ShapeBlue is a > registered trademark. >
2014-02-05 15:31:12,125 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-cc1ef21a) Found 0 networks to update RvR status. 2014-02-05 15:31:12,155 DEBUG [c.c.n.ExternalDeviceUsageManagerImpl] (ExternalNetworkMonitor-1:ctx-1155a75a) External devices stats collector is running... 2014-02-05 15:31:12,194 DEBUG [c.c.s.s.SnapshotSchedulerImpl] (SnapshotPollTask:ctx-bc9ebcfe) Snapshot scheduler.poll is being called at 2014-02-05 10:01:12 GMT 2014-02-05 15:31:12,195 DEBUG [c.c.s.s.SnapshotSchedulerImpl] (SnapshotPollTask:ctx-bc9ebcfe) Got 0 snapshots to be executed at 2014-02-05 10:01:12 GMT 2014-02-05 15:31:21,200 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-53:ctx-0f59c1f7) Ping host 10.129.151.52 (IP 10.129.151.52) 2014-02-05 15:31:21,201 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-53:ctx-0f59c1f7) POST request to https://10.129.151.52:8250/api/HypervResource/com.cloud.agent.api.PingRoutingCommand with contents {"_gatewayAccessible":true,"_vnetAccessible":true,"hostType":"Routing","hostId":1,"contextMap":{},"wait":0} 2014-02-05 15:31:21,205 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-53:ctx-0f59c1f7) Sending cmd to https://10.129.151.52:8250/api/HypervResource/com.cloud.agent.api.PingRoutingCommand cmd data:{"_gatewayAccessible":true,"_vnetAccessible":true,"hostType":"Routing","hostId":1,"contextMap":{},"wait":0} 2014-02-05 15:31:21,333 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-53:ctx-0f59c1f7) POST response is [{"com.cloud.agent.api.Answer":{"result":true,"details":"success - NOP for PingRoutingCommand","_reconnect":false,"contextMap":{}}}] 2014-02-05 15:31:21,334 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-53:ctx-0f59c1f7) executeRequest received response [Lcom.cloud.agent.api.Answer;@78d39270 2014-02-05 15:31:21,334 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-53:ctx-0f59c1f7) Ping from 1(10.129.151.52) 2014-02-05 15:31:27,288 DEBUG [c.c.s.StatsCollector] (StatsCollector-3:ctx-e298e6cc) VmStatsCollector is running... 2014-02-05 15:31:27,310 DEBUG [c.c.s.StatsCollector] (StatsCollector-2:ctx-dfb71a87) StorageCollector is running... 2014-02-05 15:31:27,416 DEBUG [c.c.c.ConsoleProxyManagerImpl] (consoleproxy-1:ctx-d18fdc19) Skip capacity scan due to there is no Primary Storage UPintenance mode ^C [root@hyperv ~]# [root@hyperv ~]# tailf /var/log/cloudstack/management/management-server.log 2014-02-05 15:35:42,126 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-7f0f2c6f) Found 0 networks to update RvR status. 2014-02-05 15:35:52,964 DEBUG [c.c.s.StatsCollector] (StatsCollector-3:ctx-b631351a) HostStatsCollector is running... 2014-02-05 15:35:52,975 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-2:ctx-7f40428a) Seq 1-1506803746: Executing request 2014-02-05 15:35:52,975 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-2:ctx-7f40428a) POST request to https://10.129.151.52:8250/api/HypervResource/com.cloud.agent.api.GetHostStatsCommand with contents {"hostGuid":"ee306959-650b-3b83-b491-6119b6d585c1-HypervResource","hostName":"10.129.151.52","hostId":1,"contextMap":{},"wait":0} 2014-02-05 15:35:52,980 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-2:ctx-7f40428a) Sending cmd to https://10.129.151.52:8250/api/HypervResource/com.cloud.agent.api.GetHostStatsCommand cmd data:{"hostGuid":"ee306959-650b-3b83-b491-6119b6d585c1-HypervResource","hostName":"10.129.151.52","hostId":1,"contextMap":{},"wait":0} 2014-02-05 15:35:53,472 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-2:ctx-7f40428a) POST response is [{"com.cloud.agent.api.GetHostStatsAnswer":{"result":true,"hostStats":{"hostId":1,"entityType":"host","cpuUtilization":5.0,"networkReadKBs":0.0,"networkWriteKBs":0.0,"totalMemoryKBs":4192708.0,"freeMemoryKBs":2966368.0},"details":null,"contextMap":{}}}] 2014-02-05 15:35:53,473 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-2:ctx-7f40428a) executeRequest received response [Lcom.cloud.agent.api.Answer;@407721a5 2014-02-05 15:35:53,473 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-2:ctx-7f40428a) Seq 1-1506803746: Response Received: 2014-02-05 15:35:53,474 DEBUG [c.c.a.t.Request] (StatsCollector-3:ctx-b631351a) Seq 1-1506803746: Received: { Ans: , MgmtId: 345051498628, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer } } 2014-02-05 15:35:57,417 DEBUG [c.c.c.ConsoleProxyManagerImpl] (consoleproxy-1:ctx-24b0d2ad) Skip capacity scan due to there is no Primary Storage UPintenance mode 2014-02-05 15:36:07,790 DEBUG [c.c.a.ApiServlet] (catalina-exec-20:ctx-a19af0fa) ===START=== 10.129.150.62 -- GET command=addImageStore&response=json&sessionkey=CORNLLWI86WsseS4bzuaulHm2tQ%3D&name=secondary&provider=SMB&zoneid=e2a5a06c-415d-4055-a497-bab7ee17afdb&url=cifs%3A%2F%2F10.129.151.55%2Fhcloud%2Fsecondary%3Fuser%3Dadministrator%26domain%3Dnwx.com&_=1391596519755 2014-02-05 15:36:07,816 INFO [o.a.c.s.d.l.CloudStackImageStoreLifeCycleImpl] (catalina-exec-20:ctx-a19af0fa ctx-fb83ed9b) Trying to add a new data store at cifs://10.129.151.55/hcloud/secondary?user=administrator&domain=nwx.com to data center 3 2014-02-05 15:36:07,825 DEBUG [c.c.u.UriUtils] (catalina-exec-20:ctx-a19af0fa ctx-fb83ed9b) foundUser istrue 2014-02-05 15:36:07,825 DEBUG [c.c.u.UriUtils] (catalina-exec-20:ctx-a19af0fa ctx-fb83ed9b) foundPswd istrue 2014-02-05 15:36:07,897 DEBUG [c.c.a.ApiServlet] (catalina-exec-20:ctx-a19af0fa ctx-fb83ed9b) ===END=== 10.129.150.62 -- GET command=addImageStore&response=json&sessionkey=CORNLLWI86WsseS4bzuaulHm2tQ%3D&name=secondary&provider=SMB&zoneid=e2a5a06c-415d-4055-a497-bab7ee17afdb&url=cifs%3A%2F%2F10.129.151.55%2Fhcloud%2Fsecondary%3Fuser%3Dadministrator%26domain%3Dnwx.com&_=1391596519755 2014-02-05 15:36:12,122 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterMonitor-1:ctx-5e7b9b5e) Found 0 running routers. 2014-02-05 15:36:12,124 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-67650818) Found 0 routers to update status. 2014-02-05 15:36:12,126 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-67650818) Found 0 networks to update RvR status. 2014-02-05 15:36:12,155 DEBUG [c.c.n.ExternalDeviceUsageManagerImpl] (ExternalNetworkMonitor-1:ctx-136bb58a) External devices stats collector is running... 2014-02-05 15:36:12,194 DEBUG [c.c.s.s.SnapshotSchedulerImpl] (SnapshotPollTask:ctx-82079cb3) Snapshot scheduler.poll is being called at 2014-02-05 10:06:12 GMT 2014-02-05 15:36:12,195 DEBUG [c.c.s.s.SnapshotSchedulerImpl] (SnapshotPollTask:ctx-82079cb3) Got 0 snapshots to be executed at 2014-02-05 10:06:12 GMT 2014-02-05 15:36:17,256 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-d86d7000) Resetting hosts suitable for reconnect 2014-02-05 15:36:17,258 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-d86d7000) Completed resetting hosts suitable for reconnect 2014-02-05 15:36:17,258 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-d86d7000) Acquiring hosts for clusters already owned by this management server 2014-02-05 15:36:17,260 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-d86d7000) Completed acquiring hosts for clusters already owned by this management server 2014-02-05 15:36:17,260 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-d86d7000) Acquiring hosts for clusters not owned by any management server 2014-02-05 15:36:17,260 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager Timer:ctx-d86d7000) Completed acquiring hosts for clusters not owned by any management server 2014-02-05 15:36:19,674 DEBUG [c.c.a.ApiServlet] (catalina-exec-19:ctx-e7b3253c) ===START=== 10.129.150.62 -- GET command=listImageStores&id=76f52f96-a4b4-4a00-bd40-fa956700fe1c&response=json&sessionkey=CORNLLWI86WsseS4bzuaulHm2tQ%3D&_=1391596531684 2014-02-05 15:36:19,685 DEBUG [c.c.a.ApiServlet] (catalina-exec-19:ctx-e7b3253c ctx-52414749) ===END=== 10.129.150.62 -- GET command=listImageStores&id=76f52f96-a4b4-4a00-bd40-fa956700fe1c&response=json&sessionkey=CORNLLWI86WsseS4bzuaulHm2tQ%3D&_=1391596531684 2014-02-05 15:36:21,199 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-63:ctx-334dd949) Ping host 10.129.151.52 (IP 10.129.151.52) 2014-02-05 15:36:21,200 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-63:ctx-334dd949) POST request to https://10.129.151.52:8250/api/HypervResource/com.cloud.agent.api.PingRoutingCommand with contents {"_gatewayAccessible":true,"_vnetAccessible":true,"hostType":"Routing","hostId":1,"contextMap":{},"wait":0} 2014-02-05 15:36:21,205 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-63:ctx-334dd949) Sending cmd to https://10.129.151.52:8250/api/HypervResource/com.cloud.agent.api.PingRoutingCommand cmd data:{"_gatewayAccessible":true,"_vnetAccessible":true,"hostType":"Routing","hostId":1,"contextMap":{},"wait":0} 2014-02-05 15:36:21,312 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-63:ctx-334dd949) POST response is [{"com.cloud.agent.api.Answer":{"result":true,"details":"success - NOP for PingRoutingCommand","_reconnect":false,"contextMap":{}}}] 2014-02-05 15:36:21,313 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-63:ctx-334dd949) executeRequest received response [Lcom.cloud.agent.api.Answer;@7a0522a5 2014-02-05 15:36:21,313 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-63:ctx-334dd949) Ping from 1(10.129.151.52) 2014-02-05 15:36:22,265 DEBUG [c.c.n.l.LBHealthCheckManagerImpl] (LBHealthCheck-1:ctx-17c10fa0) LB HealthCheck Manager is running and getting the updates from LB providers and updating service status 2014-02-05 15:36:22,289 DEBUG [c.c.n.l.LBHealthCheckManagerImpl] (LBHealthCheck-1:ctx-17c10fa0) LB HealthCheck Manager is running and getting the updates from LB providers and updating service status 2014-02-05 15:36:27,308 DEBUG [c.c.s.StatsCollector] (StatsCollector-2:ctx-24ee5e6e) VmStatsCollector is running... 2014-02-05 15:36:27,323 DEBUG [c.c.s.StatsCollector] (StatsCollector-1:ctx-d16a8769) StorageCollector is running... 2014-02-05 15:36:27,330 DEBUG [c.c.s.StatsCollector] (StatsCollector-1:ctx-d16a8769) There is no secondary storage VM for secondary storage host secondary 2014-02-05 15:36:27,417 DEBUG [c.c.c.ConsoleProxyManagerImpl] (consoleproxy-1:ctx-a59f6fa7) Skip capacity scan due to there is no Primary Storage UPintenance mode