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

Ronelle Landy commented on DTACLOUD-353:
----------------------------------------

The patch works well for Vsphere and Mock:

[root@ibm-hs23-02 ~]# curl -X GET --user 'un:pw' 
"http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/images/factory-image-ea59b528-09cc-4e22-a0a1-c71a90afb627?format=xml";
<?xml version='1.0' encoding='utf-8' ?>
<image 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/images/factory-image-ea59b528-09cc-4e22-a0a1-c71a90afb627'
 id='factory-image-ea59b528-09cc-4e22-a0a1-c71a90afb627'>
  <name>factory-image-ea59b528-09cc-4e22-a0a1-c71a90afb627</name>
  <description>Other Linux (64-bit)</description>
  <owner_id>Administrator</owner_id>
  <architecture>x86_64</architecture>
  <state>AVAILABLE</state>
  <creation_time>2012-10-22 18:21:50 UTC</creation_time>
  <hardware_profiles>
    <hardware_profile 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/hardware_profiles/default'
 id='default' rel='hardware_profile'></hardware_profile>
  </hardware_profiles>
  <actions>
    <link 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/instances;image_id=factory-image-ea59b528-09cc-4e22-a0a1-c71a90afb627'
 method='post' rel='create_instance' />
    <link 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/images/factory-image-ea59b528-09cc-4e22-a0a1-c71a90afb627'
 method='delete' rel='destroy_image' />
  </actions>
</image>


curl -X GET --user 'un:pw' 
"http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/images?format=xml";
<?xml version='1.0' encoding='utf-8' ?>
<images>
  <image href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/images/img2' 
id='img2'>
    <name>img2</name>
    <description>Fedora 10</description>
    <owner_id>fedoraproject</owner_id>
    <architecture>i386</architecture>
    <state>AVAILABLE</state>
    <creation_time>Thu Oct 25 14:27:53 CEST 2012</creation_time>
    <hardware_profiles>
      <hardware_profile 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/hardware_profiles/m1-small'
 id='m1-small' rel='hardware_profile'></hardware_profile>
      <hardware_profile 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/hardware_profiles/m1-large'
 id='m1-large' rel='hardware_profile'></hardware_profile>
      <hardware_profile 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/hardware_profiles/m1-xlarge'
 id='m1-xlarge' rel='hardware_profile'></hardware_profile>
      <hardware_profile 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/hardware_profiles/opaque'
 id='opaque' rel='hardware_profile'></hardware_profile>
    </hardware_profiles>
    <actions>
      <link 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/instances;image_id=img2'
 method='post' rel='create_instance' />
      <link 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/images/img2' 
method='delete' rel='destroy_image' />
    </actions>
  </image>
  <image href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/images/img1' 
id='img1'>
    <name>img1</name>
    <description>Fedora 10</description>
    <owner_id>fedoraproject</owner_id>
    <architecture>x86_64</architecture>
    <state>AVAILABLE</state>
    <creation_time>Thu Oct 25 14:27:53 CEST 2012</creation_time>
    <hardware_profiles>
      <hardware_profile 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/hardware_profiles/m1-small'
 id='m1-small' rel='hardware_profile'></hardware_profile>
      <hardware_profile 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/hardware_profiles/m1-large'
 id='m1-large' rel='hardware_profile'></hardware_profile>
      <hardware_profile 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/hardware_profiles/m1-xlarge'
 id='m1-xlarge' rel='hardware_profile'></hardware_profile>
      <hardware_profile 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/hardware_profiles/opaque'
 id='opaque' rel='hardware_profile'></hardware_profile>
    </hardware_profiles>
    <actions>
      <link 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/instances;image_id=img1'
 method='post' rel='create_instance' />
      <link 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/images/img1' 
method='delete' rel='destroy_image' />
    </actions>
  </image>
  <image href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/images/img3' 
id='img3'>
    <name>img3</name>
    <description>JBoss</description>
    <owner_id>mockuser</owner_id>
    <architecture>i386</architecture>
    <state>AVAILABLE</state>
    <creation_time>Thu Oct 25 14:27:53 CEST 2012</creation_time>
    <hardware_profiles>
      <hardware_profile 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/hardware_profiles/m1-small'
 id='m1-small' rel='hardware_profile'></hardware_profile>
      <hardware_profile 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/hardware_profiles/m1-large'
 id='m1-large' rel='hardware_profile'></hardware_profile>
      <hardware_profile 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/hardware_profiles/m1-xlarge'
 id='m1-xlarge' rel='hardware_profile'></hardware_profile>
      <hardware_profile 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/hardware_profiles/opaque'
 id='opaque' rel='hardware_profile'></hardware_profile>
    </hardware_profiles>
    <actions>
      <link 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/instances;image_id=img3'
 method='post' rel='create_instance' />
      <link 
href='http://ibm-hs23-02.rhts.eng.bos.redhat.com:3003/api/images/img3' 
method='delete' rel='destroy_image' />
    </actions>
  </image>
</images>

Waiting on gem version bump (in comment above) to complete testing on rhevm.


                
> Request to return 'creation date' for images
> --------------------------------------------
>
>                 Key: DTACLOUD-353
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-353
>             Project: DeltaCloud
>          Issue Type: Improvement
>          Components: Native/Frontend
>         Environment: deltacloud 1.0.3 and upwards
> all platforms
>            Reporter: Ronelle Landy
>            Assignee: Michal Fojtik
>
> The RHEVM API returns a creation date for templates/images but the Deltacloud 
> API does not:
> RHEVM:  <creation_time>2012-09-24T22:47:47.963-04:00</creation_time> on each 
> template
> DELTACLOUD:
>  curl -X GET --user "un:pw" 
> "http://server:3003/api/images/4f0fa2e6-627e-45a9-96a1-5ca4cb64a64b?format=xml";
> <?xml version='1.0' encoding='utf-8' ?>
> <image 
> href='http://server:3003/api/images/4f0fa2e6-627e-45a9-96a1-5ca4cb64a64b' 
> id='4f0fa2e6-627e-45a9-96a1-5ca4cb64a64b'>
>   <name>0f5cafa3-145d-4895-bda3-2c43b8b32ec5</name>
>   <owner_id>admin@internal</owner_id>
>   <description>Template by iwhd</description>
>   <architecture>x86_64</architecture>
>   <state>ok</state>
>   <actions>
>     <link 
> href='http://server:3003/api/instances;image_id=4f0fa2e6-627e-45a9-96a1-5ca4cb64a64b'
>  method='post' rel='create_instance' />
>   </actions>
> </image>
> It is noted that some providers do not return 'creation date' information but 
> for those who do - or provide access to this info through logs, it would be a 
> useful addition to the image information returned from the Deltacloud API.

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

Reply via email to