nova/nova/image
Diana Clarke cab3d64cd9 Fix retry mechanism for generator results
Both v1 and v2 of the glance client return python generators in some
cases (rather than fully fleshed out lists) which thwarts our retry
mechanism. Convert generator results to a list, so that any potential
exceptions get raised earlier rather than later, allowing for retries.

Conflicts:

    /nova/tests/unit/image/test_glance.py

Conflict notes: I couldn't add the following assert from master because
client.api_servers didn't exist then. It was added in commit
590b2c3007. Instead, I added one that
follows the pattern at that time.

  self.assertEqual(str(client.api_server), "https://host2:9293")

Change-Id: Ibc84f1596d4eaabdef0a48f6cf4da2d1323843a8
Closes-Bug: #1557584
(cherry picked from commit ae6d868e2f)
2016-04-12 14:35:57 +00:00
..
download Images: fix invalid exception message 2015-07-19 08:58:25 -07:00
__init__.py Align internal image API with volume and network 2014-05-21 16:30:10 -04:00
api.py Fix description of parameters in nova functions 2015-02-10 11:44:45 +04:00
glance.py Fix retry mechanism for generator results 2016-04-12 14:35:57 +00:00
s3.py Use min and max on IntOpt option types 2015-08-14 04:37:21 +00:00