We are trying to use swift as secondary storage. so far it seams to work with acs4.3 but not acs 4.4.x.
i've just filled 2 jira issues CLOUDSTACK-7343 and CLOUDSTACK-7342 related to swift in 4.4.1. I'm curious to know how it end up on your side Benoit ? also, is their any plan to support https ? from 4.3 UI, look like it only support http access to swift and api v1.0. Thanks, *Pierre-Luc DION* Architecte de Solution Cloud | Cloud Solutions Architect t 855.652.5683 *CloudOps* Votre partenaire infonuagique* | *Cloud Solutions Experts 420 rue Guy *|* Montreal *|* Quebec *|* H3J 1S6 w cloudops.com *|* tw @CloudOps_ On Fri, Apr 18, 2014 at 5:06 AM, benoit lair <[email protected]> wrote: > Hello folks, > > > It is good for me! I had a wrong acl from my wan public network, so it > couldn't connect to my nfs staging store. > > Opened http access and nfs access, and so now swift is mounted into my ssvm > vm. > > Thanks for your lights. > > > Regards, Benoit. > > > 2014-04-18 0:09 GMT+02:00 benoit lair <[email protected]>: > > > @Ilya, > > > > I don't have access to my poc (not at the office tonight), i will verify > > this tomorrow, but i remember not have seen any nfs share mounted on the > > ssvm vm. > > So the ssvm is supposed to mount the swift storage as an abstract nfs > > share, how is it achieved ? is cloudfuse used for this ? > > > > @Sanjeev, > > > > You mean that i need to re run cloud-install-sys-tmplt from mgmt server > > against my secondary staging nfs store ? > > > > > > Thanks a lot four your responses folks. > > > > > > > > > > > > 2014-04-17 19:03 GMT+02:00 Sanjeev Neelarapu < > [email protected] > > >: > > > > Benoit, > >> > >> Since your system vms are ready, try to register a new template and see > >> if it works. If you still face issues in uploading the template to > Swift, > >> please look at the ssvm logs /var/log/cloud.log > >> > >> -Sanjeev > >> > >> > >> -----Original Message----- > >> From: ilya musayev [mailto:[email protected]] > >> Sent: Thursday, April 17, 2014 8:06 AM > >> To: [email protected] > >> Subject: Re: Swift as Secondary Storage > >> > >> Benoit, > >> > >> Few things i would have done. > >> > >> 1) Take a look into mysql db there are some tables with template name in > >> them. You can see the state and if they are referenced. > >> 2) Perhaps template is not marked as public and you cant see it? > >> 3) SSH to SSVM via a private key, goto /var/log/cloud/ and review the > log > >> file for any abnormalities. Also run a mount and df command on SSVM to > see > >> if Swift is abstracted and mounted through NFS. > >> > >> Regards > >> ilya > >> > >> > >> On 4/17/14, 11:01 AM, benoit lair wrote: > >> > The state of my acs 4.3 is the following : > >> > > >> > 1 zone, 1 pod, 1 cluster, 1 xenserver 6.2, 1 nfs primary storage OK > >> > created 1 swift secondary storage pointing to my swift proxy node, OK, > >> > swift cli and cyberduck OK created a secondary staging store with a > >> > nfs server already containing the system vm template. > >> > > >> > The creation of the secondary staging store triggers the swift push > >> > from the acs mgmt server to the swift proxy node, the template is well > >> > uploaded, can see it on my object storage swift node. > >> > > >> > Now, i got on the web UI > templates, the 2 templates, system vm and > >> > centos > >> > 5.6 vm template but there are both not available although i have my > >> > cpvm and ssvm vms created and launched... > >> > > >> > How to get my zone operationnal and being able to create a vm with > >> > centos > >> > 5.6 vm template ? > >> > > >> > > >> > Thanks for your help. > >> > > >> > Regards, Benoit. > >> > > >> > > >> > 2014-04-17 15:51 GMT+02:00 benoit lair <[email protected]>: > >> > > >> >> 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 <[email protected]>: > >> >> > >> >> 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 <[email protected]>: > >> >>> > >> >>> 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 <[email protected]>: > >> >>>> > >> >>>> 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" <[email protected] > > > >> >>>>> 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 <[email protected]>: > >> >>>>>> > >> >>>>>>> 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_ > >> >>>>>>> > >> >>>> > >> > >> > > >
