The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Remove hacking and friends from lower-constraints, it's not needed
there.
Change-Id: I48fcd2521d99d0b77b976e87cc638fe5ac051315
If rules are created or searched with full permissions (ports 1 - 65535),
they are created or found with "null" ports
instead of (ports 1 - 65535).
Depends-On: I24d1a0016f76f6813a9f62294e7eeb9785fa711b
Change-Id: Ic3fbe89720135039ba2c2afaebf3fafebac4d7e3
If floating ip is on a port attached to devices other than a nova
compute instance, (e.g. it is attached to a loadbalancer) ignore it.
Change-Id: Icda92f0f4b5246aebb082cf48bef751d9e6df2ba
This change allows for the EC2 API call to RegisterImage to support
external URLS provided for the "ImageLocation" parameter:
https://docs.aws.amazon.com/cli/latest/reference/ec2/register-image.html
It enforces that all standards defined there are adhered to
This changes affects RegisterImage from S3 Bucket, requiring
that the "ImageLocation" for it begin with an "s3://" (case-insensitive).
Change-Id: I2a5e93de68b1a654418781fc77369d91dd17dd48
Signed-off-by: Tyler Parcell <Parcell.Tyler@gmail.com>
The commit I34b12b96de3ea21beaf935ed8a9f6bae2fe0d0bc and
Ib384ae8130dcc6cbd47a837d11ca171ce02ef29e introduced the
deprecated oslo_utils.timeutils.isotime() is deprecated
as of 1.6.
The deprecation message says to use the datetime.datetime.isoformat()
instead, but the format of the string generated by isoformat isn't
the same as the format of the string generated by isotime. The string
is used in tokens and other public APIs and we can't change it
without potentially breaking clients.
So the workaround is to copy the current implementation from
oslo_utils.timeutils.isotime() to ec2api.api.ec2utils.
For more informations:
https://docs.openstack.org/oslo.utils/latest/reference/timeutils.html
Change-Id: Id62fb53264b04a7ea6ae3035a129353c5cfa040a
Closes-Bug: #1461251
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
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
allocate-address without parameters allocate it in default vpc
associate and disassociate address in default vpc can be done by
public ip
release address in default vpc automatically disassociate it from
instance
add unit tests
Change-Id: I44b1aafdd6454805955871ff8076a6f6e81543ca
security groups in default vpc only
changed check_and_create_default_vpc function to return default vpc
fix unit test of describe_security_groups
Change-Id: I50bad4a6a7152eb03599e3985a43162c81500049
create_vpc,
_create_vpc,
_check_and_create_default_vpc
_create_vpc_rollback
add _check_and_create_vpc in case of exception
Change-Id: I831600d8b19182aba7cfa55f13e7df116f68aacd
create and attach an internet gateway for default vpc
ensure default vpc exists during describe internet gateways
update test for _check_and_create_default_vpc function
fix unit tests
add unit tests
Change-Id: Ia543cb2f3c9cdfef3a0dd552e82b40e9e0fc98d2
check if default vpc exists, create if not,
use it in describe_vpcs function,
fix unit test
add unit tests for default vpc creation
Change-Id: I32411c55a9877854ef11e52f082496bb6656291f
if network doesn't have gateway then additional host route
maust be added for accessing metadata server from the instance
Change-Id: Ib67c49d83e1b5d6c772cc21bd9604515f18fb21b
Remove the Oslo Incubator code for timeutils in favor for the
oslo.utils functionality.
Change-Id: Idb7917b80add6aa0f492e6974b630c3a8ffce71f
Depends-On: Ieff34b88d857727e02a3918908b2719535ff4b55
This change introduces ec2api.openstack.common.timeutils that
substitutes the deprecating functions from oslo_utils. Using the
isoformat in the datetime lib will change the time format in API.
So it is better to carry this function in ec2-api. The deprecation
happens in this commit.
https://review.openstack.org/#/c/252898/
Change-Id: Id3606e7ca73ab3e7d58cfe6131984dbf0f3b7e4d
Previously this was skipped because user keys were not accessible with
admin account. Since Nova v2.10 microversion provides admin access to
user keys's public data, this gap with legacy Nova EC2 could be fixed.
Change-Id: If0bb004eb894f6474fb0a65c8fb21dfbe43ae268
fix working with strings for metadata server,
for some instance properties and for errors.
do some magic with types/encoding.
Change-Id: I2446fc48b51dd903a719aa4dbb1a5556af19e5df
Port the solution for NSX VMware added into Nova during Liberty cycle by
https://review.openstack.org/#/c/147539
Change-Id: Id4ad1e1b6108818b99f769e9027800b1dafe1447
Currently image describe operation doesn't support some bdm v2 related
features of block device mappings. Like virtual (ephemeral and swap)
devices in block_device_mapping property, image source for a volume and
so on.
This patch uses previously introduced get_os_image_mappings to get a
list of image mappings in bdm v2 format and formats it.
Also rootDeviceType image attribute is always placed to the image.
deleteOnTermination attribute is always displayed as well.
Change-Id: Ie96b0dbf69926ff54b2581ad5cb6fe2636af2717
If subnet['gateway_ip'] is not None, Neutron prevents manual setting of
0.0.0.0/0 route to subnet host routes.
So we set gateway_ip to None during subnet creation if not internet
gateway is used in an associated route table. As a result Neutron
doesn't add its own 0.0.0.0/0 route, and we don't need to redirect it to
127.0.0.1 if default route is not set for a subnet route table. It
simplifies mapping of VPC route table to Neutron subnet host routes.
Depends-On: I5c314d513922d8a21b3e63de632bb9cd3484b076
Change-Id: Ibeeea1f5d92cc0aa08ac6c360c3e73fa67a45373
Refactor internal API of update subnet routes.
1 Prepare code to easy add vpn routes processing
2 Prevent updating routes for explicitly associated subnets in case of
default VPC route table reassociation.
3 Make sequence of API parameters more natural.
Change-Id: Ifcb9b4541156449da1ff74d171a3ac35266577b9