
This is a multi-part message in MIME format. --------------010201080400060701010904 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 01.02.2014 23:12, Itamar Heim пишет:
On 02/01/2014 09:58 PM, Alexandr wrote:
01.02.2014 21:57, Meital Bourvine пишет:
I think that it should be something like this:
Method: PUT
URL:https://<IP>/api/storageconnections/<ID>
Body: <storage_connection> <address></address> <type></type> <port></port> <target></target> </storage_connection>
(Add the correct details to the body.
----- Original Message -----
From: "Itamar Heim"<iheim@redhat.com> To: "Alexandr"<shuriku@shurik.kiev.ua>,users@ovirt.org Sent: Saturday, February 1, 2014 7:58:56 PM Subject: Re: [Users] Reattach storage domain
On 02/01/2014 06:56 PM, Alexandr wrote:
Thank you. Can you provide me more detailed steps, I'm not familiar with rest api :( sorry i can't give more details right now: manage connection details: http://www.ovirt.org/Features/Manage_Storage_Connections
rest api (and other things): https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtua...
01.02.2014 19:51, Itamar Heim пишет:
On 02/01/2014 06:38 PM, Alexandr wrote: > Hello! > > Unfortunately my master storage domain (gluster) is dead. I setup > another gluster-storage and attach it to the ovirt. Hostname, > path and > volume name are same as old ones. Then I restored from tar > archive all > files. But I cannot activate master domain, operation failed and > domain > status remains "inactive". I see - it mounted on nodes: > > vms02.lis.ua:STORAGE on > /rhev/data-center/mnt/glusterSD/vms02.lis.ua:STORAGE > a > I attached engine.log, can someone provide me recovery steps? > > P.S. Sorry for my english > > > _______________________________________________ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > the right way to do this would be to restore it not via engine, then use the rest api to edit the storage domain connection (mount) in the engine.
Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
I tried to change it via ovirt-shell and receive an error:
[oVirt shell (connected)]# update storageconnection 4a1d8b07-f393-4134-86cc-4f46145cca2b --address vms02.lis.ua --path STORAGE
error: status: 400 reason: Bad Request detail: Cannot edit Storage Connection. Storage connection parameters can be edited only for NFS, Posix, local or iSCSI data domains.
alisa/derez - any reason we don't support edit connection for gluster sd? I still cannot solve my problem with a storage, and now I have started most important virtual machines directly via libvirt and set in domain xml configuration file disk configuration to
disk type='file' device='disk'> <driver name='qemu' type='raw'/> <source file='/rhev/data-center/mnt/glusterSD/vms02.lis.ua:STORAGE/7f9709c1-3ab6-4af8-9e58-955ef7c9452e/images/fd0bf58e-3ba1-428c-a3e2-7e5410d6bc75/4ebf1396-28ac-4851-8b86-e0f1085f735e'/> Now I have two questions: 1. If setup fresh ovirt installation how can I attach an existing gluster storage and import disks? Are http://www.ovirt.org/Features/Import_an_existing_Storage_Domain and http://www.ovirt.org/Features/Domain_Scan already implemented in 3.3.2? or 2. May be I can move these disk images into a new SD? --------------010201080400060701010904 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <html> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <div class="moz-cite-prefix">01.02.2014 23:12, Itamar Heim пишет:<br> </div> <blockquote cite="mid:52ED6358.7060203@redhat.com" type="cite">On 02/01/2014 09:58 PM, Alexandr wrote: <br> <blockquote type="cite">01.02.2014 21:57, Meital Bourvine пишет: <br> <blockquote type="cite">I think that it should be something like this: <br> <br> Method: PUT <br> <br> URL:<a class="moz-txt-link-freetext" href="https://">https://</a><IP>/api/storageconnections/<ID> <br> <br> Body: <br> <storage_connection> <br> <address></address> <br> <type></type> <br> <port></port> <br> <target></target> <br> </storage_connection> <br> <br> (Add the correct details to the body. <br> <br> ----- Original Message ----- <br> <blockquote type="cite">From: "Itamar Heim"<a class="moz-txt-link-rfc2396E" href="mailto:iheim@redhat.com"><iheim@redhat.com></a> <br> To: "Alexandr"<a class="moz-txt-link-rfc2396E" href="mailto:shuriku@shurik.kiev.ua"><shuriku@shurik.kiev.ua></a>,<a class="moz-txt-link-abbreviated" href="mailto:users@ovirt.org">users@ovirt.org</a> <br> Sent: Saturday, February 1, 2014 7:58:56 PM <br> Subject: Re: [Users] Reattach storage domain <br> <br> On 02/01/2014 06:56 PM, Alexandr wrote: <br> <blockquote type="cite">Thank you. Can you provide me more detailed steps, I'm not familiar with <br> rest api :( <br> </blockquote> sorry i can't give more details right now: <br> manage connection details: <br> <a class="moz-txt-link-freetext" href="http://www.ovirt.org/Features/Manage_Storage_Connections">http://www.ovirt.org/Features/Manage_Storage_Connections</a> <br> <br> rest api (and other things): <br> <a class="moz-txt-link-freetext" href="https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.3/html-single/Developer_Guide/index.html">https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.3/html-single/Developer_Guide/index.html</a> <br> <br> <br> <blockquote type="cite">01.02.2014 19:51, Itamar Heim пишет: <br> <blockquote type="cite">On 02/01/2014 06:38 PM, Alexandr wrote: <br> <blockquote type="cite">Hello! <br> <br> Unfortunately my master storage domain (gluster) is dead. I setup <br> another gluster-storage and attach it to the ovirt. Hostname, path and <br> volume name are same as old ones. Then I restored from tar archive all <br> files. But I cannot activate master domain, operation failed and domain <br> status remains "inactive". I see - it mounted on nodes: <br> <br> vms02.lis.ua:STORAGE on <br> /rhev/data-center/mnt/glusterSD/vms02.lis.ua:STORAGE <br> a <br> I attached engine.log, can someone provide me recovery steps? <br> <br> P.S. Sorry for my english <br> <br> <br> _______________________________________________ <br> Users mailing list <br> <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <br> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> <br> <br> </blockquote> the right way to do this would be to restore it not via engine, then <br> use the rest api to edit the storage domain connection (mount) in the <br> engine. <br> </blockquote> </blockquote> _______________________________________________ <br> Users mailing list <br> <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <br> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> <br> <br> </blockquote> </blockquote> I tried to change it via ovirt-shell and receive an error: <br> <br> [oVirt shell (connected)]# update storageconnection <br> 4a1d8b07-f393-4134-86cc-4f46145cca2b --address vms02.lis.ua --path STORAGE <br> <br> error: <br> status: 400 <br> reason: Bad Request <br> detail: Cannot edit Storage Connection. Storage connection parameters <br> can be edited only for NFS, Posix, local or iSCSI data domains. <br> </blockquote> <br> alisa/derez - any reason we don't support edit connection for gluster sd? <br> </blockquote> I still cannot solve my problem with a storage, and now I have started most important virtual machines directly via libvirt and set in domain xml configuration file disk configuration to <br> <br> <small>disk type='file' device='disk'><br> <driver name='qemu' type='raw'/><br> <source file='/rhev/data-center/mnt/glusterSD/vms02.lis.ua:STORAGE/7f9709c1-3ab6-4af8-9e58-955ef7c9452e/images/fd0bf58e-3ba1-428c-a3e2-7e5410d6bc75/4ebf1396-28ac-4851-8b86-e0f1085f735e'/></small><br> <br> Now I have two questions:<br> <br> 1. If setup fresh ovirt installation how can I attach an existing gluster storage and import disks? Are <a class="moz-txt-link-freetext" href="http://www.ovirt.org/Features/Import_an_existing_Storage_Domain">http://www.ovirt.org/Features/Import_an_existing_Storage_Domain</a> and <a class="moz-txt-link-freetext" href="http://www.ovirt.org/Features/Domain_Scan">http://www.ovirt.org/Features/Domain_Scan</a> already implemented in 3.3.2?<br> or<br> 2. May be I can move these disk images into a new SD?<br> <br> </body> </html> --------------010201080400060701010904--