This is a multi-part message in MIME format.
--------------030000040307030505060207
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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(a)redhat.com>
> To: "Alexandr" <shuriku(a)shurik.kiev.ua>, users(a)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_Vir...
>
>
>> 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(a)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(a)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.
--------------030000040307030505060207
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 21:57, Meital Bourvine
пишет:<br>
</div>
<blockquote
cite="mid:1126371345.3012583.1391284622988.JavaMail.root@redhat.com"
type="cite">
<pre wrap="">I think that it should be something like this:
Method: PUT
URL: <a class="moz-txt-link-freetext"
href="https://">https://</a><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 -----
</pre>
<blockquote type="cite">
<pre wrap="">From: "Itamar Heim" <a
class="moz-txt-link-rfc2396E"
href="mailto:iheim@redhat.com"><iheim@redhat.com></a>
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>
Sent: Saturday, February 1, 2014 7:58:56 PM
Subject: Re: [Users] Reattach storage domain
On 02/01/2014 06:56 PM, Alexandr wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Thank you. Can you provide me more detailed steps,
I'm not familiar with
rest api :(
</pre>
</blockquote>
<pre wrap="">
sorry i can't give more details right now:
manage connection details:
<a class="moz-txt-link-freetext"
href="http://www.ovirt.org/Features/Manage_Storage_Connections"...
rest api (and other things):
<a class="moz-txt-link-freetext"
href="https://access.redhat.com/site/documentation/en-US/Red_Hat_Ent...
</pre>
<blockquote type="cite">
<pre wrap="">
01.02.2014 19:51, Itamar Heim пишет:
</pre>
<blockquote type="cite">
<pre wrap="">On 02/01/2014 06:38 PM, Alexandr wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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
<a class="moz-txt-link-abbreviated"
href="mailto:Users@ovirt.org">Users@ovirt.org</a>
<a class="moz-txt-link-freetext"
href="http://lists.ovirt.org/mailman/listinfo/users">http://...
</pre>
</blockquote>
<pre wrap="">
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.
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated"
href="mailto:Users@ovirt.org">Users@ovirt.org</a>
<a class="moz-txt-link-freetext"
href="http://lists.ovirt.org/mailman/listinfo/users">http://...
</pre>
</blockquote>
</blockquote>
I tried to change it via ovirt-shell and receive an error:<small><br>
<br>
[oVirt shell (connected)]# update storageconnection
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 can be edited only for NFS, Posix, local or iSCSI data
domains.</small><br>
</body>
</html>
--------------030000040307030505060207--