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-431) Disks and volumes are ignored on CIMI $select
Date Thu, 24 Jan 2013 17:47:13 GMT

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

Ronelle Landy commented on DTACLOUD-431:
----------------------------------------

http://tracker.deltacloud.org/patch/e7eaa2c9

Patch doesn't work for me:

 curl -X GET -H "accept:application/xml" --user "un:pw" http://localhost:3001/cimi/machines?$select=name

<Collection xmlns="http://schemas.dmtf.org/cimi/1" resourceURI="http://schemas.dmtf.org/cimi/1/MachineCollection">
  <id>http://localhost:3001/cimi/machines</id>
  <count>2</count>
  <Machine>
    <id>http://localhost:3001/cimi/machines/inst0</id>
    <name>Mock Instance With Profile Change</name>
    <description>No description set for Machine Mock Instance With Profile Change</description>
    <created>2013-01-24T12:42:02-05:00</created>
    <property key="machine_image">http://localhost:3001/cimi/machine_images/img1</property>
    <property key="credential">http://localhost:3001/cimi/credentials</property>
    <realm>us</realm>
    <machineImage href="http://localhost:3001/cimi/machine_images/img1" />
    <state>STARTED</state>
    <cpu>1</cpu>
    <memory>12582912</memory>
    <disks href="http://localhost:3001/cimi/machines/inst0/disks" />
    <volumes href="http://localhost:3001/cimi/machines/inst0/volumes" />
    <operation rel="http://schemas.dmtf.org/cimi/1/action/restart" href="http://localhost:3001/cimi/machines/inst0/restart"
/>
    <operation rel="http://schemas.dmtf.org/cimi/1/action/stop" href="http://localhost:3001/cimi/machines/inst0/stop"
/>
    <operation rel="http://schemas.dmtf.org/cimi/1/action/capture" href="http://localhost:3001/cimi/machine_images"
/>
  </Machine>
  <Machine>
    <id>http://localhost:3001/cimi/machines/inst1</id>
    <name>MockUserInstance</name>
    <description>No description set for Machine MockUserInstance</description>
    <created>2013-01-24T12:42:02-05:00</created>
    <property key="machine_image">http://localhost:3001/cimi/machine_images/img3</property>
    <property key="credential">http://localhost:3001/cimi/credentials</property>
    <realm>us</realm>
    <machineImage href="http://localhost:3001/cimi/machine_images/img3" />
    <state>STARTED</state>
    <cpu>1</cpu>
    <memory>1782579</memory>
    <disks href="http://localhost:3001/cimi/machines/inst1/disks" />
    <volumes href="http://localhost:3001/cimi/machines/inst1/volumes" />
    <operation rel="http://schemas.dmtf.org/cimi/1/action/restart" href="http://localhost:3001/cimi/machines/inst1/restart"
/>
    <operation rel="http://schemas.dmtf.org/cimi/1/action/stop" href="http://localhost:3001/cimi/machines/inst1/stop"
/>
    <operation rel="http://schemas.dmtf.org/cimi/1/action/capture" href="http://localhost:3001/cimi/machine_images"
/>
  </Machine>
  <operation rel="add" href="http://localhost:3001/cimi/machines" />
</Collection>

Any thoughts/corrections/additions?



                
> Disks and volumes are ignored on CIMI $select
> ---------------------------------------------
>
>                 Key: DTACLOUD-431
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-431
>             Project: DeltaCloud
>          Issue Type: Bug
>            Reporter: Michal Fojtik
>            Assignee: Michal Fojtik
>
> When using $select=name on machine collection, I get following output:
> <Collection xmlns="http://schemas.dmtf.org/cimi/1" resourceURI="http://schemas.dmtf.org/cimi/1/MachineCollection">
> <id>http://localhost:3001/cimi/machines</id>
> <count>2</count>
> <Machine>
> <name>MockUserInstance</name>
> <disks href="/disks" />
> <volumes href="/volumes" />
> </Machine>
> <Machine>
> <name>Mock Instance With Profile Change</name>
> <disks href="/disks" />
> <volumes href="/volumes" />
> </Machine>
> <operation rel="add" href="http://localhost:3001/cimi/machines" />
> </Collection>
> Note that the 'disks' and 'volumes' should not be displayed.

--
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