[
https://issues.apache.org/jira/browse/DTACLOUD-343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13572784#comment-13572784
]
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="http://schemas.dmtf.org/cimi/1"
resourceURI="http://schemas.dmtf.org/cimi/1/ResourceMetadata">
<id>http://localhost:3001/cimi/resource_metadata/machine</id>
<name>Machine</name>
<typeUri>http://schemas.dmtf.org/cimi/1/Machine</typeUri>
<attribute name="realm" namespace="http://deltacloud.org/cimi/Machine/realm"
type="text" required="false">
<constraint>
<value>us</value>
</constraint>
<constraint>
<value>eu</value>
</constraint>
</attribute>
</ResourceMetadata>
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":
>> "http://schemas.dmtf.org/cimi/1/MachineCreate", "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":"http://schemas.dmtf.org/cimi/1/action/restart","href":"http://localhost:3001/cimi/machines/inst3/restart"},{"rel":"http://schemas.dmtf.org/cimi/1/action/stop","href":"http://localhost:3001/cimi/machines/inst3/stop"},{"rel":"http://schemas.dmtf.org/cimi/1/action/capture","href":"http://localhost:3001/cimi/machine_images"}],"resourceURI":"http://schemas.dmtf.org/cimi/1/Machine"}
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: https://issues.apache.org/jira/browse/DTACLOUD-343
> 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: http://www.atlassian.com/software/jira