← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1272844] [NEW] Fails to 'modify_image_attribute()' for ec2

 

Public bug reported:

The params of modify_image_attribute() in cloud.py, are not matched with
ec2 api.

-----------------

I checked the ec2 api, the url is like: 
https://ec2.amazonaws.com/?Action=ModifyImageAttribute
&ImageId=ami-61a54008
&LaunchPermission.Remove.1.UserId=111122223333

And I tested again with euca2ools, the modify_image_attribute() failed
again:

TypeError: 'modify_image_attribute() takes exactly 5 non-keyword
arguments (3 given)'

--------------

Here is the definition of modify_image_attribute():

def modify_image_attribute(self, context, image_id, attribute,
                               operation_type, **kwargs)

And I printed out the params send to here, the value of args is:
args={'launch_permission': {'add': {'1': {'group': u'all'}}}, 'image_id': u'ami-00000004'}

--------------

So I got a question, are the params used in modify_image_attribute()
correct?

** Affects: nova
     Importance: Undecided
     Assignee: wingwj (wingwj)
         Status: New


** Tags: ec2

** Changed in: nova
     Assignee: (unassigned) => wingwj (wingwj)

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

Title:
  Fails to 'modify_image_attribute()' for ec2

Status in OpenStack Compute (Nova):
  New

Bug description:
  The params of modify_image_attribute() in cloud.py, are not matched
  with ec2 api.

  -----------------

  I checked the ec2 api, the url is like: 
  https://ec2.amazonaws.com/?Action=ModifyImageAttribute
  &ImageId=ami-61a54008
  &LaunchPermission.Remove.1.UserId=111122223333

  And I tested again with euca2ools, the modify_image_attribute() failed
  again:

  TypeError: 'modify_image_attribute() takes exactly 5 non-keyword
  arguments (3 given)'

  --------------

  Here is the definition of modify_image_attribute():

  def modify_image_attribute(self, context, image_id, attribute,
                                 operation_type, **kwargs)

  And I printed out the params send to here, the value of args is:
  args={'launch_permission': {'add': {'1': {'group': u'all'}}}, 'image_id': u'ami-00000004'}

  --------------

  So I got a question, are the params used in modify_image_attribute()
  correct?

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


Follow ups

References