← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1188327] Re: EC2 API RunInstances does not support idempotency

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-2

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1188327

Title:
  EC2 API RunInstances does not support idempotency

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  The EC2 API RunInstances call supports the inclusion of a ClientToken.
  The ClientToken consists of 64 ASCII characters or less. The first
  RunInstances call with a given ClientToken launches an instance, but
  future RunInstances calls with the same token have no effect. Client
  tokens are valid for at least 24 hours.

  http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-RunInstances.html
  http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html

  I guess the way to tackle this is to add some persistent data into the
  CloudController class, maybe just a dict of client tokens and
  "earliest expiration times", and provide some method for periodically
  purging them?

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1188327/+subscriptions