summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlexey Izbyshev <izbyshev@ispras.ru>2012-11-15 21:35:55 +0400
committerAlexey Izbyshev <izbyshev@ispras.ru>2012-11-30 01:28:57 +0400
commit155e3ae7c3e6e51937c801c10dd976e589af8969 (patch)
treebbf2f92b55c51fc9cc843d9e2fb5344b00bc9867 /tools
parent8243f755a3188e441da7ee205cd7b83da2eef81f (diff)
downloadtuskar-ui-155e3ae7c3e6e51937c801c10dd976e589af8969.tar.gz
Fix handling of UUID-typed flavor ids
Change the type of flavor_id hidden field in EditFlavor form from IntegerField to CharField since flavor id is a string representation of UUID now. Additionally change the type of similar hidden fields in CreateExtraSpec and EditExtraSpec forms. Remove flavor id generation from form handling code. Id generation should be done only in corresponding OpenStack components (nova, etc.). Since nova supports flavor id autogeneration and 'flavorid' parameter of FlavorManager.create() in novaclient is optional, remove 'flavorid' parameter from api.nova.flavor_create(). Change flavor ids in test data from strings containing integers to UUID-like strings to make them correspond to real data. Update flavor tests to make them compatible with new api.nova.flavor_create() signature. Remove conversions of flavor id to int from all tests. In particular, update test_index_flavor_get_exception() to make it generate unique UUID flavor ids instead of integers. Fixes bug #1076761 Change-Id: Iaa308578981f0379ff61a9dd42620eaf0ab1d605
Diffstat (limited to 'tools')
-rw-r--r--tools/pip-requires2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pip-requires b/tools/pip-requires
index bd467869..b10fdf9a 100644
--- a/tools/pip-requires
+++ b/tools/pip-requires
@@ -6,7 +6,7 @@ netaddr
python-cinderclient
python-glanceclient<2
python-keystoneclient
-python-novaclient
+python-novaclient>=2.10.0,<3
python-quantumclient>=2.0
python-swiftclient>1.1,<2
pytz