Nova API microversion 2.92 removed the ability to generate a private
key. The user or client is now responsible for generating the key pair.
Start doing that using cryptography, which is in our requirements
(unlike paramiko, which nova uses).
included:
https://review.opendev.org/c/openstack/ec2-api/+/857880https://review.opendev.org/c/openstack/ec2-api/+/859192
Change-Id: I0032de8cd779beafbd6848a2aecbcb6455e8eada
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
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
current version of migration API doesn't allow to
pass several commands to one execute
Depends-On: I9f1f39b30d43dc16a474febcf6549cf1901732ec
Change-Id: I0a74c87c4c782a7a26aa0e67fada994cb3e31434
1) fix bug with filtering
filters were applied before unpaired items is added to result
2) fix races in default security group creation
3) add waiter for associate/disassociate address
4) fix security group classic test
it should choose default group group only from classic groups
5) fix describe_vpc_with_filters test
it can run in parallel with other test with same CIDR
6) fix networks list for instance run at subnet creation/deletion
7) fix selective decsribe by names
it should not delete valid items from db
Change-Id: Iadadefb8b4abebbb3b8efc0e536e5de30ed23dab
Updating of db item's os_id should be disabled. But a special case (None
-> smth) should be allowed.
Change-Id: I9a38c99d1a5d024ef38339e8d41eff7856cb3ebe
Since there is no part of code which adds an db item with other project,
this backdoor is not needed.
This patch removes this argument and its proxying by util functions.
This reverts commit b51eb4f350.
Change-Id: I70b5d2e7246152ac2b1014f51f89f44862acab44
db_api.get_items_ids return id mappings (id-os_id pairs) for specified
filters. Currently it doesn't allow filters by ec2 ids. This reduces its
scope of usage.
Change-Id: Ib855429dc2fc650ef7ecff07c637b8d4b45a07db
- public ami images in DB had incorrect project id
- public aki,ari images had incorrect project id
Change-Id: I752d0f98fed150cfa7c5de792d50b091e00afae1
1 Rename to get_items_ids
2 Fix a bug of filtering
3 Add a test on it
4 Add a test on ec2utils.os_id_to_ec2_id
Change-Id: I0ae4b0d2cd937ffa810f7cea3d818a72e3fac845
Remove obsolete workaround for transaction in sqlite.
Prevent make request with empty filter (supress sqlalchemy warning).
Bonus: enable a test by fixing its lame name.
Change-Id: Ia7a68b6942c5a5fceab9868769d30db7862fc47e
At the moment we cann't completely get rid of validation of a kind of
an object ID, because common parameter validator doesn't validate
complex parameters. So this validation is still used in several cases.
Change-Id: Ibbe73a74306f2359f6554fcc8ef7bc31d356c167
It was necessary to:
- extend DB-layer API
- add ec2util functions to auto insert db items
- fix and improve Describer class
- use Describer class for volumes and snapshots
Change-Id: Ief0c3507fd1c7d7e3262a34cbd1d8bfa1d4a9ace