deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronelle Landy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DTACLOUD-411) CIMI frontend: Creating a new Machine entity in Mock driver doesn't seem to work
Date Fri, 04 Jan 2013 16:24:12 GMT

    [ https://issues.apache.org/jira/browse/DTACLOUD-411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13543987#comment-13543987
] 

Ronelle Landy commented on DTACLOUD-411:
----------------------------------------

I was able to create a new machine using the CIMI frontend and Mock provider (Deltacloud commit
version: a09578bcf16e391eebbe437ab934816e9cffbda8 ... see command and output copied below).

Can you paste the command you used to create the machine so that we can try reproduce it?
Thanks.

************

>> curl --user "un:pd" -X POST http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machines
-H "Content-Type: application/json" -d '{ "resourceURI": "http://schemas.dmtf.org/cimi/1/MachineCreate",
"name": "myMachine1", "description": "My very first machine", "machineTemplate": { "machineConfig":
{ "href": "http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machine_configurations/m1-large"
}, "machineImage": { "href": "http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machine_images/img3"
} } }'

{"id":"http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machines/inst8","name":"myMachine1","description":"My
very first machine","created":"2013-01-04T11:13:51-05:00","properties":{"machine_image":"http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machine_images/img3","credential":"http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/credentials"},"state":"STARTED","cpu":"1","memory":10485760,"disks":{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machines/inst8/disks"},"volumes":{"href":"http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machines/inst8/volumes"},"operations":[{"rel":"http://schemas.dmtf.org/cimi/1/action/restart","href":"http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machines/inst8/restart"},{"rel":"http://schemas.dmtf.org/cimi/1/action/stop","href":"http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machines/inst8/stop"},{"rel":"http://schemas.dmtf.org/cimi/1/action/capture","href":"http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machine_images"}],"resourceURI":"http://schemas.dmtf.org/cimi/1/Machine"}[rlandy@localhost
deltacloud]$ 
[rlandy@localhost deltacloud]$ 

Using /GET to confirm that the machine was created and started:

[rlandy@localhost deltacloud]$ curl -v -X GET --user "un:pd" http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machines/inst8?format=xml*
About to connect() to qe-blade-02.idm.lab.bos.redhat.com port 3001 (#0)
*   Trying 10.16.76.33... connected
* Connected to qe-blade-02.idm.lab.bos.redhat.com (10.16.76.33) port 3001 (#0)
* Server auth using Basic with user 'mockuser'
> GET /cimi/machines/inst8?format=xml HTTP/1.1
> Authorization: Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk
> User-Agent: curl/7.21.7 (x86_64-redhat-linux-gnu) libcurl/7.21.7 NSS/3.13.1.0 zlib/1.2.5
libidn/1.22 libssh2/1.2.7
> Host: qe-blade-02.idm.lab.bos.redhat.com:3001
> Accept: */*
> 
< HTTP/1.1 200 OK
< Content-Type: application/xml
< CIMI-Specification-Version: 1.0.1
< Content-Length: 1226
< ETag: 7ec1984bda3f94f3450abb1740cbcf99
< Cache-Control: max-age=0, private, must-revalidate
< Date: Fri, 04 Jan 2013 16:14:24 GMT
< Connection: keep-alive
< Server: thin 1.5.0 codename Knife
< 
<Machine xmlns="http://schemas.dmtf.org/cimi/1" resourceURI="http://schemas.dmtf.org/cimi/1/Machine">
  <id>http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machines/inst8</id>
  <name>myMachine1</name>
  <description>My very first machine</description>
  <created>2013-01-04T11:14:24-05:00</created>
  <property key="machine_image">http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machine_images/img3</property>
  <property key="credential">http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/credentials</property>
  <state>STARTED</state>
  <cpu>1</cpu>
  <memory>10485760</memory>
  <disks href="http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machines/inst8/disks"
/>
  <volumes href="http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machines/inst8/volumes"
/>
  <operation rel="http://schemas.dmtf.org/cimi/1/action/restart" href="http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machines/inst8/restart"
/>
  <operation rel="http://schemas.dmtf.org/cimi/1/action/stop" href="http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machines/inst8/stop"
/>
  <operation rel="http://schemas.dmtf.org/cimi/1/action/capture" href="http://qe-blade-02.idm.lab.bos.redhat.com:3001/cimi/machine_images"
/>
</Machine>
* Connection #0 to host qe-blade-02.idm.lab.bos.redhat.com left intact
* Closing connection #0

                
> CIMI frontend: Creating a new Machine entity in Mock driver doesn't seem to work
> --------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-411
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-411
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: CIMI/Frontend
>         Environment:  
>            Reporter: Martha Chumo
>            Assignee: Michal Fojtik
>
> Getting this error from the server => !! Unexpected error while processing request:
undefined method `each' for :back:Symbol
> undefined method `each' for :back:Symbol

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message