deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronelle Landy (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DTACLOUD-162) Return codes for rebooting an instance are not consistent
Date Mon, 19 Mar 2012 14:42:37 GMT
Return codes for rebooting an instance are not consistent
---------------------------------------------------------

                 Key: DTACLOUD-162
                 URL: https://issues.apache.org/jira/browse/DTACLOUD-162
             Project: DeltaCloud
          Issue Type: Bug
          Components: Server
         Environment: deltacloud-core-0.5.0/5
rhel 6.2, fedora 16
vsphere 4.x
            Reporter: Ronelle Landy
            Assignee: David Lutterkort


For ec2, (test code copied below), the return code for rebooting an instance is 200:

			resp = restClient.post( path: '/api/instances/' + InstanceIds[i] + '/reboot',
					contentType: ContentType.XML, headers: [Accept: 'application/xml'],
					requestContentType : ContentType.URLENC)

			resp.status == 200


For vsphere, the return code for rebooting an instance is 204: Copying the test output showing
the return codes for vsphere:

201203191004:17.866 - FINE: >> POST /api/instances/tI2/reboot HTTP/1.1 (org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader)
201203191004:17.866 - FINE: >> Accept: application/xml (org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader)
201203191004:17.866 - FINE: >> Content-Length: 0 (org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader)
201203191004:17.866 - FINE: >> Host: ibm-x3200m3-01.rhts.eng.bos.redhat.com:3003 (org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader)
201203191004:17.866 - FINE: >> Connection: Keep-Alive (org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader)
201203191004:17.866 - FINE: >> Authorization: Basic QWRtaW5pc3RyYXRvcjpSM2RoYXQh (org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader)
201203191004:17.866 - FINE: >> Accept-Encoding: gzip,deflate (org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader)
201203191004:19.145 - FINE: << "HTTP/1.1 204 No Content[\r][\n]" (org.apache.http.impl.conn.Wire.wire)
201203191004:19.145 - FINE: << "Server: Apache-Deltacloud/0.5.0[\r][\n]" (org.apache.http.impl.conn.Wire.wire)
201203191004:19.146 - FINE: << "Date: Mon, 19 Mar 2012 14:04:19 GMT[\r][\n]" (org.apache.http.impl.conn.Wire.wire)
201203191004:19.146 - FINE: << "X-Runtime: 1.181366[\r][\n]" (org.apache.http.impl.conn.Wire.wire)
201203191004:19.146 - FINE: << "Connection: close[\r][\n]" (org.apache.http.impl.conn.Wire.wire)
201203191004:19.146 - FINE: << "[\r][\n]" (org.apache.http.impl.conn.Wire.wire)
201203191004:19.147 - FINE: Receiving response: HTTP/1.1 204 No Content (org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader)
201203191004:19.147 - FINE: << HTTP/1.1 204 No Content (org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader)
201203191004:19.147 - FINE: << Server: Apache-Deltacloud/0.5.0 (org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader)
201203191004:19.147 - FINE: << Date: Mon, 19 Mar 2012 14:04:19 GMT (org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader)
201203191004:19.148 - FINE: << X-Runtime: 1.181366 (org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader)
201203191004:19.148 - FINE: << Connection: close (org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader)
201203191004:19.148 - FINE: Caching 'basic' auth scheme for http://ibm-x3200m3-01.rhts.eng.bos.redhat.com:3003
(org.apache.http.client.protocol.ResponseAuthCache.cache)
201203191004:19.149 - FINE: Releasing connection org.apache.http.impl.conn.SingleClientConnManager$ConnAdapter@8c5488
(org.apache.http.impl.conn.SingleClientConnManager.releaseConnection)
201203191004:19.149 - FINE: Released connection open but not reusable. (org.apache.http.impl.conn.SingleClientConnManager.releaseConnection)
201203191004:19.149 - FINE: Connection shut down (org.apache.http.impl.conn.DefaultClientConnection.shutdown)
201203191004:19.150 - FINE: Response code: 204; found handler: org.codehaus.groovy.runtime.MethodClosure@a966905
(groovyx.net.http.HTTPBuilder.doRequest)

Rebooting an instance is nor supported in rhevm.

According to Michal Fojtik, the code should be 202.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message