Implement URI filtering to prevent port scanning with the web-download
Image import method.
Closes-Bug: #1748512
Change-Id: Ide5ace8979bb12239c99a312747b3151c1e64ce8
Fix inconsistency in the way parameters were being passed
around the tasks. It was preventing them from working
reliably.
Co-authored-by: Abhishek Kekane <akekane@redhat.com>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>
Closes-bug: #1749461
Change-Id: I05b5fe8d99cc0f8edd89c707fd030f5bf762fe06
When image-import call is made, all kind of things happens before
the image status transitions to 'importing'. We should do this as early
as possible to ensure that there is no user action against the image
while it's prcessed and the user gets the info that the importing is
actually happening.
Closes-Bug: #1749525
Change-Id: I3ff9f7af2f266dd60fd3ad738b1fb9eeb6fd9fb8
At this layer, it's a boolean filter; we should let the ORM
make the translation for whatever backend is in use. MySQL
didn't care, but PostgreSQL is a bit more picky.
Co-authored-by: Scott McClymont <scott.mcclymont@verizonwireless.com>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>
Change-Id: Id1e5d2cec3be48f6a5164582591f2fd2f565a96b
Closes-bug: #1749297
With modern servers it's not uncommon to see environments that has
dozens of logical processors. Glance defaults workers to number of
these logical processors seen by OS and each worker spins up pool
of 1000 threads. Having dozens of these thread pools consuming
resources is total overkill for most of the environments.
This change limits the amount of workers used by default to 8 which
should be plenty for most of the deployments. This limitation does
not affect if more workers is specifically configured in the config
file.
Change-Id: I6fcf2f8a416e34c0c719e1abd73f0525e686be5e
Closes-Bug: #1748916
In Image API v2.6, the image-create response returns an
'OpenStack-image-import-methods' header containing a list of
methods available in that cloud. This patch populates that
list from the enabled_import_methods configuration setting.
Following RFC 7230, if the enabled_import_methods is empty,
the header is not returned with the response.
Change-Id: I3066da36a0fbb83fe492bddb193975e42ffc5084
Closes-bug: #1748559
This change does not explode the list every time the
list_image_import_opts is called like 225a3396 did.
Change-Id: I865bface3b373e6f92bdbefa544d1fefa9da6990
Closes-Bug: #1748399
This change will duplicate the entries for each run of the list
function.
This reverts commit 225a33967e5f210e1dae9ec18f1132eff8abacbd.
Change-Id: I5be8c5d0e9c83cde64470eeaa27fc62bf393f300
After recent change in manage command [1]
deploying glance with postgres using stack.sh
fails as db_sync internally uses E-M-C and it
has support only for mysql.
Made provision to perform offline migration
if database is postgresql.
[1] https://review.openstack.org/#/c/433934/
Change-Id: Ie6c66da8b26930d783526a4b92b77baf493825f9
Closes-Bug: #bug/1747869
Review https://review.openstack.org/#/c/541740/ wrongly
used "extend" method in image_import_opts, this patch
fixes it.
Change-Id: I00375575d601ea6d970bb93c3f01f35c034976a2
Closes-Bug: #1748399
Includes information about the minor version bump and the new
import-method (web-download) introduced in this release.
Change-Id: Ib59d5cdae03f1ba146930abd48af4a5537d00fe5
Fixes the version neg hiding API v2.6 if the deployment has
disabled the Image Import feature. Being current API 2.6 should
be always returned.
Change-Id: I69ac7f36f4fbb633c731be439b69c2a682b91238
This patch adds a new "glance-manage db check" command
which will check the current state of the users upgrade
repos and relay info back to the user if the user has any
outstanding db upgrades left to run with appropriate exit code.
Co-Authored-By: Bhagyashri Shewale <bhagyashri.shewale@nttdata.com>
Implements: Ie1e2fec2361765ddf23da897abcf0e12e682612e
Change-Id: I1e0b02d615690f65a17b4ccfe4e4a72cc9e15ada
This change decouples Image Import Plugin Options from glance/opts.py
so that the deployer who wishes to add 3rd party plugin does not
need to inject the details to the file that is cluttered with all
Glance internal details.
Change-Id: Idc31dbb673efae224c97d2cafa4afa053e049c76
Closes-Bug: #1747926
Revise the releasenote from I98be97c42f23b60a72d520aad5f6078a96372c59
by reducing the release note to a summary and moving the details to
the documentation (Glance Admin Guide).
Co-authored-by: Bhagyashri Shewale <bhagyashri.shewale@nttdata.com>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>
Closes-bug: #1745124
Change-Id: Iaa3139fade75f1e3708dce8525f3571aba997589