Hi Irvin,

Have you solved your problem?  We are having same problem with TrueNAS Core for 
primary NFS storage.  We have tried about everything.  

However, TureNAS as a secondary storage works well. 

Regards,
Antoine



Antoine Boucher
[email protected]
[o] +1-226-505-9734
www.haltondc.com

“Data security made simple and affordable”





Confidentiality Warning: This message and any attachments are intended only for 
the use of the intended recipient(s), are confidential, and may be privileged. 
If you are not the intended recipient, you are hereby notified that any review, 
retransmission, conversion to hard copy, copying, circulation or other use of 
this message and any attachments is strictly prohibited. If you are not the 
intended recipient, please notify the sender immediately by return e-mail, and 
delete this message and any attachments from your system.


> On Jan 27, 2022, at 10:43 PM, jcapagcuan . <[email protected]> wrote:
> 
> Configuration is all good. I tried mounting it on the same server manually 
> and it’s fine. I just can’t mount it using Cloudstack. Btw, I’m using XCP-NG 
> 8.2 as a host.
> 
> Thanks,
> Irvin
> 
>> On Jan 28, 2022, at 10:58 AM, pradeep pal <[email protected]> wrote:
>> 
>> Hi,
>> 
>> Please check the shared folder permissions over the NFS server and 
>> configuration file.
>> 
>> Thanks
>> Pradeep
>> 
>> Get Outlook for iOS<https://aka.ms/o0ukef>
>> ________________________________
>> From: SVI <[email protected]>
>> Sent: Friday, January 28, 2022 8:02:08 AM
>> To: [email protected] <[email protected]>
>> Subject: Cannot mount NFS share as a primary storage
>> 
>> Hi,
>> 
>> I’m using 4.16.0.0 installed on Ubuntu 20.04 LTS. I was adding a NFS storage 
>> but is receiving errors. The NFS server is on a Debian server. I tried 
>> manually mounting the nfs path in the management server and it’s working 
>> fine, but when I try via cloudstack, I’m receiving errors. Below are the 
>> errors I’m receiving:
>> 
>> 2022-01-27 18:29:06,919 DEBUG [c.c.a.t.Request] 
>> (StatsCollector-5:ctx-ba68a5a0) (logid:11777161) Seq 1-2134143273420193900: 
>> Received:  { Ans: , MgmtId: 52229674989, via: 1(gpu01.nwhtc.com), Ver: v1, 
>> Flags: 10, { GetGPUStatsAnswer } }
>> 2022-01-27 18:29:08,034 DEBUG [c.c.a.ApiServlet] 
>> (qtp515715487-297:ctx-d758f8d6) (logid:1cb64509) ===START===  10.10.1.4 -- 
>> POST  command=createStoragePool&response=json
>> 2022-01-27 18:29:08,054 DEBUG [c.c.a.ApiServer] 
>> (qtp515715487-297:ctx-d758f8d6 ctx-10b23d47) (logid:1cb64509) CIDRs from 
>> which account 'Acct[9d7347a9-62f1-11ec-98f8-000c29b2b4c8-admin] -- Account 
>> {"id": 2, "name": "admin", "uuid": "9d7347a9-62f1-11ec-98f8-000c29b2b4c8"}' 
>> is allowed to perform API calls: 0.0.0.0/0,::/0
>> 2022-01-27 18:29:08,066 DEBUG 
>> [o.a.c.s.d.l.CloudStackPrimaryDataStoreLifeCycleImpl] 
>> (qtp515715487-297:ctx-d758f8d6 ctx-10b23d47) (logid:1cb64509) createPool 
>> Params @ scheme - nfs storageHost - 10.1.1.188 hostPath - 
>> /cloudstack/primary port - -1
>> 2022-01-27 18:29:08,076 DEBUG 
>> [o.a.c.s.d.l.CloudStackPrimaryDataStoreLifeCycleImpl] 
>> (qtp515715487-297:ctx-d758f8d6 ctx-10b23d47) (logid:1cb64509) creating pool 
>> primaary-hdd on  host 1
>> 2022-01-27 18:29:08,080 DEBUG [c.c.a.t.Request] 
>> (qtp515715487-297:ctx-d758f8d6 ctx-10b23d47) (logid:1cb64509) Seq 
>> 1-2134143273420193901: Sending  { Cmd , MgmtId: 52229674989, via: 
>> 1(gpu01.nwhtc.com), Ver: v1, Flags: 100011, 
>> [{"com.cloud.agent.api.CreateStoragePoolCommand":{"_createDatastore":"false","add":"true","pool":{"id":"6","uuid":"bd47fcce-63a4-3e5a-8153-ca212681c34b","host":"10.1.1.188","path":"/cloudstack/primary","port":"2049","type":"NetworkFilesystem"},"localPath":"/mnt//bd47fcce-63a4-3e5a-8153-ca212681c34b","wait":"0","bypassHostMaintenance":"false"}}]
>>  }
>> 2022-01-27 18:29:08,081 DEBUG [c.c.a.t.Request] 
>> (qtp515715487-297:ctx-d758f8d6 ctx-10b23d47) (logid:1cb64509) Seq 
>> 1-2134143273420193901: Executing:  { Cmd , MgmtId: 52229674989, via: 
>> 1(gpu01.nwhtc.com), Ver: v1, Flags: 100011, 
>> [{"com.cloud.agent.api.CreateStoragePoolCommand":{"_createDatastore":"false","add":"true","pool":{"id":"6","uuid":"bd47fcce-63a4-3e5a-8153-ca212681c34b","host":"10.1.1.188","path":"/cloudstack/primary","port":"2049","type":"NetworkFilesystem"},"localPath":"/mnt//bd47fcce-63a4-3e5a-8153-ca212681c34b","wait":"0","bypassHostMaintenance":"false"}}]
>>  }
>> 2022-01-27 18:29:08,083 DEBUG [c.c.a.m.DirectAgentAttache] 
>> (DirectAgent-101:ctx-fc288056) (logid:cf15a5dd) Seq 1-2134143273420193901: 
>> Executing request
>> 2022-01-27 18:29:08,277 WARN  
>> [c.c.h.x.r.w.x.CitrixCreateStoragePoolCommandWrapper] 
>> (DirectAgent-101:ctx-fc288056) (logid:1cb64509) Catch Exception 
>> com.cloud.utils.exception.CloudRuntimeException, create StoragePool failed 
>> due to com.cloud.utils.exception.CloudRuntimeException: Unable to create NFS 
>> SR Pool[6|10.1.1.188:2049|/cloudstack/primary] on 
>> host:6b65d51f-5a49-4ec0-afd9-9ae3534463da pool: 10.1.1.188/cloudstack/primary
>> com.cloud.utils.exception.CloudRuntimeException: Unable to create NFS SR 
>> Pool[6|10.1.1.188:2049|/cloudstack/primary]
>>       at 
>> com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.getNfsSR(CitrixResourceBase.java:3009)
>>       at 
>> com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixCreateStoragePoolCommandWrapper.execute(CitrixCreateStoragePoolCommandWrapper.java:57)
>>       at 
>> com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixCreateStoragePoolCommandWrapper.execute(CitrixCreateStoragePoolCommandWrapper.java:35)
>>       at 
>> com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixRequestWrapper.execute(CitrixRequestWrapper.java:122)
>>       at 
>> com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:1757)
>>       at 
>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:315)
>>       at 
>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:48)
>>       at 
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
>>       at 
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
>>       at 
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)
>>       at 
>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:45)
>>       at 
>> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>>       at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>>       at 
>> java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
>>       at 
>> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>>       at 
>> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>>       at java.base/java.lang.Thread.run(Thread.java:829)
>> Caused by: SR_BACKEND_FAILURE_1200not all arguments converted during string 
>> formatting
>>       at com.xensource.xenapi.Types.checkResponse(Types.java:2021)
>>       at com.xensource.xenapi.Connection.dispatch(Connection.java:395)
>>       at 
>> com.cloud.hypervisor.xenserver.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:457)
>>       ... 18 more
>> 2022-01-27 18:29:08,279 DEBUG [c.c.a.m.DirectAgentAttache] 
>> (DirectAgent-101:ctx-fc288056) (logid:1cb64509) Seq 1-2134143273420193901: 
>> Response Received:
>> 2022-01-27 18:29:08,280 DEBUG [c.c.a.t.Request] 
>> (DirectAgent-101:ctx-fc288056) (logid:1cb64509) Seq 1-2134143273420193901: 
>> Processing:  { Ans: , MgmtId: 52229674989, via: 1(gpu01.nwhtc.com), Ver: v1, 
>> Flags: 10, [{"com.cloud.agent.api.Answer":{"result":"false","details":"Catch 
>> Exception com.cloud.utils.exception.CloudRuntimeException, create 
>> StoragePool failed due to com.cloud.utils.exception.CloudRuntimeException: 
>> Unable to create NFS SR Pool[6|10.1.1.188:2049|/cloudstack/primary] on 
>> host:6b65d51f-5a49-4ec0-afd9-9ae3534463da pool: 
>> 10.1.1.188/cloudstack/primary","wait":"0","bypassHostMaintenance":"false"}}] 
>> }
>> 2022-01-27 18:29:08,281 DEBUG [c.c.a.t.Request] 
>> (qtp515715487-297:ctx-d758f8d6 ctx-10b23d47) (logid:1cb64509) Seq 
>> 1-2134143273420193901: Received:  { Ans: , MgmtId: 52229674989, via: 
>> 1(gpu01.nwhtc.com), Ver: v1, Flags: 10, { Answer } }
>> 2022-01-27 18:29:08,281 DEBUG [c.c.a.m.AgentManagerImpl] 
>> (qtp515715487-297:ctx-d758f8d6 ctx-10b23d47) (logid:1cb64509) Details from 
>> executing class com.cloud.agent.api.CreateStoragePoolCommand: Catch 
>> Exception com.cloud.utils.exception.CloudRuntimeException, create 
>> StoragePool failed due to com.cloud.utils.exception.CloudRuntimeException: 
>> Unable to create NFS SR Pool[6|10.1.1.188:2049|/cloudstack/primary] on 
>> host:6b65d51f-5a49-4ec0-afd9-9ae3534463da pool: 10.1.1.188/cloudstack/primary
>> 2022-01-27 18:29:08,288 WARN  
>> [o.a.c.s.d.l.CloudStackPrimaryDataStoreLifeCycleImpl] 
>> (qtp515715487-297:ctx-d758f8d6 ctx-10b23d47) (logid:1cb64509) Can not create 
>> storage pool through host 1 due to Catch Exception 
>> com.cloud.utils.exception.CloudRuntimeException, create StoragePool failed 
>> due to com.cloud.utils.exception.CloudRuntimeException: Unable to create NFS 
>> SR Pool[6|10.1.1.188:2049|/cloudstack/primary] on 
>> host:6b65d51f-5a49-4ec0-afd9-9ae3534463da pool: 10.1.1.188/cloudstack/primary
>> 2022-01-27 18:29:08,289 DEBUG [c.c.s.StorageManagerImpl] 
>> (qtp515715487-297:ctx-d758f8d6 ctx-10b23d47) (logid:1cb64509) Failed to add 
>> data store: Can not create storage pool through host 1 due to Catch 
>> Exception com.cloud.utils.exception.CloudRuntimeException, create 
>> StoragePool failed due to com.cloud.utils.exception.CloudRuntimeException: 
>> Unable to create NFS SR Pool[6|10.1.1.188:2049|/cloudstack/primary] on 
>> host:6b65d51f-5a49-4ec0-afd9-9ae3534463da pool: 10.1.1.188/cloudstack/primary
>> com.cloud.utils.exception.CloudRuntimeException: Can not create storage pool 
>> through host 1 due to Catch Exception 
>> com.cloud.utils.exception.CloudRuntimeException, create StoragePool failed 
>> due to com.cloud.utils.exception.CloudRuntimeException: Unable to create NFS 
>> SR Pool[6|10.1.1.188:2049|/cloudstack/primary] on 
>> host:6b65d51f-5a49-4ec0-afd9-9ae3534463da pool: 10.1.1.188/cloudstack/primary
>>       at 
>> org.apache.cloudstack.storage.datastore.lifecycle.CloudStackPrimaryDataStoreLifeCycleImpl.createStoragePool(CloudStackPrimaryDataStoreLifeCycleImpl.java:420)
>>       at 
>> org.apache.cloudstack.storage.datastore.lifecycle.CloudStackPrimaryDataStoreLifeCycleImpl.attachCluster(CloudStackPrimaryDataStoreLifeCycleImpl.java:443)
>>       at 
>> com.cloud.storage.StorageManagerImpl.createPool(StorageManagerImpl.java:818)
>>       at 
>> com.cloud.storage.StorageManagerImpl.createPool(StorageManagerImpl.java:233)
>>       at 
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
>> Method)
>>       at 
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>       at 
>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>       at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>>       at 
>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
>>       at 
>> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
>>       at 
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
>>       at 
>> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
>>       at 
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
>>       at 
>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
>>       at com.sun.proxy.$Proxy96.createPool(Unknown Source)
>>       at 
>> org.apache.cloudstack.api.command.admin.storage.CreateStoragePoolCmd.execute(CreateStoragePoolCmd.java:163)
>>       at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:156)
>>       at com.cloud.api.ApiServer.queueCommand(ApiServer.java:772)
>>       at com.cloud.api.ApiServer.handleRequest(ApiServer.java:596)
>>       at 
>> com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:321)
>>       at com.cloud.api.ApiServlet$1.run(ApiServlet.java:134)
>>       at 
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
>>       at 
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
>>       at 
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)
>>       at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:131)
>>       at com.cloud.api.ApiServlet.doPost(ApiServlet.java:98)
>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:665)
>>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
>>       at 
>> org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1443)
>>       at 
>> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:791)
>>       at 
>> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550)
>>       at 
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
>>       at 
>> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
>>       at 
>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
>>       at 
>> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
>>       at 
>> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
>>       at 
>> org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
>>       at 
>> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1435)
>>       at 
>> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
>>       at 
>> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
>>       at 
>> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
>>       at 
>> org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
>>       at 
>> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1350)
>>       at 
>> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
>>       at 
>> org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:766)
>>       at 
>> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
>>       at 
>> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
>>       at org.eclipse.jetty.server.Server.handle(Server.java:516)
>>       at 
>> org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
>>       at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
>>       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
>>       at 
>> org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
>>       at 
>> org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
>>       at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
>>       at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
>>       at 
>> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)
>>       at 
>> org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)
>>       at java.base/java.lang.Thread.run(Thread.java:829)
>> 2022-01-27 18:29:08,296 DEBUG [c.c.s.StorageManagerImpl] 
>> (qtp515715487-297:ctx-d758f8d6 ctx-10b23d47) (logid:1cb64509) Failed to 
>> clean up storage pool: null
>> 2022-01-27 18:29:08,296 INFO  [c.c.a.ApiServer] 
>> (qtp515715487-297:ctx-d758f8d6 ctx-10b23d47) (logid:1cb64509) Failed to add 
>> data store: Can not create storage pool through host 1 due to Catch 
>> Exception com.cloud.utils.exception.CloudRuntimeException, create 
>> StoragePool failed due to com.cloud.utils.exception.CloudRuntimeException: 
>> Unable to create NFS SR Pool[6|10.1.1.188:2049|/cloudstack/primary] on 
>> host:6b65d51f-5a49-4ec0-afd9-9ae3534463da pool: 10.1.1.188/cloudstack/primary
>> 2022-01-27 18:29:08,297 DEBUG [c.c.a.ApiServlet] 
>> (qtp515715487-297:ctx-d758f8d6 ctx-10b23d47) (logid:1cb64509) ===END===  
>> 10.10.1.4 -- POST  command=createStoragePool&response=json
>> 
>> Thanks,
>> Irvin
>> 
> 

Reply via email to