DeltaCloud
  1. DeltaCloud
  2. DTACLOUD-148

rhev-m - incorrect state when stopping an instance

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Component/s: Server
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Michal Fojtik added a comment -

        This should be fixed in master now:

        commit fc32d55822e6fd4467904b7df0e42d302211d8c2
        Author: Michal Fojtik <mfojtik@redhat.com>
        Date: Tue Feb 21 12:50:44 2012 +0100

        RHEV-M: Fixed incorrectly reported instance state when shutting down

        Show
        Michal Fojtik added a comment - This should be fixed in master now: commit fc32d55822e6fd4467904b7df0e42d302211d8c2 Author: Michal Fojtik <mfojtik@redhat.com> Date: Tue Feb 21 12:50:44 2012 +0100 RHEV-M: Fixed incorrectly reported instance state when shutting down
        Hide
        Ronelle Landy added a comment -

        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 ~]$

        Show
        Ronelle Landy added a comment - 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 ~] $
        Hide
        Ronelle Landy added a comment -

        Closing this issue - verified fixed in - when cloning deltacloud from commit: f5983903db4b7e99a9a5b7f53791863f9f585940. See verification steps in comment above.

        Show
        Ronelle Landy added a comment - Closing this issue - verified fixed in - when cloning deltacloud from commit: f5983903db4b7e99a9a5b7f53791863f9f585940. See verification steps in comment above.

          People

          • Assignee:
            Michal Fojtik
            Reporter:
            Jan Provaznik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development