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 DFB5BE5B5 for ; Mon, 4 Feb 2013 20:28:12 +0000 (UTC) Received: (qmail 65491 invoked by uid 500); 4 Feb 2013 20:28:12 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 65474 invoked by uid 500); 4 Feb 2013 20:28:12 -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 65465 invoked by uid 99); 4 Feb 2013 20:28:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2013 20:28:12 +0000 Date: Mon, 4 Feb 2013 20:28:12 +0000 (UTC) From: "Ronelle Landy (JIRA)" To: dev@deltacloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DTACLOUD-447) RFE: InitialStates capability is advertised but adding an initialState value to a machine create op has no effect MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DTACLOUD-447?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13= 570598#comment-13570598 ]=20 Ronelle Landy commented on DTACLOUD-447: ---------------------------------------- The test patch applies and the fixes are definitely an improvement - keepin= g them all :). I'm not resubmitting the test to list until we have the code= sorted. Right now, the test fails - and fails in the correct place, but wo= uld like to submit the working code patch and the test fixes together. =20 > RFE: InitialStates capability is advertised but adding an initialState va= lue to a machine create op has no effect > -------------------------------------------------------------------------= ---------------------------------------- > > Key: DTACLOUD-447 > URL: https://issues.apache.org/jira/browse/DTACLOUD-447 > Project: DeltaCloud > Issue Type: Improvement > Components: CIMI/Frontend > Environment: CIMI Frontend > Mock driver > Deltacloud commit version: 897e054424c6304d2d455b6913bf47dc188e41cd > Reporter: Ronelle Landy > Assignee: Marios Andreou > Attachments: 0001-CIMI-implement-initial_states-capability-in-moc= k-dri.patch, 0001-CIMI-Tests-adding-Resource-Metadata-test-part-4-test.patc= h, 0001-RMD4-test-edits.patch > > > Note that in the example below, even though the initialState is passed as= 'STOPPED', the machine is created with a "STARTED' state. > curl -v -X POST -H "Content-Type:application/xml" -d ' = myMachine2 STOPPED ' --user "un:pw= " "http://localhost:3001/cimi/machines" > .... > < HTTP/1.1 201 Created > < Content-Type: application/json > < Location: http://localhost:3001/cimi/machines/inst4 > < CIMI-Specification-Version: 1.0.1 > < Content-Length: 974 > < ETag: 0b17c4b65ab5a750732a34731ae63a36 > < Cache-Control: max-age=3D0, private, must-revalidate > < Date: Wed, 30 Jan 2013 17:24:22 GMT > < Connection: keep-alive > < Server: thin 1.5.0 codename Knife > <=20 > * Connection #0 to host localhost left intact > {"id":"http://localhost:3001/cimi/machines/inst4","name":" myMachine2 ","= description":"No description set for Machine myMachine2 ","created":"2013-= 01-30T12:24:22-05:00","properties":{"machine_image":"http://localhost:3001/= cimi/machine_images/img2","credential":"http://localhost:3001/cimi/credenti= als"},"realm":"us","machineImage":{"href":"http://localhost:3001/cimi/machi= ne_images/img2"},"state":"STARTED","cpu":"1","memory":1782579,"disks":{"hre= f":"http://localhost:3001/cimi/machines/inst4/disks"},"volumes":{"href":"ht= tp://localhost:3001/cimi/machines/inst4/volumes"},"operations":[{"rel":"htt= p://schemas.dmtf.org/cimi/1/action/restart","href":"http://localhost:3001/c= imi/machines/inst4/restart"},{"rel":"http://schemas.dmtf.org/cimi/1/action/= stop","href":"http://localhost:3001/cimi/machines/inst4/stop"},{"rel":"http= ://schemas.dmtf.org/cimi/1/action/capture","href":"http://localhost:3001/ci= mi/machine_images"}],"resourceURI":"http://schemas.dmtf.org/cimi/1/Machine"= }* Closing connection #0 > ... from GET /cimi/machines > > http://localhost:3001/cimi/machines/inst4 > myMachine2 > No description set for Machine myMachine2 > 2013-01-30T12:25:44-05:00 > http://localhost:3001/cimi/machine_im= ages/img2 > http://localhost:3001/cimi/credentials > us > > STARTED > 1 > 1782579 > > > > > > > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira