Commit Graph

16 Commits

Author SHA1 Message Date
xuanyandong 44f22cf2a5 Remove six
Replace the following items with Python 3 style code.

- six.PY2
- six.text_type
- six.string_type
- six.binary_type
- six.iterkeys
- six.moves
- six.itervalues

Implements: blueprint six-removal

Change-Id: I6195ceeeed2ebe1586973eaeef7fa9f29698fec2
2022-07-05 17:37:44 +08:00
Ngo Quoc Cuong 90ed02d682 Delete log translation functions and add hacking rule
The i18n team has decided not to translate the logs because it seems
like it not very useful; operators prefer to have them in English so
that they can search for those strings on the internet.

Since we have removed log translations completely, we should add hacking
rule to prevent future mistakes.

Change-Id: Ia7524308ef2675f8d41ac80b37dfc7e3787efd90
2017-07-03 04:14:44 -04:00
tikitavi 20f65fac2d fix ec2-api after deprecation of nova-network functions in novaclient
removed NovaEngine in addresses, availability_zones, instances, security_groups
removed unit tests for NovaEngine
disabled some unit tests using NovaEngine for further reworking

Closes-bug: #1691484
Change-Id: I662d5b57b9e46be80c1d2093038ada83897565eb
2017-05-24 20:00:19 +03:00
Andrey Pavlov 23a94de725 py34: fix convert_dicts_to_lists
keys() is an iterator in python3 and doesn't support indexing
values() is an iterator too and cannot be sorted

Change-Id: I02fcf72efbf1a30135873572ee4b78dff85b7b87
2015-09-09 17:50:04 +03:00
Feodor Tersin 25c4e40f1b Rename dict_to_lxml to dict_to_xml
We're not going to have many libraries to work with xml.

Change-Id: I42f97b4fa7f1b18e14a897ccb19850586d2d0334
2015-05-28 19:41:39 +03:00
Feodor Tersin 76c7d45442 Move dict to xml conversion to ec2utils
This allows to use the conversion from other code

Change-Id: Iccc886c3a899f65cad2a097712b312ac18143e4c
2015-05-27 16:43:14 +03:00
Feodor Tersin 711f7ec174 Remove underscore to camelCase conversion for XML output
Since we use camelCase in operation result formatting, this conversion
is unecessary.

Change-Id: I548c0be14c83be85eb06b84ae6f224b2b3477bf7
2015-05-27 15:45:24 +03:00
Andrey Pavlov 67eae1069d follow oslo
move to oslo.db and some other oslo libraries

Change-Id: I57e4f01bd46339cdfe3ed2e4748eb1e923cea584
2015-02-26 22:04:09 +03:00
Feodor Tersin 49c721f8c7 Use timeutils from oslo.utils instead of oslo incubator
Change-Id: I4ad485df22bb3779f855b17b74c012f380f12d8e
2015-02-26 13:38:39 +03:00
Andrey Pavlov e1a43652dc port rest of api request tests
Change-Id: I8c5f530d89ec9b3e414f626f5f8612f112d779fd
2015-01-20 21:48:29 +03:00
Andrey Pavlov 28756f3ad6 remove proxy to ec2
Change-Id: I7c20d19ba1d608c84fbcf9602fcd4be61e9f64ea
2014-12-26 16:05:16 +03:00
alevine 927bc06fe0 Forbid VPC-related functionality for usage without Neutron.
Change-Id: Ie67ffadea38e9d72236493d14d4e7cf9411de54a
2014-12-25 17:41:56 +04:00
Feodor Tersin bd25a18a1a Update copyright
Change-Id: I185fa28474fca0cc8666d6f59de251ce1f9683f2
2014-11-11 21:02:39 +04:00
alevine ebdc546811 Fixed bugs for vpc_scenario Tempest test.
Change-Id: I7643ad5f1c57a6a37e222d5707cd37042876f77d
2014-09-23 20:21:11 +04:00
alevine e0db6de2c0 Adding utils, tests for them and fixing some pep8.
Change-Id: If0e9deafb8923d76beee8f2da07e913beeb4a962
2014-08-05 17:46:53 +04:00
Alexandre Levine 66826e9e5b Initial EC2-API service commit.
This code introduces standalone service which proxies its calls to
existing nova EC2-API.
All the code here except for the ec2api/api/proxy.py,
ec2api/api/ec2client.py and some util functions is taken from current
nova and unused functionality is cut of it.
The proxy.py and ec2client.py files implement the new code which
proxies incoming request (on port 8788) to original EC2 API in nova
on port 8773.
The result is transparently translated back to user.

Change-Id: I4cb84f833d7d4f0e379672710ed39562811d43e0
2014-07-18 19:33:55 -07:00