[
https://issues.apache.org/jira/browse/DTACLOUD-270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ronelle Landy closed DTACLOUD-270.
----------------------------------
Resolution: Fixed
Closing this issue as fixed in deltacloud commit version:
45c8aa2221c59cd780b32f8dd48ed45f0fa448fe
Tests added to /deltacloud/tests/cimi
> 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’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
For more information on JIRA, see: http://www.atlassian.com/software/jira