Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 20574965C for ; Mon, 19 Mar 2012 14:42:59 +0000 (UTC) Received: (qmail 46026 invoked by uid 500); 19 Mar 2012 14:42:59 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 46005 invoked by uid 500); 19 Mar 2012 14:42:59 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 45995 invoked by uid 99); 19 Mar 2012 14:42:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2012 14:42:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Mar 2012 14:42:58 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 73FA528D5C for ; Mon, 19 Mar 2012 14:42:37 +0000 (UTC) Date: Mon, 19 Mar 2012 14:42:37 +0000 (UTC) From: "Ronelle Landy (Created) (JIRA)" To: dev@deltacloud.apache.org Message-ID: <559533549.31498.1332168157476.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (DTACLOUD-162) Return codes for rebooting an instance are not consistent MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org 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