Commit Graph

11 Commits

Author SHA1 Message Date
tikitavi 8104481c84 Remove code that used nova-cert
Change-Id: I744ca2901e2a77557ab54c2c9a37196e458a85c9
2017-07-07 11:35:22 +03:00
Andrey Pavlov b734297c8f switch on vpnaas for ec2-api
Change-Id: I2ef654cabbaaeb72425d1125bc6a21f9f1116068
2017-03-06 12:12:31 +03:00
Andrey Pavlov 35b5f89646 use 'strongswan' package for vpnaas
Change-Id: I387947e16d5ac2b29cdfee7e7576c831857fdccb
2016-12-07 13:28:58 +03:00
Andrey Pavlov 7fc6b47613 remove using euca2ools in install script
Change-Id: Ieff34b88d857727e02a3918908b2719535ff4b55
2016-03-17 13:52:50 +03:00
Feodor Tersin db0e78e0d0 Use released novaclient in gating
Since python-novaclient with microversion support (2.27.0) is released,
ec2api does not have to install it from git.

Change-Id: I1d17e5340128243597bd511cd4eb5006aedcfb5b
2015-09-08 07:09:24 +03:00
Feodor Tersin 6cd61acadb Use release candidate of novaclient w/ microversions support
Depends-On: I0e6574ddaec11fdd053a49adb6b9de9056d0fbac
Change-Id: I2114719c00d5693666dcc6b0a77dc35baa1b033b
2015-06-26 11:14:04 +03:00
Andrey Pavlov 45bde55bbb Update botocore client and use cloned novaclient for functional tests
Since botocore 1.0.0 is released we make ec2api functional tests
to be compatible with it.

Previously used novaclient modification (v14 of
https://review.openstack.org/#/c/152569/) is too obsolete. It is not
compatible with modern oslo libraries. Current version of this
modification (v34) is obsolete as well.

The proposed solution is to use a separate novaclient repository, which
can be maintained independently of community. Until microversions are
not supported by novaclient upstream.

Change-Id: I75e1bbcd81678a56a0940b696cfa5dbc2c159cc6
2015-06-24 15:26:02 +03:00
Feodor Tersin dc08136037 Copy S3 server implmenetation from Nova
Copy S3 server implmenetation and unit tests from Nova.
Add fileutils from oslo-incubator and refresh incubation modules.

Upgrade script doesn't copy buckets content because Nova S3 server
is not intended to be permanent full functionality object storage, but
has to be used temporary to CreateImage operation only.

Change-Id: I7d38b0a8e014dfff8238e7134d837d1074e4dd95
2015-04-01 16:37:46 +03:00
Andrey Pavlov 6831481d5c Add metadata to services list for devstack plugin
Change-Id: I1f06f8b5b627c9874ab18c3c3aec31879500ff04
2015-03-24 11:42:20 +03:00
Feodor Tersin 8282371da4 Get rid of Nova DB access
Important features:
- Nova client with microversion support is required.
- Nova API server may not support microversion 2.3 (not tested).
- Attaching volumes are not displayed in an instance bdm. Because Cinder
volume doesn't yet contain attachment info (which contains a device
name), and Nova instance volumes_attached doesn't contain a device name
(mountpoint). But a bdm must contain it.

Other features:
- v2.3 is requested always
- RunInstance result is formatted w/o extra v2.3 info, so it doesn't
contain rootDeviceName and other such info
- if rootDeviceName property is empty it's omitted instead of
to report fake /dev/sda1 as Nova EC2 does it. This leads to omit
rootDeviceType property in this case as well.
Also the same is done for corresponding image's properties.
- deleteOnTermination volume property is omitted for volume at all, and
for instance bdm if Nova doesn't report it. Previously this volume
property contained 'False' only.
- DescribeVolumes isn't used in DescribeInstances (as opposed to
DescribeNetworkInterfaces), because both methods require actual state
of corresponding OS objects, so we prevent duplication of OS requests.
- Not merged Nova client is used
https://review.openstack.org/#/c/152569/

Also:
- fix multi-run instances for EC2 Classic mode
- safe getting of OS instance security groups
- ec2context module alias is renamed to ec2_context, as it is in other
code
- fakes.CinderVolume is renamed to local standard OSVolume
- fakes.OSInstance it transformed to be initialized from a dictionary,
as it is for other fakes.OSXxx objects
- fix code style

Depends-On: Icf2b9739aaf87b4c9af13ad64a310081a68f776e
Change-Id: Id65ea0f56ffd889286d5ca082e1daf2643205c52
2015-03-20 15:33:05 +03:00
Sean Dague 91fb27b217 convert devstack support to external plugin
This uses the defined external plugin interface for devstack to run
the ec2-api service.

Change-Id: I1d7507c904dc0df452049433ceac34793595176f
2015-02-05 11:40:53 -05:00