[Users] Deleting Storage Connection

Elad Ben Aharon ebenahar at redhat.com
Wed Jan 8 12:08:57 UTC 2014


As Itamar said, there is a nicer way to do it.


In order to delete a connection, you can do it also via REST-API.
You'll need a plugin for your browser (I'm using Rest client for Firefox).

Go to storageconnection under api using 'GET':

https://hostname:443/api/storageconnections

Under that, you'll see your old ISO domain connection (by UUID), use DELETE, in order to remove it.

Just remember, you'll be able to remove a connection only if it's not used by any domain.

Hope it helped. 

Elad

----- Original Message -----
From: "Itamar Heim" <iheim at redhat.com>
To: "Elad Ben Aharon" <ebenahar at redhat.com>, "Nauman Abbas" <nauman.abbas at seecs.edu.pk>, "Alissa Bonas" <abonas at redhat.com>
Cc: users at ovirt.org
Sent: Wednesday, January 8, 2014 12:35:29 PM
Subject: Re: [Users] Deleting Storage Connection

On 01/08/2014 11:45 AM, Elad Ben Aharon wrote:
> Just forgot to mention that after the change in DB, you will have to restart ovirt-engine service so the changes will take effect.
>

if this is 3.3, why hack the db and not use the edit connection option?
(I think you need 3.3.1 for it to work)

> ----- Original Message -----
> From: "Elad Ben Aharon" <ebenahar at redhat.com>
> To: "Nauman Abbas" <nauman.abbas at seecs.edu.pk>
> Cc: users at ovirt.org
> Sent: Wednesday, January 8, 2014 11:38:44 AM
> Subject: Re: [Users] Deleting Storage Connection
>
> Hi,
>
> You will have to delete the storage connection from 2 tables in the data base.
> The 2 tables are:
>
> 1) storage_server_connections
> 2) For file storage, storage_domain_dynamic table
> For iSCSI, lun_storage_server_connection_map table.
>
>
>
> ----- Original Message -----
> From: "Nauman Abbas" <nauman.abbas at seecs.edu.pk>
> To: users at ovirt.org
> Sent: Wednesday, January 8, 2014 6:57:32 AM
> Subject: [Users] Deleting Storage Connection
>
> Hello all
>
> I want to delete a storage connection since I'm adding an ISO Domain and it gives me the error "Storage connection already exists.". I'm trying to go for this:
>
> http://www.ovirt.org/Features/Manage_Storage_Connections#Delete_connection_.28DELETE.29
>
> But it just shows me some link and some script. I don't know how use it. A little guidance on it would be great. Sorry for being a noob.
>
> Regards
>
> Nauman Abbas
> Assistant System Administrator (LMS),
> Room No. A-207, SEECS,
> National University of Sciences & Technology,
> + 92 321 5359946
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>




More information about the Users mailing list