6286 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
0e1eceff91 Updated from global requirements
Change-Id: Ic2ab79ce8bdcd5410ee8aa8b1e2e94816990c7a1
2018-02-17 09:27:52 +00:00
Brian Rosmaita
3d5f33f2b3 Update Queens info about Glance and uWSGI
Adds a "Known Issues" releasenote and updates the "running glance
under httpd" documentation.

Change-Id: Ifc315b40cea23af95fc969a9c3a9479e8692792c
2018-02-16 09:42:43 -05:00
OpenStack Proposal Bot
6033bad62f Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If75ab633d8345c707aea4752d2c237f1df5cc1be
2018-02-16 07:03:08 +00:00
Brian Rosmaita
10b9490969 Update admin docs for web-download import method
Change-Id: I8a9ffe2ca8a5b83374ac0b0e9d564e696f286930
Closes-bug: #1749478
2018-02-15 20:34:11 +00:00
Zuul
9eddf85d8a Merge "URI filtering for web-download" 2018-02-15 19:09:38 +00:00
Erno Kuvaja
1591f573ae URI filtering for web-download
Implement URI filtering to prevent port scanning with the web-download
Image import method.

Closes-Bug: #1748512

Change-Id: Ide5ace8979bb12239c99a312747b3151c1e64ce8
2018-02-15 15:36:28 +00:00
Zuul
b16af9efe5 Merge "Imported Translations from Zanata" 2018-02-15 14:00:36 +00:00
Zuul
3564e10144 Merge "Make the Image status transition early" 2018-02-15 07:22:04 +00:00
OpenStack Proposal Bot
fd41174074 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I5405aa8ceee2215461fee72393f0a305f37cbba6
2018-02-15 07:03:52 +00:00
Zuul
0468af9895 Merge "Use bool instead of int for boolean filter value" 2018-02-14 21:34:14 +00:00
Abhishek Kekane
0b22c77ab3 Cleanup basic import tasks
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
2018-02-14 11:27:47 -05:00
Erno Kuvaja
1f4a0cc4be Make the Image status transition early
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
2018-02-14 15:59:17 +00:00
Brian Rosmaita
bac4595e08 Use bool instead of int for boolean filter value
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
2018-02-13 16:42:51 -05:00
Zuul
418488ff2d Merge "image-guide: Update cirros image" 2018-02-13 21:30:43 +00:00
Nicolas Bock
78501fb550 image-guide: Update cirros image
The current CirrOS image is version v0.4.0. Update the guide to
download this version.

Change-Id: Icf9fce5e46c5044976035942be22a0f4c3f7ca96
2018-02-13 12:02:51 -07:00
Erno Kuvaja
6f87c7d567 Limit default workers to 8
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
2018-02-13 15:48:07 +00:00
OpenStack Proposal Bot
0b6e007235 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ie1b07feef6ac468cc9af32877193b362ad790a06
2018-02-13 06:21:53 +00:00
Zuul
d5936913e6 Merge "Imported Translations from Zanata" 2018-02-12 20:48:14 +00:00
Zuul
33ffdc9a1d Merge "Use configured value for import-methods header" 2018-02-12 20:48:10 +00:00
OpenStack Proposal Bot
e06895490f Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I64de6870f306b73e7e1debc5cdbeca1f3f5453a4
2018-02-11 07:16:12 +00:00
Zuul
262e61a02e Merge "Offline migration support for postgresql" 2018-02-10 21:15:25 +00:00
Brian Rosmaita
3712dccfdb Use configured value for import-methods header
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
2018-02-10 13:15:03 -05:00
Zuul
a2b8f9bb5e Merge "Fix bad usage of extend in list_image_import_opts" 2018-02-09 19:21:33 +00:00
Zuul
ebfce0a6e7 Merge "Revert "Fix wrong usage of extend in list_image_import_opts"" 2018-02-09 17:55:48 +00:00
Erno Kuvaja
33e5e30004 Fix bad usage of extend in list_image_import_opts
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
2018-02-09 14:41:14 +00:00
Erno Kuvaja
850bb916a2 Revert "Fix wrong usage of extend in list_image_import_opts"
This change will duplicate the entries for each run of the list
function.

This reverts commit 225a33967e5f210e1dae9ec18f1132eff8abacbd.

Change-Id: I5be8c5d0e9c83cde64470eeaa27fc62bf393f300
2018-02-09 14:37:43 +00:00
Zuul
8fdb9537a7 Merge "Imported Translations from Zanata" 2018-02-09 14:05:04 +00:00
Abhishek Kekane
106de18f32 Offline migration support for postgresql
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
2018-02-09 10:06:06 +00:00
225a33967e Fix wrong usage of extend in list_image_import_opts
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
2018-02-09 09:26:06 +00:00
OpenStack Proposal Bot
fde9d48a96 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I3999592816936fc7ea8539c19a10939ca6225d5d
2018-02-09 07:03:23 +00:00
bbb6fc06be Update reno for stable/queens
Change-Id: I154e725d01c4149d27b97c233b941cefd3f28331
2018-02-08 21:09:43 +00:00
Brian Rosmaita
d027102b2e Update Queens metadefs release note
Add info about If8e23756616e46391827ac3d85d287940862613f

Change-Id: I69f94c19bf883596471bb213dd14279ecc49e843
2018-02-08 20:04:39 +00:00
Zuul
f09651df2b Merge "Update api-ref for v.2.6" 2018-02-08 19:59:22 +00:00
Zuul
040b7fad2b Merge "Delete data if image is deleted after staging call" 2018-02-08 19:47:12 +00:00
Zuul
b9e95a8db3 Merge "Update the valid disk bus list for qemu and kvm hypervisors" 2018-02-08 19:47:08 +00:00
Zuul
8a3a5c565d Merge "Align Vers Neg Middleware to current API" 2018-02-08 18:36:22 +00:00
Zuul
73cba1c92c Merge "Add release note for API v2.6" 2018-02-08 18:16:22 +00:00
Brian Rosmaita
32f8724f6e Update api-ref for v.2.6
2.6 was experimental in Pike but is current in Queens.

Change-Id: I4f8c4ff72808aac1fc52c65673d28530aa9939f2
Closes-bug: #1748218
2018-02-08 12:32:48 -05:00
Zuul
c04ca3eb9d Merge "Implementation of db check command" 2018-02-08 16:01:23 +00:00
Brian Rosmaita
3207481c7a Add release note for API v2.6
Includes information about the minor version bump and the new
import-method (web-download) introduced in this release.

Change-Id: Ib59d5cdae03f1ba146930abd48af4a5537d00fe5
2018-02-08 10:33:38 -05:00
Zuul
4c221c7cc7 Merge "Decouple Image Import Plugin Opts" 2018-02-08 15:28:56 +00:00
Erno Kuvaja
f91c3a7016 Align Vers Neg Middleware to current API
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
2018-02-08 14:51:29 +00:00
Steve Lewis
08d1c7f930 Implementation of db check command
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
2018-02-08 17:32:33 +05:30
Erno Kuvaja
824badc189 Decouple Image Import Plugin Opts
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
2018-02-08 10:06:15 +00:00
Zuul
55fa35963a Merge "Revise import property injection plugin releasenote" 2018-02-08 07:01:10 +00:00
Brian Rosmaita
49a1a0a02b Revise import property injection plugin releasenote
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
2018-02-08 03:11:20 +00:00
Brian Rosmaita
20fcf18897 Correct 1-character typo
Glad someone read the doc carefully enough to notice this!

Change-Id: I3affd699e79489d2928b3101c1b86a5dbc989ff7
Closes-bug: #1733964
2018-02-07 21:36:12 -05:00
Zuul
185174bbd1 Merge "Regenerate sample configuration files" 2018-02-08 01:07:42 +00:00
Brian Rosmaita
26a09786f9 Release note for Queens metadefs changes
Change-Id: Ib13b88c6ef2bde9f7a191a2ff6b606fb3fcf05c1
Closes-bug: #1746834
2018-02-07 17:07:39 -05:00
Brian Rosmaita
7aaa4fcff6 Regenerate sample configuration files
Regenerate the configuration files for Queens RC-1

Change-Id: I010517b2075b84bff1d0fcc2cba17b794a271bcf
2018-02-07 16:01:54 -05:00