[Users] Cannot delete storage connection
sirin
artem at e-inet.ru
Sat Feb 22 18:28:54 UTC 2014
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 at rhevhst ~]# curl -X GET -H "Accept: application/xml" -u admin at internal:<pass> https://192.168.0.170/api/storageconnections/d94d9341-6116-4b1a-94c5-5c3327aa1b09 --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 at rhevhst ~]#
[root at rhevhst ~]# curl -X DELETE -H "Accept: application/xml" -u admin at internal:<pass> https://192.168.0.170/api/storageconnections/d94d9341-6116-4b1a-94c5-5c3327aa1b09 --insecure
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><fault><reason>Operation Failed</reason><detail>Entity not found: null</detail></fault>
[root at rhevhst ~]#
how i can remove connection?! this is bug?
Artem
More information about the Users
mailing list