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/11/13 20:16:13 UTC
[jira] [Created] (DTACLOUD-367) Executng: POST
/cimi/machine/:id/stop on a running Openstack instance using Deltacloud
CIMI frontend returns a 200 but does not stop the instance
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
[jira] [Closed] (DTACLOUD-367) Executng: POST
/cimi/machine/:id/stop on a running Openstack instance using Deltacloud
CIMI frontend returns a 200 but does not stop the instance
Posted by "Ronelle Landy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ronelle Landy closed DTACLOUD-367.
----------------------------------
Fixed deltacloud commit version: 5680d8cdb45a38168da3bbdcb0dd71dc55b984a
curl -X POST -d '<Action><action>http://schemas.dmtf.org/cimi/1/action/stop</action></Action>' --user 'rlandy@redhat.com+rlandy@redhat.com-default-tenant:Sa0091087' "cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/machines/704493/stop?format=xml"
[rlandy@localhost workspace]$
[rlandy@localhost workspace]$
[rlandy@localhost workspace]$ curl -X GET --user 'rlandy@redhat.com+rlandy@redhat.com-default-tenant:Sa0091087' "cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/machines?format=xml"
<Collection xmlns="http://schemas.dmtf.org/cimi/1" resourceURI="http://schemas.dmtf.org/cimi/1/MachineCollection">
<id>http://cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/machines</id>
<count>0</count>
<operation rel="add" href="http://cloud-qe-5.idm.lab.bos.redhat.com:3005/cimi/machines" />
> 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
> Assignee: Ronelle Landy
> Attachments: 0001-CIMI-fix-stop-restart-actions-on-Machine-DTACLOUD-36.patch
>
>
> 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
[jira] [Assigned] (DTACLOUD-367) Executng: POST
/cimi/machine/:id/stop on a running Openstack instance using Deltacloud
CIMI frontend returns a 200 but does not stop the instance
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou reassigned DTACLOUD-367:
---------------------------------------
Assignee: Marios Andreou
> 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
> Assignee: Marios Andreou
>
> 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
[jira] [Commented] (DTACLOUD-367) Executng: POST
/cimi/machine/:id/stop on a running Openstack instance using Deltacloud
CIMI frontend returns a 200 but does not stop the instance
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496978#comment-13496978 ]
Marios Andreou commented on DTACLOUD-367:
-----------------------------------------
pushed as commit # d8392739f02ad8f5b269390250afd11be81b9394
> 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
> Assignee: Ronelle Landy
> Attachments: 0001-CIMI-fix-stop-restart-actions-on-Machine-DTACLOUD-36.patch
>
>
> 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
[jira] [Commented] (DTACLOUD-367) Executng: POST
/cimi/machine/:id/stop on a running Openstack instance using Deltacloud
CIMI frontend returns a 200 but does not stop the instance
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496964#comment-13496964 ]
Marios Andreou commented on DTACLOUD-367:
-----------------------------------------
OK
attached patch fixes this issue. actually it also fixes https://issues.apache.org/jira/browse/DTACLOUD-368 (I will remove the patch from there as i now realise it didn't fully resolve the issue)
patch also available at tracker.deltacloud.org/set/128
curl -v -X POST --user "name:pass" -H "Content-Type: application/xml" -H "Accept: application/xml" -d '<Action xmlns="http://schemas.dmtf.org/cimi/1"><action> http://http://schemas.dmtf.org/cimi/1/action/stop </action> </Action>' http://localhost:3001/cimi/machines/700121/stop
> 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
> Assignee: Marios Andreou
> Attachments: 0001-CIMI-fix-stop-restart-actions-on-Machine-DTACLOUD-36.patch
>
>
> 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
[jira] [Updated] (DTACLOUD-367) Executng: POST
/cimi/machine/:id/stop on a running Openstack instance using Deltacloud
CIMI frontend returns a 200 but does not stop the instance
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou updated DTACLOUD-367:
------------------------------------
Attachment: 0001-CIMI-fix-stop-restart-actions-on-Machine-DTACLOUD-36.patch
> 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
> Assignee: Marios Andreou
> Attachments: 0001-CIMI-fix-stop-restart-actions-on-Machine-DTACLOUD-36.patch
>
>
> 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
[jira] [Resolved] (DTACLOUD-367) Executng: POST
/cimi/machine/:id/stop on a running Openstack instance using Deltacloud
CIMI frontend returns a 200 but does not stop the instance
Posted by "Marios Andreou (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DTACLOUD-367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou resolved DTACLOUD-367.
-------------------------------------
Resolution: Fixed
Assignee: Ronelle Landy (was: Marios Andreou)
> 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
> Assignee: Ronelle Landy
> Attachments: 0001-CIMI-fix-stop-restart-actions-on-Machine-DTACLOUD-36.patch
>
>
> 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