[
https://issues.apache.org/jira/browse/DTACLOUD-368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marios Andreou updated DTACLOUD-368:
------------------------------------
Attachment: 0001-CIMI-Fix-Typo-in-machine-restart-route-DTACLOUD-368.patch
> Executing POST /cimi/machines/:id/restart on a 'started' or 'running' machine
> returns " 412 Precondition Failed"
> ----------------------------------------------------------------------------------------------------------------
>
> Key: DTACLOUD-368
> URL: https://issues.apache.org/jira/browse/DTACLOUD-368
> Project: DeltaCloud
> Issue Type: Bug
> Components: CIMI/Frontend
> Environment: Delatcloud 1.0.4 +
> Openstack
> Reporter: Ronelle Landy
> Assignee: Marios Andreou
> Attachments:
> 0001-CIMI-Fix-Typo-in-machine-restart-route-DTACLOUD-368.patch
>
>
> Using the Deltacloud CIMI Openstack driver, the "restart operation" is shown
> as an available action but when executed returns a 412 and the message below:
> "The required capability to execute this operation is missing"
> >> curl -v -X POST -H "accept:application/xml" -d
> >> '<Action><action>http://www.dmtf.org/cimi/action/restart</action></Action>'
> >> --user "un:pw"
> >> "cloud-qe-4.idm.lab.bos.redhat.com:3005/cimi/machines/697841/restart"
> * About to connect() to cloud-qe-4.idm.lab.bos.redhat.com port 3005 (#0)
> * Trying 10.16.96.111... connected
> * Connected to cloud-qe-4.idm.lab.bos.redhat.com (10.16.96.111) port 3005 (#0)
> * Server auth using Basic with user
> '[email protected][email protected]'
> > POST /cimi/machines/697841/restart HTTP/1.1
> > Authorization: Basic
> > cmxhbmR5QHJlZGhhdC5jb20rcmxhbmR5QHJlZGhhdC5jb20tZGVmYXVsdC10ZW5hbnQ6U2EwMDkxMDg3
> > User-Agent: curl/7.21.7 (x86_64-redhat-linux-gnu) libcurl/7.21.7
> > NSS/3.13.1.0 zlib/1.2.5 libidn/1.22 libssh2/1.2.7
> > Host: cloud-qe-4.idm.lab.bos.redhat.com:3005
> > accept:application/xml
> > Content-Length: 73
> > Content-Type: application/x-www-form-urlencoded
> >
> < HTTP/1.1 412 Precondition Failed
> < CIMI-Specification-Version: 1.0.5
> < Content-Type: text/html;charset=utf-8
> < Content-Length: 60
> < X-Frame-Options: sameorigin
> < X-XSS-Protection: 1; mode=block
> < Expect: restart_instance
> < Date: Tue, 13 Nov 2012 19:16:14 GMT
> < Connection: keep-alive
> < Server: thin 1.5.0 codename Knife
> <
> * Connection #0 to host cloud-qe-4.idm.lab.bos.redhat.com left intact
> * Closing connection #0
> The required capability to execute this operation is missing
> -----------------------------
> Executing a /reboot on the same machine using the delatcloud native frontend
> works and returns a 202.
> 10.11.8.9 - - [13/Nov/2012 14:19:49] "POST /api/instances/697841/reboot
> HTTP/1.1" 202 5101 5.8399
> as opposed to:
> 10.11.8.9 - - [13/Nov/2012 13:14:10] "POST /cimi/machines/697841/restart
> HTTP/1.1" 412 60 0.0037
--
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