vavavr00m / boto

Automatically exported from code.google.com/p/boto
1 stars 0 forks source link

authorize_security_group working with boto 1.9b and not working with 2.0b4 #493

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
* Following code is working with boto 1.9b  and not working with 2.0b4.

region = boto.ec2.regioninfo.RegionInfo(name="Eucalyptus", 
endpoint="192.168.1.107")
conn = 
boto.connect_ec2(aws_access_key_id="WKy3rMzOWPouVOxK1p3Ar1C2uRBwa2FBXnCw",
                                aws_secret_access_key="huDWiOIApCTu3ayDzvts1tdhAXs3hgDqOdw",
                                is_secure=True,
                                region=region,
                                port=8773,
                                path="/services/Eucalyptus")

sg = conn.create_security_group('my_group', 'description')
auth = conn.authorize_security_group(sg.name, None, None, ip_protocol='tcp', 
from_port='22', to_port='22', cidr_ip='0.0.0.0/0')

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

http://groups.google.com/group/boto-users/browse_thread/thread/9a52990c96e0816d/
28cd875d457c56b6#28cd875d457c56b6

I am using 'Ubuntu Enterprise Cloud' (ubuntu 10.4)

(test_env)root@cc-host:~# cat /etc/eucalyptus/eucalyptus-version
1.6.2 

please send fix to sajuptpm@gmail.com

Original issue reported on code.google.com by sajup...@gmail.com on 2 Mar 2011 at 1:56

GoogleCodeExporter commented 9 years ago
There were API changes in EC2.  Later versions of boto have tracked those new 
changes and upcoming versions of Eucalyptus will, as well.  But current 
versions of Eucalyptus still support the old version.  This change:

https://github.com/boto/boto/commit/39083e4377ce0f6b7d7baa78f272fbbf2572d621#bot
o/ec2/connection.py

should address this issue but it may still be best to use the version of boto 
that is supported by the version of Eucalyptus you are running.

Original comment by Mitch.Ga...@gmail.com on 1 Jun 2011 at 2:02