← Back to team overview

registry team mailing list archive

[Bug 662579] [NEW] TypeError: terminate_instances() takes exactly 3 non-keyword arguments (2 given)

 

Public bug reported:

chmouel@test1:~$ dpkg-query --showformat='${Package}-${Version}\n' -W '*nova*' '*euca2ools*' '*boto*'
euca2ools-1.2-0ubuntu11
nova-api-0.9.1~r331-0ubuntu0ppa1~maverick1
nova-common-0.9.1~r331-0ubuntu0ppa1~maverick1
nova-compute-0.9.1~r331-0ubuntu0ppa1~maverick1
nova-doc-0.9.1~r331-0ubuntu0ppa1~maverick1
nova-instancemonitor-0.9.1~r331-0ubuntu0ppa1~maverick1
nova-network-0.9.1~r331-0ubuntu0ppa1~maverick1
nova-objectstore-0.9.1~r331-0ubuntu0ppa1~maverick1
nova-scheduler-0.9.1~r331-0ubuntu0ppa1~maverick1
nova-volume-0.9.1~r331-0ubuntu0ppa1~maverick1
python-boto-1.9b-1ubuntu3
python-nova-0.9.1~r331-0ubuntu0ppa1~maverick1

I am getting type error when trying to shutdown the instance :

chmouel@test1:~$ euca-terminate-instances i-vxa85l
TypeError: terminate_instances() takes exactly 3 non-keyword arguments (2 given)

I have checked the latest (github) python-boto versions and the maverick
installed one and they have only one argument passing :

chmouel@test1:/usr/share/pyshared$ grep -r terminate_instances boto
boto/services/service.py:                c.terminate_instances([self.instance_id])
boto/ec2/instance.py:        rs = self.connection.terminate_instances([self.id])
boto/ec2/connection.py:    def terminate_instances(self, instance_ids=None):
boto/pyami/copybot.py:            ec2.terminate_instances([self.instance_id])

when nova accept an extra `context` argument :

chmouel@test1:share/pyshared/nova$ grep -r terminate_instances *   
api/ec2/cloud.py:    def terminate_instances(self, context, ec2_id_list, **kwargs):

** Affects: nova
     Importance: Undecided
         Status: New

-- 
TypeError: terminate_instances() takes exactly 3 non-keyword arguments (2 given) 
https://bugs.launchpad.net/bugs/662579
You received this bug notification because you are a member of Registry
Administrators, which is subscribed to OpenStack.



Follow ups

References