[ https://issues.apache.org/jira/browse/DTACLOUD-276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ronelle Landy closed DTACLOUD-276. ---------------------------------- Resolution: Fixed Fixed in deltacloud 1.1.1: [root@qeblade39 ~]# curl -X GET --user "un:pw" "qeblade39.rhq.lab.eng.bos.redhat.com:3001/cimi/machines/inst0?format=xml" <Machine xmlns="http://schemas.dmtf.org/cimi/1" resourceURI="http://schemas.dmtf.org/cimi/1/Machine"> <id>http://qeblade39.rhq.lab.eng.bos.redhat.com: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-02-18T12:23:19-05:00</created> <realm>us</realm> <machineImage href="http://qeblade39.rhq.lab.eng.bos.redhat.com:3001/cimi/machine_images/img1" /> <state>STARTED</state> <cpu>1</cpu> <memory>12582912</memory> <disks href="http://qeblade39.rhq.lab.eng.bos.redhat.com:3001/cimi/machines/inst0/disks" /> <volumes href="http://qeblade39.rhq.lab.eng.bos.redhat.com:3001/cimi/machines/inst0/volumes" /> <operation rel="http://schemas.dmtf.org/cimi/1/action/restart" href="http://qeblade39.rhq.lab.eng.bos.redhat.com:3001/cimi/machines/inst0/restart" /> <operation rel="http://schemas.dmtf.org/cimi/1/action/stop" href="http://qeblade39.rhq.lab.eng.bos.redhat.com:3001/cimi/machines/inst0/stop" /> <operation rel="http://schemas.dmtf.org/cimi/1/action/capture" href="http://qeblade39.rhq.lab.eng.bos.redhat.com:3001/cimi/machine_images" /> </Machine> > 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 For more information on JIRA, see: http://www.atlassian.com/software/jira