
--Apple-Mail=_943A44EE-DB36-4E2B-A9A5-F7AE7F010E4A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I'm trying to list domains using the api, and I'm getting a strange = message :
GET /api/storagedomains;case_sensitive=3DTrue HTTP/1.1 ... Version: 3 Content-Type: application/xml Accept: application/xml Filter: False Prefer: persistent-auth Content-Length: 0
< HTTP/1.1 404 Not Found < <?xml version=3D"1.0" encoding=3D"UTF-8" standalone=3D"yes"?> < <fault> < <reason>Operation Failed</reason> < <detail>Entity not found: Storage server connection: = id=3D6860d96f-557e-4d82-a209-401d72bd6e16</detail> < </fault> And in engine.log, I got: Before: 2016-05-30 13:07:31,017 INFO = [org.ovirt.engine.core.vdsbroker.vdsbroker.DisconnectStorageServerVDSComma= nd] (default task-25) [4c2e1822] START, = DisconnectStorageServerVDSCommand(HostName =3D ng320, = StorageServerConnectionManagementVDSParameters:{runAsync=3D'true', = hostId=3D'4426ed42-0805-43b1-92d9-3e5a680eaf38', = storagePoolId=3D'00000000-0000-0000-0000-000000000000', = storageType=3D'LOCALFS', = connectionList=3D'[StorageServerConnections:{id=3D'6860d96f-557e-4d82-a209= -401d72bd6e16', connection=3D'/data/ovirt/data', iqn=3D'null', = vfsType=3D'null', mountOptions=3D'null', nfsVersion=3D'null', = nfsRetrans=3D'null', nfsTimeo=3D'null', iface=3D'null', = netIfaceName=3D'null'}]'}), log id: 63f890 ... 2016-05-30 13:07:32,312 INFO = [org.ovirt.engine.core.vdsbroker.vdsbroker.DisconnectStorageServerVDSComma= nd] (default task-25) [4c2e1822] FINISH, = DisconnectStorageServerVDSCommand, return: = {6860d96f-557e-4d82-a209-401d72bd6e16=3D0}, log id: 63f890 When I run the command: 2016-05-31 15:34:11,259 ERROR = [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default = task-13) [] Operation Failed: Entity not found: Storage server = connection: id=3D6860d96f-557e-4d82-a209-401d72bd6e16 What's wrong ?= --Apple-Mail=_943A44EE-DB36-4E2B-A9A5-F7AE7F010E4A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = class=3D"">I'm trying to list domains using the api, and I'm getting a = strange message :<div class=3D""><br class=3D""></div><div class=3D""><div= style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" = style=3D"font-size: 11px;" class=3D"">> GET = /api/storagedomains;case_sensitive=3DTrue = HTTP/1.1</font></div></div><div class=3D""><font face=3D"Menlo" = style=3D"font-size: 11px;" class=3D"">...</font></div><div class=3D""><div= style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" = style=3D"font-size: 11px;" class=3D"">> Version: 3</font></div><div = style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" style=3D"font-size:= 11px;" class=3D"">> Content-Type: application/xml</font></div><div = style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" style=3D"font-size:= 11px;" class=3D"">> Accept: application/xml</font></div><div = style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" style=3D"font-size:= 11px;" class=3D"">> Filter: False</font></div><div style=3D"margin: = 0px;" class=3D""><font face=3D"Menlo" style=3D"font-size: 11px;" = class=3D"">> Prefer: persistent-auth</font></div><div style=3D"margin: = 0px;" class=3D""><font face=3D"Menlo" style=3D"font-size: 11px;" = class=3D"">> Content-Length: 0</font></div></div><div class=3D""><font = face=3D"Menlo" style=3D"font-size: 11px;" class=3D""><br = class=3D""></font></div><div class=3D""><div style=3D"margin: 0px;" = class=3D""><font face=3D"Menlo" style=3D"font-size: 11px;" class=3D""><= HTTP/1.1 404 Not Found</font></div></div><div class=3D""><div = style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" style=3D"font-size:= 11px;" class=3D"">< <?xml version=3D"1.0" encoding=3D"UTF-8" = standalone=3D"yes"?></font></div><div style=3D"margin: 0px;" = class=3D""><font face=3D"Menlo" style=3D"font-size: 11px;" class=3D""><= <fault></font></div><div style=3D"margin: 0px;" class=3D""><font = face=3D"Menlo" style=3D"font-size: 11px;" class=3D"">< = <reason>Operation Failed</reason></font></div><div = style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" style=3D"font-size:= 11px;" class=3D"">< <detail>Entity not found: = Storage server connection: = id=3D6860d96f-557e-4d82-a209-401d72bd6e16</detail></font></div><div = style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" style=3D"font-size:= 11px;" class=3D"">< </fault></font></div></div><div = class=3D""><br class=3D""></div><div class=3D"">And in engine.log, I = got:</div><div class=3D"">Before:</div><div class=3D""><font = face=3D"Menlo" class=3D""><span style=3D"font-size: 11px;" = class=3D"">2016-05-30 13:07:31,017 = INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.DisconnectStora= geServerVDSCommand] (default task-25) [4c2e1822] START, = DisconnectStorageServerVDSCommand(HostName =3D ng320, = StorageServerConnectionManagementVDSParameters:{runAsync=3D'true', ho= stId=3D'4426ed42-0805-43b1-92d9-3e5a680eaf38', = storagePoolId=3D'00000000-0000-0000-0000-000000000000', = storageType=3D'LOCALFS', connectionList=3D'[StorageServerConnections:= {id=3D'6860d96f-557e-4d82-a209-401d72bd6e16', = connection=3D'/data/ovirt/data', iqn=3D'null', vfsType=3D'null', = mountOptions=3D'null', nfsVersion=3D'null', nfsRetrans=3D'null', = nfsTimeo=3D'null', iface=3D'null', netIfaceName=3D'null'}]'}), = log id: 63f890<br class=3D"">...</span></font></div><div = class=3D""><div style=3D"margin: 0px; font-size: 11px; font-family: = Menlo;" class=3D"">2016-05-30 13:07:32,312 INFO = [org.ovirt.engine.core.vdsbroker.vdsbroker.DisconnectStorageServerVDSComma= nd] (default task-25) [4c2e1822] FINISH, = DisconnectStorageServerVDSCommand, return: = {6860d96f-557e-4d82-a209-401d72bd6e16=3D0}, log id: 63f890</div><div = style=3D"margin: 0px; font-size: 11px; font-family: Menlo;" class=3D""><br= class=3D""></div><div style=3D"margin: 0px;" class=3D"">When I run the = command:</div><div style=3D"margin: 0px;" class=3D""><font face=3D"Menlo" = style=3D"font-size: 11px;" class=3D"">2016-05-31 15:34:11,259 ERROR = [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default = task-13) [] Operation Failed: Entity not found: Storage server = connection: = id=3D6860d96f-557e-4d82-a209-401d72bd6e16</font></div></div><div = style=3D"margin: 0px;" class=3D""><br class=3D""></div><div = style=3D"margin: 0px;" class=3D"">What's wrong ?</div></body></html>= --Apple-Mail=_943A44EE-DB36-4E2B-A9A5-F7AE7F010E4A--
participants (1)
-
Fabrice Bacchella