it is easy to get a list of all images in a region via:
liste_images = conn_region.get_all_images()
But this needs a lot of time because all images (ami, aki and ari) are
fetched.
Is it possible to fetch only the ami images?
Best Regards,
Christian
--
You received this message because you are subscribed to the Google Groups "boto-users" group.
To post to this group, send email to boto-...@googlegroups.com.
To unsubscribe from this group, send email to boto-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/boto-users?hl=en.
when I try to get a list of all images in an EC2 region via
get_all_images() with boto 1.9b inside GAE, I have this error:
<unknown>:23781:38: unclosed token
Traceback (most recent call last):
File "/base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py", line 507, in __call__
handler.get(*groups)
File "/base/data/home/apps/koalacloud/2.338932317309084728/
koala.py", line 1888, in get
liste_images = conn_region.get_all_images()
File "/base/data/home/apps/koalacloud/2.338932317309084728/boto/ec2/
connection.py", line 119, in get_all_images
return self.get_list('DescribeImages', params, [('item', Image)])
File "/base/data/home/apps/koalacloud/2.338932317309084728/boto/
connection.py", line 610, in get_list
xml.sax.parseString(body, h)
File "/base/python_dist/lib/python2.5/xml/sax/__init__.py", line 49,
in parseString
parser.parse(inpsrc)
File "/base/python_dist/lib/python2.5/xml/sax/expatreader.py", line
107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/base/python_dist/lib/python2.5/xml/sax/xmlreader.py", line
125, in parse
self.close()
File "/base/python_dist/lib/python2.5/xml/sax/expatreader.py", line
217, in close
self.feed("", isFinal = 1)
File "/base/python_dist/lib/python2.5/xml/sax/expatreader.py", line
211, in feed
self._err_handler.fatalError(exc)
File "/base/python_dist/lib/python2.5/xml/sax/handler.py", line 38,
in fatalError
raise exception
SAXParseException: <unknown>:23781:38: unclosed token
I think the list of images at EC2 is too long and GAE stops fetching
it. With Eucalyptus (I have only 10 images there) it's no problem to
fetch the list of images.
Has anybody here an idea how to get around a problem?
Best Regards,
Christian
Best Regards,
Christian
In my oppinion it is also not a good idea of amazon lacking the
ability to filter the returned
list on the server side.
Christian