deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronelle Landy (JIRA)" <>
Subject [jira] [Commented] (DTACLOUD-343) Can't pass realm id when creating a new machine via the CIMI API
Date Wed, 06 Feb 2013 20:27:12 GMT


Ronelle Landy commented on DTACLOUD-343:

Resource Metadata for the Machines collection does advertise the 'realm' attribute and shows
the valid constraint values ...(copied below)

<ResourceMetadata xmlns="" resourceURI="">
  <attribute name="realm" namespace="" type="text"

However, the subject of this JIRA is passing a realm_id when creating a new machine.
Where, in the create operation would this attribute be passed?

I tried: 

>>  curl --user "un:pw" -X POST http://localhost:3001/cimi/machines -H "Content-Type:
application/json" -d '{ "resourceURI": "", "name":
"myMachine1", "realm": "eu", "description": "My very first machine", "machineTemplate": {
"machineConfig": { "href": "http://localhost:3001/cimi/machine_configurations/m1-large" },
"machineImage": { "href": "http://localhost:3001/cimi/machine_images/img3" } } }'

And was returned a machine with: "realm":"us" ... 

{"id":"http://localhost:3001/cimi/machines/inst3","name":"myMachine1","description":"My very
first machine","created":"2013-02-06T15:12:00-05:00","properties":{"machine_image":"http://localhost:3001/cimi/machine_images/img3","credential":"http://localhost:3001/cimi/credentials"},"realm":"us","machineImage":{"href":"http://localhost:3001/cimi/machine_images/img3"},"state":"STARTED","cpu":"1","memory":10485760,"disks":{"href":"http://localhost:3001/cimi/machines/inst3/disks"},"volumes":{"href":"http://localhost:3001/cimi/machines/inst3/volumes"},"operations":[{"rel":"","href":"http://localhost:3001/cimi/machines/inst3/restart"},{"rel":"","href":"http://localhost:3001/cimi/machines/inst3/stop"},{"rel":"","href":"http://localhost:3001/cimi/machine_images"}],"resourceURI":""}

Assuming user error in the above comment - how/where would I pass the desired realm_id in
the machine create operation?
> Can't pass realm id when creating a new machine via the CIMI API
> ----------------------------------------------------------------
>                 Key: DTACLOUD-343
>                 URL:
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: CIMI/Frontend, Server
>         Environment: ovirt driver, cimi frontend
>            Reporter: Oved Ourfali
>            Assignee: Michal Fojtik
> When trying to create a new machine, there is no property to set the realm id (ovirt
cluster id), that we want the machine to be created in.

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:

View raw message