Sounds like a bug to me.
Can you please attach engine.log and vdsm.log?
----- Original Message -----
From: "sirin" <artem(a)e-inet.ru>
To: users(a)ovirt.org
Sent: Saturday, February 22, 2014 8:28:54 PM
Subject: [Users] Cannot delete storage connection
Hi all,
i have next connection
<storage_connections>
<storage_connection
href="/api/storageconnections/d94d9341-6116-4b1a-94c5-5c3327aa1b09"
id="d94d9341-6116-4b1a-94c5-5c3327aa1b09»>
<address>192.168.0.171</address>
<type>nfs</type>
<path>/srv/lstore/vm</path>
</storage_connection>
<storage_connection
href="/api/storageconnections/67539ba5-9b6d-46df-8c96-4acd3f212f4a"
id="67539ba5-9b6d-46df-8c96-4acd3f212f4a»>
<address>rhevm.cebra.lab</address>
<type>nfs</type>
<path>/var/lib/exports/iso</path>
</storage_connection>
<storage_connection
href="/api/storageconnections/fdc92419-b278-4b11-9eba-f68fd4914132"
id="fdc92419-b278-4b11-9eba-f68fd4914132»>
<address>192.168.0.171</address>
<type>nfs</type>
<path>/srv/store/vm</path>
</storage_connection>
<storage_connection
href="/api/storageconnections/92fc6cf3-17b1-4b69-af80-5782270137ed"
id="92fc6cf3-17b1-4b69-af80-5782270137ed»>
<address>192.168.0.171</address>
<type>nfs</type>
<path>/srv/bstore/vm</path>
</storage_connection>
</storage_connections>
I want to remove this connection id="d94d9341-6116-4b1a-94c5-5c3327aa1b09»
but… fail
[RHEVM shell (connected)]# show storageconnection
d94d9341-6116-4b1a-94c5-5c3327aa1b09
id : d94d9341-6116-4b1a-94c5-5c3327aa1b09
address: 192.168.0.171
path : /srv/lstore/vm
type : nfs
[RHEVM shell (connected)]# remove storageconnection
d94d9341-6116-4b1a-94c5-5c3327aa1b09
error:
status: 404
reason: Not Found
detail: Entity not found: null
[RHEVM shell (connected)]# show storageconnection
d94d9341-6116-4b1a-94c5-5c3327aa1b09
id : d94d9341-6116-4b1a-94c5-5c3327aa1b09
address: 192.168.0.171
path : /srv/lstore/vm
type : nfs
okay… i use curl with DELETE
[root@rhevhst ~]# curl -X GET -H "Accept: application/xml" -u
admin@internal:<pass>
https://192.168.0.170/api/storageconnections/d94d9341-6116-4b1a-94c5-5c33...
--insecure
<?xml version="1.0" encoding="UTF-8"
standalone="yes"?>
<storage_connection
href="/api/storageconnections/d94d9341-6116-4b1a-94c5-5c3327aa1b09"
id="d94d9341-6116-4b1a-94c5-5c3327aa1b09">
<address>192.168.0.171</address>
<type>nfs</type>
<path>/srv/lstore/vm</path>
</storage_connection>
[root@rhevhst ~]#
[root@rhevhst ~]# curl -X DELETE -H "Accept: application/xml" -u
admin@internal:<pass>
https://192.168.0.170/api/storageconnections/d94d9341-6116-4b1a-94c5-5c33...
--insecure
<?xml version="1.0" encoding="UTF-8"
standalone="yes"?><fault><reason>Operation
Failed</reason><detail>Entity not
found: null</detail></fault>
[root@rhevhst ~]#
how i can remove connection?! this is bug?
Artem
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users