Hi Folks,
I have already some trouble with getting swift working as secondary storage. It has pushed the system vm template to my swift framework, i can see the system vm template on my object storage nodes, bu when i go to the web UI, on templates, sometimes i got my template available, sometimes it is no more available. Sanjeev, any idea ? Thanks. Regards, Benoit. 2014-04-10 17:57 GMT+02:00 benoit lair <kurushi4...@gmail.com>: > After solving the problem of the set perms, i could see the replication > request for pushing the datas on swift. > > Now another problem and for information for those who whant to install > their own swift : it is a requirement to have a swift public url with swift > v1.0 and not a 2.0 one. > > If your swift endpoint is in v2 you won't be able to push your datas on > swift. > > Troubleshooting in progress, have modified by gateway from v2 to v1, now > waiting for mgmt cs to repush the data. > > > Regards, Benoit. > > > 2014-04-10 16:34 GMT+02:00 benoit lair <kurushi4...@gmail.com>: > > I have more information for my issue : >> >> 2014-04-10 16:26:23,071 DEBUG [o.a.c.s.r.NfsSecondaryStorageResource] >> (pool-10-thread-1:ctx-1a8aedc3) Successfully mounted >> 10.32.0.70:/export/secondary >> at /var/cloudstack/mnt/secStorage/7b0ceb7f-ae60-3922-80e7-8836fec2dda8 >> 2014-04-10 16:26:23,071 DEBUG >> [o.a.c.s.r.LocalNfsSecondaryStorageResource] >> (pool-10-thread-1:ctx-1a8aedc3) Executing: sudo chmod 777 >> /var/cloudstack/mnt/secStorage/7b0ceb7f-ae60-3922-80e7-8836fec2dda8 >> 2014-04-10 16:26:23,345 DEBUG >> [o.a.c.s.r.LocalNfsSecondaryStorageResource] >> (pool-10-thread-1:ctx-1a8aedc3) Exit value is 1 >> 2014-04-10 16:26:23,358 DEBUG >> [o.a.c.s.r.LocalNfsSecondaryStorageResource] >> (pool-10-thread-1:ctx-1a8aedc3) chmod: modification des permissions de >> « /var/cloudstack/mnt/secStorage/7b0ceb7f-ae60-3922-80e7-8836fec2dda8 »: >> Opération non permise >> 2014-04-10 16:26:23,358 ERROR >> [o.a.c.s.r.LocalNfsSecondaryStorageResource] >> (pool-10-thread-1:ctx-1a8aedc3) Unable to set permissions for >> /var/cloudstack/mnt/secStorage/7b0ceb7f-ae60-3922-80e7-8836fec2dda8 due to >> chmod: modification des permissions de >> « /var/cloudstack/mnt/secStorage/7b0ceb7f-ae60-3922-80e7-8836fec2dda8 »: >> Opération non permise >> 2014-04-10 16:26:23,358 ERROR >> [o.a.c.s.r.LocalNfsSecondaryStorageResource] >> (pool-10-thread-1:ctx-1a8aedc3) GetRootDir for nfs:// >> 10.0.0.200/export/secondary failed due to >> com.cloud.utils.exception.CloudRuntimeException: Unable to set permissions >> for /var/cloudstack/mnt/secStorage/7b0ceb7f-ae60-3922-80e7-8836fec2dda8 due >> to chmod: modification des permissions de >> « /var/cloudstack/mnt/secStorage/7b0ceb7f-ae60-3922-80e7-8836fec2dda8 »: >> Opération non permise >> com.cloud.utils.exception.CloudRuntimeException: Unable to set >> permissions for >> /var/cloudstack/mnt/secStorage/7b0ceb7f-ae60-3922-80e7-8836fec2dda8 due to >> chmod: modification des permissions de >> « /var/cloudstack/mnt/secStorage/7b0ceb7f-ae60-3922-80e7-8836fec2dda8 »: >> Opération non permise >> at >> org.apache.cloudstack.storage.resource.LocalNfsSecondaryStorageResource.mount(LocalNfsSecondaryStorageResource.java:111) >> at >> org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.mountUri(NfsSecondaryStorageResource.java:2310) >> at >> org.apache.cloudstack.storage.resource.LocalNfsSecondaryStorageResource.getRootDir(LocalNfsSecondaryStorageResource.java:85) >> at >> org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.downloadFromUrlToNfs(NfsSecondaryStorageResource.java:693) >> at >> org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.registerTemplateOnSwift(NfsSecondaryStorageResource.java:724) >> at >> org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.execute(NfsSecondaryStorageResource.java:772) >> at >> org.apache.cloudstack.storage.resource.NfsSecondaryStorageResource.executeRequest(NfsSecondaryStorageResource.java:208) >> at >> org.apache.cloudstack.storage.resource.LocalNfsSecondaryStorageResource.executeRequest(LocalNfsSecondaryStorageResource.java:78) >> at >> org.apache.cloudstack.storage.LocalHostEndpoint.sendMessage(LocalHostEndpoint.java:93) >> at >> org.apache.cloudstack.storage.LocalHostEndpoint$CmdRunner.runInContext(LocalHostEndpoint.java:110) >> at >> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49) >> at >> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56) >> at >> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103) >> at >> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53) >> at >> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46) >> at >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) >> at >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) >> at java.util.concurrent.FutureTask.run(FutureTask.java:166) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165) >> at >> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> at java.lang.Thread.run(Thread.java:701) >> 2014-04-10 16:26:23,360 DEBUG [o.a.c.s.r.NfsSecondaryStorageResource] >> (pool-10-thread-1:ctx-1a8aedc3) Failed to register template into swift >> com.cloud.utils.exception.CloudRuntimeException: GetRootDir for nfs:// >> 10.0.0.200/export/secondary failed due to >> com.cloud.utils.exception.CloudRuntimeException: Unable to set permissions >> for /var/cloudstack/mnt/secStorage/7b0ceb7f-ae60-3922-80e7-8836fec2dda8 due >> to chmod: modification des permissions de >> « /var/cloudstack/mnt/secStorage/7b0ceb7f-ae60-3922-80e7-8836fec2dda8 »: >> Opération non permise >> >> >> But that's what i don't understand, is that my nfs server 10.0.0.200 is >> already mounted and active for primary storage, and have virtual machine >> running on his storage. >> I set the same options in /etc/exports both for primary and secondary and >> i got the same rights and owner for primary and secondary parent directory. >> >> Where am i wrong ? >> >> >> Thanks for your help. >> >> Regards, Benoit. >> >> >> 2014-04-09 17:01 GMT+02:00 Min Chen <min.c...@citrix.com>: >> >> Sanjeev did swift as secondary storage in 4.2, maybe he can shed some >>> light on this. >>> >>> Thanks >>> -min >>> >>> Sent from my iPhone >>> >>> > On Apr 9, 2014, at 8:37 AM, "benoit lair" <kurushi4...@gmail.com> >>> wrote: >>> > >>> > Hello Pierre, >>> > >>> > That's what i'm trying to, but no success. >>> > >>> > I can't find anything about this in the docs. >>> > >>> > I've already defined my zone, pod, cluster, server, primary storage, >>> swift >>> > secondary storage, defined my secondary nfs staging store, but no way >>> to >>> > have the templates available onto the secondary staging store (just the >>> > system vm one downloaded with the mgmt server cli commande line), i >>> kept a >>> > look at my swift proxy server, but i never see any incoming connection >>> from >>> > cloudstack.. >>> > >>> > >>> > Anybody has an idea ? >>> > >>> > Thanks for any help. >>> > >>> > Regards, Benoit. >>> > >>> > >>> > 2014-04-03 16:00 GMT+02:00 Pierre-Luc Dion <pd...@cloudops.com>: >>> > >>> >> Does anyone tried and successfully use swift as Secondary Storage? >>> >> >>> >> >>> >> >>> >> >>> >> Pierre-Luc Dion >>> >> Architecte de Solution Cloud | Cloud Solutions Architect >>> >> 514-447-3456, 1101 >>> >> - - - >>> >> >>> >> *CloudOps*420 rue Guy >>> >> Montréal QC H3J 1S6 >>> >> www.cloudops.com >>> >> @CloudOps_ >>> >> >>> >> >> >