Ronelle Landy created DTACLOUD-367:
--------------------------------------

             Summary: Executng: POST /cimi/machine/:id/stop on a running 
Openstack instance using Deltacloud CIMI frontend returns a 200 but does not 
stop the instance
                 Key: DTACLOUD-367
                 URL: https://issues.apache.org/jira/browse/DTACLOUD-367
             Project: DeltaCloud
          Issue Type: Bug
          Components: CIMI/Frontend
         Environment: deltacloud 1.0.4  (and after)
Openstack 
            Reporter: Ronelle Landy


Possibly a clone of DTACLOUD-328? although I only see this with cimi, not the 
native deltacloud frontend.

>> curl -v -X POST -H "accept:application/xml" -d 
>> '<Action><action>http://www.dmtf.org/cimi/action/stop</action></Action>' 
>> --user "un:pw" 
>> "cloud-qe-4.idm.lab.bos.redhat.com:3005/cimi/machines/697841/stop"

* 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 ''
> POST /cimi/machines/697841/stop 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: 70
> Content-Type: application/x-www-form-urlencoded
> 
< HTTP/1.1 200 OK
< CIMI-Specification-Version: 1.0.5
< Content-Type: text/html;charset=utf-8
< Content-Length: 0
< X-Frame-Options: sameorigin
< X-XSS-Protection: 1; mode=block
< Date: Tue, 13 Nov 2012 19:08:59 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

Now see the state of the instance:

curl -v -X GET -H "accept:application/xml"  --user "un:pw" 
"cloud-qe-4.idm.lab.bos.redhat.com:3005/cimi/machines/697841"* 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 't'
> GET /cimi/machines/697841 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
> 
< HTTP/1.1 200 OK
< CIMI-Specification-Version: 1.0.5
< Content-Type: application/xml
< Content-Length: 1225
< ETag: 7831392700ce844b812e70fc74085b87
< X-Frame-Options: sameorigin
< X-XSS-Protection: 1; mode=block
< Date: Tue, 13 Nov 2012 19:13:30 GMT
< Cache-Control: max-age=0, private, must-revalidate
< Connection: keep-alive
< Server: thin 1.5.0 codename Knife
< 
<Machine xmlns="http://schemas.dmtf.org/cimi/1"; 
resourceURI="http://schemas.dmtf.org/cimi/1/Machine";>
  <id>http://cloud-qe-4.idm.lab.bos.redhat.com:3005/cimi/machines/697841</id>
  <name>cimi_machine</name>
  <description>Instance cimi_machine</description>
  <created>2012-11-13T14:13:27-05:00</created>
  <property 
name="machine_image">http://cloud-qe-4.idm.lab.bos.redhat.com:3005/cimi/machine_images/224</property>
  <property 
name="credential">http://cloud-qe-4.idm.lab.bos.redhat.com:3005/cimi/credentials</property>
  <state>STARTED</state>
  <cpu>2</cpu>
  <memory>4194304</memory>
  <disks 
href="http://cloud-qe-4.idm.lab.bos.redhat.com:3005/cimi/machines/697841/disks"; 
/>
  <volumes 
href="http://cloud-qe-4.idm.lab.bos.redhat.com:3005/cimi/machines/697841/volumes";
 />
  <operation 
href="http://cloud-qe-4.idm.lab.bos.redhat.com:3005/cimi/machines/697841/restart";
 rel="http://schemas.dmtf.org/cimi/1/action/restart"; />
  <operation 
href="http://cloud-qe-4.idm.lab.bos.redhat.com:3005/cimi/machines/697841/stop"; 
rel="http://schemas.dmtf.org/cimi/1/action/stop"; />
  <operation 
href="http://cloud-qe-4.idm.lab.bos.redhat.com:3005/cimi/machine_images"; 
rel="http://schemas.dmtf.org/cimi/1/action/capture"; />
</Machine>
* Connection #0 to host cloud-qe-4.idm.lab.bos.redhat.com left intact
* Closing connection #0
[rlandy@localhost /]$ 






--
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

Reply via email to