Commit Graph

5782 Commits

Author SHA1 Message Date
OpenDev Sysadmins 7336c91e73 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:45:19 +00:00
OpenStack Proposal Bot 0a2074ecef Updated from global requirements
Change-Id: I22f6fa133c05557160facf3208e510f562878b69
2017-05-15 23:30:11 +00:00
OpenStack Proposal Bot 57c4d7d78f Updated from global requirements
Change-Id: I3059cec5f735c47d5e4cdee33730675b4b5eca72
2017-03-09 18:13:20 +00:00
Jenkins 13f96bf28c Merge "Update UPPER_CONSTRAINTS_FILE for stable/ocata" into stable/ocata 2017-02-10 15:57:06 +00:00
Andreas Jaeger 81a4cd81a9 Prepare for using standard python tests
Add simple script to setup mysql and postgresql databases, this script
can be run by users during testing and will be run by CI systems for
specific setup before running unit tests. This is exactly what is
currently done by OpenStack CI in project-config.

This allows to change in project-config the python-db jobs to
python-jobs since python-jobs will call this script initially.

See also
http://lists.openstack.org/pipermail/openstack-dev/2016-November/107784.html

Change-Id: I5191afb3e8c0fff9f82cb2d937343a67348c9c34
Needed-By: I5ca756d8aeb4fe90fd4ca7ac381a7f684b5c56fb
(cherry picked from commit b628acec24)
2017-02-03 20:14:54 +01:00
OpenStack Release Bot 93a75f69d4 Update UPPER_CONSTRAINTS_FILE for stable/ocata
Change-Id: I8f3ea937b574873d4aa287eee98f3a5b4ae8db9b
2017-02-03 10:43:44 +00:00
OpenStack Release Bot 5fbe2413ca Update .gitreview for stable/ocata
Change-Id: Ie338cf9179ca9f487f823be48d3493ec10c0a8c9
2017-02-03 10:43:43 +00:00
Jenkins 8997684aab Merge "Refresh config files for Ocata RC-1" 2017-02-03 05:48:16 +00:00
Brian Rosmaita f7adc0f22c Refresh config files for Ocata RC-1
Regenerated the config files before branching.

Change-Id: I0fee0f4604997ccb388dd8e25dee9d388fe21f14
2017-02-02 23:40:19 +00:00
Brian Rosmaita fb851b9ead Alembic migrations/rolling upgrades release note
This releasenote describes the effect of the following changes:
  * Ie8594ff339a13bf190aefa308f54e97ee20ecfa2
  * I77921366a05ba6f9841143af89c1f4059d8454c6
  * Ie839e0f240436dce7b151de5b464373516ff5a64
  * I34f5623d6804e9fe594e6b5b196ea4a162578196

Change-Id: Iaa411c3f3bbe5397da239409f504dcb4d769b08b
2017-02-02 14:00:56 -05:00
Jenkins 3f98eb08fa Merge "Add expand/migrate/contract migrations for CI" 2017-02-02 18:27:38 +00:00
Jenkins d6e83cc382 Merge "Add expand/migrate/contract commands to glance-manage CLI" 2017-02-02 16:45:56 +00:00
Jenkins 3f7b2b68e8 Merge "Refactor tests to use Alembic to run migrations" 2017-02-02 13:09:46 +00:00
Hemanth Makkapati 9859df2d1f Add expand/migrate/contract migrations for CI
This patch adds equivalent expand/migrate/contract migration scripts for
Community Images. The expand migration
'ocata_expand01_add_visibility.py' creates a new migration branch 'expand'
from the last known migration i.e., 'mitaka02'. Similarly, the contract
migration 'ocata_contract01_drop_is_public.py' creates another new
migration branch called 'contract' from the last known migration.

The data migration 'ocata_migrate01_community_images.py' migrates
all rows in the database at once. There is possibility of performance
degradation while the data migrations are running.

Change-Id: I34f5623d6804e9fe594e6b5b196ea4a162578196
Partially-Implements: blueprint database-strategy-for-rolling-upgrades
Co-Authored-By: Hemanth Makkapati <hemanth.makkapati@rackspace.com>
Depends-On: Ie839e0f240436dce7b151de5b464373516ff5a64
2017-02-02 00:16:04 +00:00
Alexander Bashmakov 0f0354a8b8 Add expand/migrate/contract commands to glance-manage CLI
The parent of this patch introduced the change to Alembic-based
migrations. This commit builds on top of that by adding expand,
migrate and contract commands to the glance-manage tool.
Appropriate documentation is updated and failing tests are adjusted
to accomodate the new database versioning schema.

Data migrations are expected to be run in the background with older
Glance services being active during the upgrade process.

Partially-Implements: blueprint database-strategy-for-rolling-upgrades
Co-Authored-By: Hemanth Makkapati <hemanth.makkapati@rackspace.com>
Change-Id: Ie839e0f240436dce7b151de5b464373516ff5a64
Depends-On: I77921366a05ba6f9841143af89c1f4059d8454c6
2017-02-01 23:23:11 +00:00
Hemanth Makkapati 95c7c1b753 Refactor tests to use Alembic to run migrations
* Functional tests now use alembic instead of sqlalchmey-migrate
  to build and destroy test database.
* All tests now use a file-based sqlite db as opposed to an in-memory
  database.

Partially-Implements: blueprint alembic-migrations
Change-Id: I77921366a05ba6f9841143af89c1f4059d8454c6
Depends-On: Ie8594ff339a13bf190aefa308f54e97ee20ecfa2
2017-02-01 16:08:17 -06:00
Jenkins b07c6e76f3 Merge "Port Glance Migrations to Alembic" 2017-02-01 19:00:04 +00:00
Jenkins 967303d5e9 Merge "Update deprecated show_multiple_locations helptext" 2017-02-01 05:13:07 +00:00
Hemanth Makkapati 21d431013f Port Glance Migrations to Alembic
This change proposes the use of Alembic to manage Glance migrations.
* Introduce new directory ``alembic_migrations`` under
  ``glance/db/sqlalchemy``. This directory is the home for all glance
  migrations henceforth. All the migration scripts reside under
  ``versions`` directory.
* All the migrations up to Liberty are consolidated into one migration
  called ``liberty_initial`` as those migrations are not supported
  any more. Mitaka migrations are retained but under a different naming
  convention.
* All the glance manage db commands are changed appropriately. They now
  use alembic to perform operations such as ``version``, ``upgrade``,
  ``sync`` and ``version_control``.
* The database versions are not numerical any more. They are the revision
  ID of the last migration applied on the database. Since we don't
  support migrations before Mitaka, the Liberty version ``42`` will now
  appear as ``liberty``. Migration ``43`` and ``44`` in Mitaka appear as
  ``mitaka01`` and ``mitaka02`` respectively.
* When one performs a ``sync`` or ``upgrade`` command, the database is
  first stamped with an equivalent alembic version before upgrading.
* The older migration scripts are retained so that users can correlate
  with the new migrations. Also, it is probably safe to retain them until
  the alembic migrations become stable. Similarly, the ``migrate_version``
  table is not removed yet.

Partially-Implements: blueprint alembic-migrations

Change-Id: Ie8594ff339a13bf190aefa308f54e97ee20ecfa2
Co-Authored-By: Alexander Bashmakov <alexander.bashmakov@intel.com>
Depends-On: I1596499529af249bc48dfe859bbd31e90c48a5e0
2017-01-31 22:42:43 -06:00
Jenkins a77ca91133 Merge "Refine migration query added with CI change" 2017-02-01 04:36:27 +00:00
Brian Rosmaita 58bf19d497 Correct 2.5 minor version bump release note
Current release note says adding a member to a private image will
result in a 409, but it actually results in a 403.  Changing the text
to say the more neutral "4xx response" without specifying a return
code, because there are several errors that could happen here, for
example, 401, 404, 403.  Interested parties will know to look in the
api-ref, where the error codes can be listed with more context than
is appropriate for a release note.

Change-Id: If513e5a0441b2c110c9339544a47ad33d77afaaf
2017-01-31 11:28:32 -05:00
Jenkins e842cffc12 Merge "Add release note for image visibility changes" 2017-01-31 09:26:28 +00:00
Jenkins d86000bf2e Merge "refactor glare plugin loader tests to not mock private methods of stevedore" 2017-01-31 09:25:37 +00:00
Jenkins 4fc1654494 Merge "Update api-ref for image visibility changes" 2017-01-31 08:35:38 +00:00
Brian Rosmaita 76aeab31f0 Update api-ref for image visibility changes
Add text to the api-ref to document the changes introduced by
"Implement and Enable Community Images", whose change identifier
is I94bc7708b291ce37319539e27b3e88c9a17e1a9f.

Change-Id: Ib18c6ac226267ec15b399b71dbfefed33a1dbffd
2017-01-30 12:29:59 -05:00
Doug Hellmann fb2cedc462 refactor glare plugin loader tests to not mock private methods of stevedore
This change updates the glare plugin loader tests to avoid mocking
private methods of objects coming from the stevedore library. It looks
like some of the tests could probably be deleted, since they seem to be
testing stevedore and not glance, but it was easier to just fix them
than to verify that.

Change-Id: I5ee634d0af9d7942bfd5b69c3e7336876ab42269
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-01-30 09:45:49 -05:00
Dharini Chandrasekar 689dfae6db Refine migration query added with CI change
The query added with CI change [0] was using the python 'and'
instead of sqlalchemy's 'and_()'. This patch changes that.
This patch also further refines the query to look specifically
for visility 'private' instead of '<> public' for accuracy during
setting of visibility to 'shared'.

[0] I94bc7708b291ce37319539e27b3e88c9a17e1a9f

Change-Id: I6851aa0e5ca8cecaff518609c14cd528bca95ade
2017-01-29 19:37:20 +00:00
Davanum Srinivas b55dd079e0 Hack to support old and new stevedore
See Id675f335957a95fcfce61934dfbfbb2c64af761a, the
_find_entry_points is now list_entry_points.

We should be using extension.ExtensionManager.make_test_instance
to set up the extensions like the one in:
Ie9af444e7f8842ffb3e275ede52b802de02e6e99

Just to get past the problem we have merging stevedore
upper constraints, filing this review

Change-Id: I141b17f9dd2acebe2b23f8fc93206e23bc70b568
2017-01-28 14:25:23 -05:00
Jenkins 7d0d99571a Merge "do not mock private methods of objects from libraries" 2017-01-28 06:17:31 +00:00
Doug Hellmann d64f6bcbae do not mock private methods of objects from libraries
This patch fixes tests that were using mock to replace a private method
of a library instead of using the public testing interface provided by
that library. The new release of stevedore changes the name of that
private method, which breaks these tests. Because the requirements list
is gated on glance's unit tests, the test failure is preventing other
projects from adopting the new release of stevedore.

Change-Id: Ie9af444e7f8842ffb3e275ede52b802de02e6e99
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-01-28 01:47:44 +00:00
Jenkins b7c8936aa3 Merge "Bump minor API version" 2017-01-28 00:20:40 +00:00
Brian Rosmaita bd5a23df09 Update deprecated show_multiple_locations helptext
This option will be mentioned in an upcoming OSSN.  I think it will
be confusing to operators if the option is removed now, and it will
also be confusing if the text says "will be removed in the Ocata
release".  This patch changes the text to say "will be removed in
the Pike release or later".

Corresponding release note has been added.

Co-Authored-By: Brian Rosmaita <brian.rosmaita@rackspace.com>
Co-Authored-By: Nikhil Komawar <nik.komawar@gmail.com>

Change-Id: Ib599afaee8f48f141be125a4016aece1e40e36cf
2017-01-27 14:34:22 -05:00
Brian Rosmaita f905ff08f1 Add release note for image visibility changes
This is the release note for "Implement and Enable Community Images",
whose change identifier is I94bc7708b291ce37319539e27b3e88c9a17e1a9f.

Change-Id: I3502de58b1d2460f8a79500b033dd58f7de28f5e
2017-01-27 14:26:00 -05:00
Jenkins 0108666f2b Merge "Update api-ref for partial download requests." 2017-01-27 09:09:06 +00:00
Dharini Chandrasekar 36a1b7c82e Update api-ref for partial download requests.
Change [1] fixed partial downloads in glance and changed the
status codes to be more appropriate. Updating api-ref to reflect
what the v2 code will now do.

[1] I3cd47b998be79604511b3cd4879209820cf776b7

Change-Id: I70e3f60c3ce3d0eeb7b457496dbbe623b2ff473e
2017-01-26 21:03:36 +00:00
OpenStack Proposal Bot 902880dc80 Updated from global requirements
Change-Id: I4329503ba4d90f14ccdda72feaea544b1b615091
2017-01-26 12:49:58 +00:00
Jenkins 9c7b25d6f8 Merge "Add image update tests for is_public" 2017-01-26 06:41:19 +00:00
Jenkins fd2d68615b Merge "Enable python3.5 testing." 2017-01-25 20:12:39 +00:00
Brian Rosmaita 3a96347fe2 Eliminate reference to metadefs 'namespace_id'
In most places, the api-ref refers to the 'namespace_name' in URLs,
but in two places in the metadefs-namespaces-properties file, the
term 'namespace_id' is used.  This patch fixes those two occurrences
in the interest of consistency, but also because it is causing a
warning that's interpreted as an error in the latest version of
os_api_ref [0].

[0] http://lists.openstack.org/pipermail/openstack-dev/2017-January/110606.html

Change-Id: I86435a216c9c8d8bd391fb662049662d7d303ae5
2017-01-23 20:46:05 +00:00
OpenStack Proposal Bot d64fe8bd1b Updated from global requirements
Change-Id: I8db4c8fd14fe74e88c685364b0d454cdf3ae7f7f
2017-01-21 15:47:41 +00:00
Dean Troyer 811941a9cb Add image update tests for is_public
These tests check the value of the is_public attribute after attempting
to set it in an image update.  Before https://review.openstack.org/369110
these work, after test_update_image_private() fails.

https://review.openstack.org/#/c/423499/ fixes the regression, let's
add these tests from the Every-Little-Bit-Helps Dept. to verify one last time.

Depends-on: I996fbed2e31df8559c025cca31e5e12c4fb76548
Change-Id: I992da5c291036279c84bff53b83661e461f80ad1
2017-01-20 22:44:27 +00:00
Ian Cordasco 18acc704a1 Fix regression introduced by Community Images
Updating an image in v1 skipped the work to ensure that the image dictionary
would be Image v2 compliant. It was hidden inside an else clause and was only
run when there was no image id provided. This meant that only sometimes would
is_public be appropriately converted to visibility.

A functional test has been added to prevent regression and the code has been
mildly altered to fix the issue.

Closes-bug: #1658164
Change-Id: I996fbed2e31df8559c025cca31e5e12c4fb76548
2017-01-20 22:37:28 +00:00
Brian Rosmaita c8028768e6 Bump minor API version
Change-Id I94bc7708b291ce37319539e27b3e88c9a17e1a9f (Community
Images) entails a minor version bump in the v2 API.

Change-Id: I2b7cd5ec9b974ebc738feb89ef22c428fbe3be06
Depends-On: I94bc7708b291ce37319539e27b3e88c9a17e1a9f
2017-01-19 18:16:51 -05:00
Jenkins b7c627ef68 Merge "Implement and Enable Community Images" 2017-01-19 18:24:08 +00:00
Timothy Symanczyk 265659e8c3 Implement and Enable Community Images
This change replaces the existing boolean 'is_public' column for
the 'images' table with enum 'visibility' column featuring the
four explicit visibility values - public, private, shared,
and community.

This change also implements and enables all backend code to
utilize the new values.

Co-Authored-By: Timothy Symanczyk <timothy_symanczyk@symantec.com>
Co-Authored-By: Dharini Chandrasekar <dharini.chandrasekar@intel.com>

Implements: blueprint community-level-v2-image-sharing
Closes-Bug: #1394299
Closes-Bug: #1452443
Depends-On: I6e3268f3712cbc0aadb51d204c694023b92d55a5
Change-Id: I94bc7708b291ce37319539e27b3e88c9a17e1a9f
2017-01-18 17:56:12 +00:00
Jenkins 0bf9d80588 Merge "Update to "disallowed minor code changes"" 2017-01-17 18:27:31 +00:00
Brian Rosmaita 61e9858ac7 Update to "disallowed minor code changes"
Added section about minor typos in comments being disallowed,
following the discussion at the Glance meeting on 3 November.

Change-Id: Ic6c6369895a7095c01c1810358f4355c5cc8f0fa
2017-01-17 14:13:11 +00:00
OpenStack Proposal Bot ed634d46ea Updated from global requirements
Change-Id: I75ebb975957ea8d6daad214028fe9b59f84df926
2017-01-16 20:15:22 +00:00
Jenkins 8a25f27340 Merge "Adjust test suite for new psutil versions" 2017-01-16 10:39:28 +00:00
Dirk Mueller 06c4313ec0 Adjust test suite for new psutil versions
psutil 2.x and above has a lot of API changes as described in:
https://github.com/giampaolo/psutil/blob/master/HISTORY.rst

So we should work correctly with both old and new psutil
versions by using a version check and use the correct
method/attributes. This allows to eventually unlift the version
cap that starts to hurt.

Related-Bug: 1645918
Change-Id: I6be775e83876271012f6b7a777ea2b5cc3a008f6
2017-01-15 15:07:50 +01:00