You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Ronelle Landy (JIRA)" <ji...@apache.org> on 2012/07/11 22:33:34 UTC
[jira] [Created] (DTACLOUD-276) CIMI: restart action href is listed
as: /cimi/restart_machines/
Ronelle Landy created DTACLOUD-276:
--------------------------------------
Summary: CIMI: restart action href is listed as: /cimi/restart_machines/<inst>
Key: DTACLOUD-276
URL: https://issues.apache.org/jira/browse/DTACLOUD-276
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
Running GET /cimi/machines/<machine name> on a machine in a STARTED state returns two operations:
<operation href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/restart_machines/inst3" rel="http://www.dmtf.org/cimi/action/restart" />
<operation href="http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/machines/inst3/stop" rel="http://www.dmtf.org/cimi/action/stop" />
Running restart as shown above errors:
curl -X POST --user "mockuser:mockpassword" -H "Content-Type: application/xml" -d '<Action xmlns="http://www.dmtf.org/cimi"> <action> http://www.dmtf.org/cimi/action/restart </action> </Action> ' "http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/restart_machines/inst3?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>post '/cimi/restart_machines/inst3' do
"Hello World"
end</pre>
</div>
</body>
</html>
However this seems to work:
[root@dell-pe2900-02 ~]# curl -X POST --user "mockuser:mockpassword" -H "Content-Type: application/xml" -d '<Action xmlns="http://www.dmtf.org/cimi"> <action> http://www.dmtf.org/cimi/action/start </action> </Action> ' "http://dell-pe2900-02.rhts.eng.bos.redhat.com:3006/cimi/machines/inst3/restart?format=xml"
What is the correct format for the restart operation?
--
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