[ 
https://issues.apache.org/jira/browse/DTACLOUD-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13217033#comment-13217033
 ] 

Ronelle Landy commented on DTACLOUD-148:
----------------------------------------

Verified that an Instance will now go from Running -> Stopping -> Stopped (no 
Pending state)


[rlandy@localhost ~]$ curl -d  POST --user "uname:password" 
'http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/instances/bb892b29-1e1e-43b1-9f7d-79be313d45d8/stop?format=xml'

[rlandy@localhost ~]$ curl -X GET --user "uname:password" 
"http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/instances/bb892b29-1e1e-43b1-9f7d-79be313d45d8?format=xml";
<?xml version='1.0' encoding='utf-8' ?>

<instance 
href='http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/instances/bb892b29-1e1e-43b1-9f7d-79be313d45d8'
 id='bb892b29-1e1e-43b1-9f7d-79be313d45d8'>
  <name>dajo-811-RHEL6-2</name>
  <owner_id>admin@internal</owner_id>
  <image 
href='http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/images/1831e939-b982-414d-9ebf-6b505840a0d1'
 id='1831e939-b982-414d-9ebf-6b505840a0d1'></image>
  <realm 
href='http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/realms/a9347fb8-5976-11e1-a53e-5254005809b7'
 id='a9347fb8-5976-11e1-a53e-5254005809b7'></realm>
  <state>STOPPING</state>
  <hardware_profile 
href='http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/hardware_profiles/SERVER'
 id='SERVER'>
    <property kind='fixed' name='storage' unit='GB' value='1'></property>
    <property kind='fixed' name='cpu' unit='count' value='1'></property>
    <property kind='fixed' name='memory' unit='MB' value='512'></property>
  </hardware_profile>
  <actions>
    <link 
href='http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/images;instance_id=bb892b29-1e1e-43b1-9f7d-79be313d45d8'
 method='post' rel='create_image' />
  </actions>
  <launch_time>2012-02-22T17:04:04.423-05:00</launch_time>
  <public_addresses><address type='mac'>00:1a:4a:10:78:02</address>
<address port='5900' type='vnc'>xxxxxx</address></public_addresses>
  <private_addresses></private_addresses>
</instance>

[rlandy@localhost ~]$ curl -X GET --user "uname:password" 
"http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/instances/bb892b29-1e1e-43b1-9f7d-79be313d45d8?format=xml";
<?xml version='1.0' encoding='utf-8' ?>
<instance 
href='http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/instances/bb892b29-1e1e-43b1-9f7d-79be313d45d8'
 id='bb892b29-1e1e-43b1-9f7d-79be313d45d8'>
  <name>dajo-811-RHEL6-2</name>
  <owner_id>admin@internal</owner_id>
  <image 
href='http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/images/1831e939-b982-414d-9ebf-6b505840a0d1'
 id='1831e939-b982-414d-9ebf-6b505840a0d1'></image>
  <realm 
href='http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/realms/a9347fb8-5976-11e1-a53e-5254005809b7'
 id='a9347fb8-5976-11e1-a53e-5254005809b7'></realm>
  <state>STOPPED</state>
  <hardware_profile 
href='http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/hardware_profiles/SERVER'
 id='SERVER'>
    <property kind='fixed' name='storage' unit='GB' value='1'></property>
    <property kind='fixed' name='cpu' unit='count' value='1'></property>
    <property kind='fixed' name='memory' unit='MB' value='512'></property>
  </hardware_profile>
  <actions>
    <link 
href='http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/instances/bb892b29-1e1e-43b1-9f7d-79be313d45d8/start'
 method='post' rel='start' />
    <link 
href='http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/instances/bb892b29-1e1e-43b1-9f7d-79be313d45d8'
 method='delete' rel='destroy' />
    <link 
href='http://qe-blade-09.idm.lab.bos.redhat.com:3007/api/images;instance_id=bb892b29-1e1e-43b1-9f7d-79be313d45d8'
 method='post' rel='create_image' />
  </actions>
  <launch_time>2012-02-22T17:04:04.423-05:00</launch_time>
  <public_addresses><address type='mac'>00:1a:4a:10:78:02</address>
<address port='5900' type='vnc'>xxxxxx</address></public_addresses>
  <private_addresses></private_addresses>
</instance>
[rlandy@localhost ~]$ 

                
> rhev-m - incorrect state when stopping an instance
> --------------------------------------------------
>
>                 Key: DTACLOUD-148
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-148
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>            Reporter: Jan Provaznik
>            Assignee: Michal Fojtik
>
> According to this rhevm states:
>    running.to( :stopping )       .on( :stop )
>    stopped.to( :finish )         .on( :destroy )
> after sending 'stop' request, an instance should get to 'stopping' state, but 
> 'pending' state is returned.

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

        

Reply via email to