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
Doug Hellmann
96756ff916
fix tox python3 overrides
...
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: Id2964291cd5e56af09f84d1aeab8138c10f9758f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-11-12 11:02:34 +03:00
Andrey Pavlov
5fc752ca6f
remove deprecated options
...
options was deprecated in previous release. remote them now
Change-Id: I524c13c59b48031b35223f81f363bc4c0862b138
2018-01-18 14:45:37 +03:00
Gage Hugo
6e99a751b2
Correct import of keystoneauth1 session
...
keystoneclient.session has been long deprecated in favor of
keystoneauth1.session. This change corrects the import to use
keystoneauth1.session instead of keystoneclient.session.
Change-Id: I4a0992c5dd171975fd561d4472cb0c1d24592e8a
2017-09-13 15:59:49 -05:00
Andrey Pavlov
7af41603a5
Use botocore in API instead of boto
...
Change-Id: Ifeda67bf4b165c5aea20a4fe413f6a0a9ca58332
2017-08-10 14:48:49 +03: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
Andrey Pavlov
d67adb7223
rework creating admin context - use keystoneauth1 lib
...
rather than own creator of session and auth_plugin from
keystoneclient library.
Change-Id: Id7f71e08de13e77586832f6d12cba1caff3772fe
2016-09-16 17:20:55 +03:00
Andrey Pavlov
e25d1908e6
rework accessing keystone resources
...
do not use keystone_url in keystone_ec2_tokens_url definition.
configure these two urls independently.
Change-Id: I78c54c26820dfd7b52bf7cec81fa4ca0174a9eb6
2016-02-01 20:57:04 +03:00
Andrey Pavlov
da6f97f291
rework certs stuff
...
remove ca_certs using for incoming requests
do small refactoring for keystone client using
Change-Id: I83dbb71248835cfc361eca691647deaa99023c8a
2015-11-12 11:19:06 +03:00
Andrey Pavlov
108a8387c6
fix working with incorrect certificate
...
use 'insecure' flag from config
Change-Id: I880dffc58ab428dcd0aacf62815faeddc0321e9f
2015-11-11 12:55:43 +03:00
hayderimran7
8c2e52fe9f
Small typo fix in faultwrapper catch
...
During our SSL testing with ec2api, we observed the
spelling is wrong here.
Change-Id: I6454009037e4deca35fa5aefcc400c866687e0f2
2015-10-27 13:47:57 -07:00
Andrey Pavlov
38627e2cde
py34: fix ec2 auth - headers must be copied to dict
...
py34 takes only keys` names from EnvironHeaders when converts
them to json. program should copy headers to dict and pass them
to jsondumps
Change-Id: I8967442b383d2fceafb471d9cb7289163900fc33
2015-09-14 23:18:42 +03:00
Jenkins
9463b0623b
Merge "Use keystone service for regular context initialization"
2015-09-11 10:01:51 +00:00
Andrey Pavlov
d9a300b006
py34: fix exception formatting to user-friendly message
...
ex.args in python3 is a tuple of all arguments that was passed to exception init
Change-Id: I32c16965e3f0a62371c3a99811d34f697c5a3246
2015-09-10 20:17:02 +03:00
Feodor Tersin
0ce917136c
Use keystone service for regular context initialization
...
Using session is a recommended way to provide auth data to OS clients.
Change-Id: I267847b2be9938d991c4c988f65179e2303545ec
2015-09-10 09:19:43 +03:00
Andrey Pavlov
ec68ed0584
py34: fix dictionary changing during iteration on it
...
Change-Id: I2aea8a1cf3ddd795b11c6a0629c64cedc0367db2
2015-09-09 17:50:22 +03:00
Andrey Pavlov
9b25581650
py34: fix exception conversion for logging
...
Change-Id: I4b31e9c397afa4704a482339bad67ecbc6afb1ff
2015-09-09 17:50:22 +03:00
Andrey Pavlov
dff2029db6
py34: fix body's response conversion
...
Change-Id: I15b7c82acbd9e0537567062b00bddb22690b3ff7
2015-09-09 17:20:03 +03:00
Andrey Pavlov
245754fdaf
use request id generator from oslo_context
...
Change-Id: I6ca0ade07df18ae0af0eefa24ca9406d533d5c2b
2015-09-09 16:41:36 +03:00
Andrey Pavlov
0167580e6d
adopt ec2 api to work with keystone v3 api
...
Change-Id: Idbafeff0aff9a32852ef0dbeaae5b341a7c06b61
2015-08-11 10:40:17 +03:00
Andrey Pavlov
0edf330293
remove roles from context
...
roles variable needs to check policies in nova.
but ec2api doesn't have policies checking.
Change-Id: If17c4458fabfe947752c526b8015b7b7e0c54d72
2015-08-10 13:32:58 +03:00
Andrey Pavlov
1e591f5f63
update from oslo-incubator
...
Change-Id: Ic3157b98e8829cc0220e617eb27b552127eafe20
2015-06-24 18:33:23 +00:00
Andrey Pavlov
e1e116e420
Don't add exception instance in LOG.exception
...
LOG.exception will print out the full stacktrace, that's enough.
We should only record meaningful message.
merged from I8b5c581717e6b78c11c46e226463927450c9f287
Change-Id: I49865d558ff5feda2d6a803741fbee18064b2aec
2015-04-02 14:36:49 +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
Feodor Tersin
1c30d32264
Common exception handling
...
Change-Id: Ibb2b9623f8d5fa7380c930e1b099028a94932b70
2015-02-21 01:41:12 +03:00
Andrey Pavlov
47d0a7c35b
rework v4 auth.
...
workaround webob bug.
unify keystone auth with current nova code.
make secret_key lazy loaded.
Change-Id: I475e422af28b8b14a57cbb86901b5059e457d3a0
2015-02-03 17:00:25 +03:00
Feodor Tersin
4f9bf4c1db
Fix bug of unhandled exeption translation
...
Change-Id: Ib690209707a2b09543b7cce39f8c084941682263
2015-01-29 17:58:11 +04:00
Andrey Pavlov
ec001f1d88
port test_middleware
...
Change-Id: Ie629344985659d64705b85add39fb75bb7493c2c
2015-01-20 16:30:23 +03:00
Andrey Pavlov
0db4e8ed8b
remove validator
...
Change-Id: I2847527fd2dd39dfb991e446d6d0ce3e65e5483c
2015-01-08 15:50:40 +03:00
alevine
6671fcdd57
Reworked validation mechanism once more
...
Change-Id: I2d833fc4c3a1d4178075354eddccfe9f195d3e3a
2014-12-30 17:11:44 +04:00
Andrey Pavlov
4e508a1841
remove access to nova's instance id mapping table
...
Change-Id: I04475a22067d6892632e0e3b608b4bd1e789ab12
2014-12-30 08:53:50 +03:00
alevine
fa1397fe10
Reworked initial parameters validation mechanism
...
Change-Id: Icf9be8a9d1a70365be21c40e684a3184095947c2
2014-12-29 12:36:33 +04:00
Andrey Pavlov
28756f3ad6
remove proxy to ec2
...
Change-Id: I7c20d19ba1d608c84fbcf9602fcd4be61e9f64ea
2014-12-26 16:05:16 +03:00
Feodor Tersin
01e20e6cfa
Tags implementation
...
Change-Id: Ifcc52758bed9f855928d56527c2a0edb4d5c113e
2014-12-22 14:56:14 +04:00
Andrey Pavlov
e4c4463ab1
support aws v4 signature
...
Change-Id: Ic9af4f35239e534b4ce05cd186f071cd22f8882d
2014-12-11 22:04:44 +03:00
alevine
f5f6ff08e8
Fixed outstanding issues from 3 previous reviews comments.
...
Change-Id: I23de8a756003e3f065c910c6dfffcd560a1f10b0
2014-12-09 19:56:09 +04:00
alevine
9b03a6bc4f
Added AvailabilityZones and Regions. Added universal describe.
...
Change-Id: I82f1fe0a8e1fbd23d9b1d2fcc27523ad1a88e8af
2014-12-07 03:45:48 +04:00
Feodor Tersin
25bdbe78fe
Use custom exceptions for Nova DB errors
...
Change-Id: Idd4af2af80b91cbdc566f47fa7b5e38acc53cd71
2014-11-22 22:20:28 +04:00
Feodor Tersin
bd25a18a1a
Update copyright
...
Change-Id: I185fa28474fca0cc8666d6f59de251ce1f9683f2
2014-11-11 21:02:39 +04:00
Feodor Tersin
e4281fab82
Log traceback on unexpected errors
...
Change-Id: I828f187ea594fdca993068463542180158695bd3
2014-11-10 20:10:51 +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