Uploaded image for project: 'DeltaCloud'
  1. DeltaCloud
  2. DTACLOUD-8

stopping an ec2 instance reports start to be an available action

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: None
    • Labels:
      None
    • Environment:
      deltacloud 0.0.9, REST API

      Description

      If you perform an action on an instance, Deltacloud answers with the actions that are available to it. Perfect REST style.

      If you stop an instance that runs on ec2, deltacloud responds with the actions that are available to it. For a stopped instance, Deltacloud reports "start" to be available. IMHO this is bogus since the AWS console does not offer START nor DESTROY to instances that are stopped.

      • Request to stop an instance:

      POST /api/instances/i-00e28a6d/stop HTTP/1.1

      • Response from Deltacloud (see <actions />):

      <?xml version='1.0' encoding='utf-8' ?>
      <instance href='http://localhost:3002/api/instances/i-00e28a6d' id='i-00e28a6d'>
      <name>ami-7d07ec14</name>
      <image href='http://localhost:3002/api/images/ami-7d07ec14' id='ami-7d07ec14'></image>
      <realm href='http://localhost:3002/api/realms/us-east-1a' id='us-east-1a'></realm>
      <state>STOPPED</state>
      <hardware_profile href='http://localhost:3002/api/hardware_profiles/m1.small' id='m1.small'>
      </hardware_profile>
      <actions>
      <link href='http://localhost:3002/api/instances/i-00e28a6d/start' method='post' rel='start' />
      </actions>
      <launch_time>2010-11-19T12:23:06.000Z</launch_time>
      <public_addresses>
      <address>ec2-184-72-186-65.compute-1.amazonaws.com</address>
      </public_addresses>
      <private_addresses>
      <address>ip-10-112-38-207.ec2.internal</address>
      </private_addresses>
      <authentication type='key'>
      <login>
      <keyname>ad</keyname>
      </login>
      </authentication>
      </instance>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lutter David Lutterkort
                Reporter:
                adietisheim André Dietisheim
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: