Commit Graph

11 Commits

Author SHA1 Message Date
Takashi Kajinami eb3b4851a9 Use volume v3 API by default
Currently ec2api uses the volume v2 API by default, but v2 API was
deprecated a while ago and will be removed fron cinder shortly.
This patch ensures that ec2api uses the volume v3 API instead by
default.

Closes-Bug: #1908993
Change-Id: I280d3c009893c67d215b0c7106eec7fe2435c335
2021-01-24 23:34:37 +00: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
tikitavi 8104481c84 Remove code that used nova-cert
Change-Id: I744ca2901e2a77557ab54c2c9a37196e458a85c9
2017-07-07 11:35:22 +03:00
Ngo Quoc Cuong 335a0eb4ad Remove log translations
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.

See http://lists.openstack.org/pipermail/openstack-dev/2017-March/thread.html#113365.

Change-Id: I4418a388934ef58acb70c7f637b0236a6ccc7fe6
Closes-Bug: #1682101
2017-05-11 13:43:05 +07:00
Andrey Pavlov 6d30c69895 use glanceclient version '2'. fix keystone error message.
current devstack deploys glance version '2' only.
use it.

messages in keystone's exceptions was changed.
fix unit tests that checks it.

Change-Id: I7ed1f0ff518efa374a5e3b693c5785958c77340d
2017-04-19 13:10:40 +03:00
Feodor Tersin 480dc02de0 Switch to Nova v2.32 API
At v2.33 new bdm field 'tag' was introduced. This field is automatically
created by snapshot operation for volume backed instance (ebs). The
result of the operation - bdm - is stored in metadata of the snapshot
image. When ec2api user requires to run an instance with this image
changing some attributes of the attached volume (e.g.
delete_on_termination), this bdm is merged with user defined parameters
and sent to Nova. As the result the new 'tag' field is sent to Nova
since v2.32.

However the used API version is v2.10, which does not support 'tag'
field. This did not lead to faults (until I56348dc2) because Nova
verified the first bdm only, but the first bdm for ebs instances was a
bdm for the image. With the noted fix this no more works.

This patch swithes ec2api to use v2.32 to get 'tag' field supported.

Change-Id: I68329bbffeeff5d460f3fca1a212ba20b35fc284
2016-12-29 15:31:43 +03: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 3a39d4d5f8 switch to using new versions of cinder service
cinder v1 is deprecated now. switching to v2.

Change-Id: I1a9f3de37c8a53ce99277d4c1bd83c9f24f1b9ef
2016-09-13 12:01:57 +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 e22e6a1bc0 fix working with cinder API v2
add cinder_service_type to config
and fix code to be compatible with cinderclient v2

Change-Id: Ia7eec95e19c5472d741fc9759ef4f8929ac516f7
2015-12-15 09:23:54 +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