deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michal Fojtik (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DTACLOUD-270) CIMI: GET /cimi/machine_templates and GET /cimi/volume_templates return "Sinatra doesn’t know this ditty."
Date Thu, 12 Jul 2012 10:14:34 GMT

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

Michal Fojtik commented on DTACLOUD-270:
----------------------------------------

They return 404 because they are not yet implemented/supported by Deltacloud. I would suggest
to not advertise them when they are not supported. Marios did some initial work on DELTACLOUD_MAPPINGS,
maybe we should extend that to all driver methods and advertise just those collections which
are supported by backend driver.
                
> CIMI: GET /cimi/machine_templates and GET /cimi/volume_templates return "Sinatra doesn’t
know this ditty."
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-270
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-270
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: deltacloud git commit: 714c474d240945ec07f39873bac148ce966a2246
> mock provider
> Fedora 16
>            Reporter: Ronelle Landy
>
> Started deltacloud using the cimi frontend, targeting the mock provider:
> >> ./bin/deltacloudd -i mock -f cimi -r <hostname> -p 3006
> Checked the collections available from /cimi/cloudEntryPoint:
> >> [root@dell-pe2900-02 ~]# curl -X GET --user "<un:pw>" http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/cloudEntryPoint?format=xml
> <CloudEntryPoint xmlns="http://www.dmtf.org/cimi">
>   <volumeTemplates href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/volume_templates"
/>
>   <volumeImages href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/volume_images"
/>
>   <description>Cloud Entry Point for the Deltacloud mock driver</description>
>   <vspTemplates href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/vsp_templates"
/>
>   <volumeConfigurations href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/volume_configurations"
/>
>   <machineImages href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/machine_images"
/>
>   <machineTemplates href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/machine_templates"
/>
>   <entityMetadata></entityMetadata>
>   <routingGroupTemplates href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/routing_group_templates"
/>
>   <addressTemplates href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/address_templates"
/>
>   <addresses href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/addresses"
/>
>   <routingGroups href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/routing_groups"
/>
>   <networkConfigurations href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/network_configurations"
/>
>   <machines href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/machines"
/>
>   <vspConfigurations href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/vsp_configurations"
/>
>   <networks href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/networks"
/>
>   <created>Wed Jul 11 13:25:29 -0400 2012</created>
>   <id>http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/cloudEntryPoint</id>
>   <vsps href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/vsps" />
>   <networkTemplates href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/network_templates"
/>
>   <machineAdmins href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/machine_admins"
/>
>   <volumes href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/volumes"
/>
>   <machineConfigurations href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/machine_configurations"
/>
>   <name>mock</name>
> Then tried to access the collection listed. GET /cimi/machine_templates and GET /cimi/volume_templates
return "Sinatra doesn’t know this ditty."
> curl -X GET --user "<un:pw>" "http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/machine_templates?format=xml"
> <!DOCTYPE html>
> <html>
> <head>
>   <style type="text/css">
>   body { text-align:center;font-family:helvetica,arial;font-size:22px;
>     color:#888;margin:20px}
>   #c {margin:0 auto;width:500px;text-align:left}
>   </style>
> </head>
> <body>
>   <h2>Sinatra doesn&rsquo;t know this ditty.</h2>
>   <img src='http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/__sinatra__/404.png'>
>   <div id="c">
>     Try this:
>     <pre>get '/cimi/machine_templates' do
>   "Hello World"
> end</pre>
>   </div>
> </body>
> </html>
> [root@dell-pe2900-02 ~]# 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message