The sheepdog project is no longer maintained [0], so this removes the
test configuration as part of an effort to clean up those test
definitions. The glance_store support for sheepdog should also be
deprecated and removed, but that will be done separately.
[0] http://lists.wpkg.org/pipermail/sheepdog/2019-March/068451.html
Change-Id: I79d9dbc8f6ebea381d99e96c4ba4194ba0188b8a
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
(cherry picked from commit a7a6064e7d)
(cherry picked from commit 27e421af26)
In python3 conn.get_fsid() is represented as binary.
Because of this, direct_url is corrupted in DB.
This patch is fixing this. More informations in
closing bug.
Closes-Bug: #1816721
Change-Id: I6a89042fae63bf5c9096a6bee6774aebf3f5864b
(cherry picked from commit 9c73370358)
The configuration of the periodic "tips" jobs in .zuul.yaml may
be confusing, particularly after a stable branch is cut. Add a
comment explaining what we're doing and why to reduce confusion.
Change-Id: I7bf676ac972af835c7a6b8d04815629752685765
(cherry picked from commit ad46c752ef)
Two changes:
1 - declare the abstract base tips jobs 'abstract'
2 - add a branch matcher to where the periodic tips jobs
are invoked in the project definition so that they only
apply to the master branch
Change-Id: I1093de2583da862f58372e6c03b2d9b604dbd630
(cherry picked from commit 11db636c34)
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: Ic20de1346896f60817ac940bcf7876ba0bb4de22
Story: #2002586
Task: #24297
The store_add_to_backend_with_multihash() function was not wrapped
correctly so that Glance could consume the secure hash value. This
patch adds the correct wrapping.
Closes-bug: #1784420
(cherry picked from commit 4d4cf1559c)
Change-Id: I7a94dfffb61fc212abb58c1e1aec5884474b6aa8
The new stable upper-constraints file is only available
after the openstack/requirements repository is branched.
This will happen around the RC1 timeframe.
Recheck and merge this change once the requirements
repository has been branched.
The CI system will work with this patch before the requirements
repository is branched because zuul configues the job to run
with a local copy of the file and defaults to the master branch.
However, accepting the patch will break the test configuration
on developers' local systems, so please wait until after the
requirements repository is branched to merge the patch.
Change-Id: I8da6f0a99a89aaba053ebc9ed03e785b08b1b6dc
Config option help is used to generate sample config files. This
is done statically and only in English. Translation is done
dynamically at runtime by loading the translation catalogs. So
putting the _() translation around config option help creates
unnecessary work for the translators as this will never be loaded
and translated.
This removes translation markers from config option definitions.
Change-Id: I0597a5b69ef4e179324885cb35bbb72fceb2b830
A replacement, store_add_to_backend_with_multihash(), has been
introduced in Rocky. The old function is kept in Rocky for
backward compatability. This deprecation notice registers our
intent to remove it in Stein.
Change-Id: If09ae10ee160e3fbfafce94e4f3607994af63ec5
Adds the ability to compute a "multihash" (see the Glance spec
for what this is exactly). To maintain backward compatability,
a new store_add_to_backend_with_multihash function is added.
Backward compatability for each store's add() method is achieved
by a back_compat_add wrapper.
Co-Authored-by: Scott McClymont <scott.mcclymont@verizonwireless.com>
Co-Authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>
Change-Id: I063d0900b7dc7e0d94dfb685971eb9b17ed67c7b
Partially-implements: blueprint multihash
This addresses some nits from I1f2e8fa61d6dfecd8395a1f894f74ec5bcb5573c
that were not worth holding up that review to address.
Change-Id: Iab60d5622dddf29871fbbc9f51deb93de26235e8
Added multi store support for cinder driver. The default behavior is
maintained for backward compatibility.
DocImpact
Partial-Implements: bp multi-store
Change-Id: I094d315a5f3968cac2056a42f0a4ac236323f36d
The current Python Testing Interface specifies the use of
stester, so update tox.ini to use it.
Closes-bug: #1780272
Change-Id: I6b6c60486a26cfbb5793c074fe6f554c6a324846
Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
Added multi store support for http, swift, sheepdog and vmware driver.
The default behavior is maintained for backward compatibility.
DocImpact
Partial-Implements: bp multi-store
Change-Id: I93ccdafc6e740065ff4ca3adc6b49eb82e8afa10
Added supporting logic to configure, manage and use multiple stores
of the same or different type/scheme. Added new config option
'default_backend' which will be used to specifiy default store
to which image will be stored.
Added support for file and rbd store. The default behavior is
maintained for backward compatibility.
DocImpact
Partial-Implements: bp multi-store
Change-Id: I1f2e8fa61d6dfecd8395a1f894f74ec5bcb5573c
If cinder_store_{user_name,password,project_name} are provided,
cinder client will be created without region information.
It may cause wrong region access on some multi-region setup.
This fixes the issue by always passing `cinder_os_region_name`
value to cinderclient.
Change-Id: I835b2f0da03f29245c26c9c531b04de737d8ef5b
Closes-Bug: #1764200
When an image data is uploaded to cinder backend, it causes the
following error:
glance_store._drivers.cinder BadRequest:
Invalid input for field/attribute mountpoint.
This is due to cinder require the mountpoint param on attach API.
Change-Id: Ie82e9f4f3848cebe54f4dbccb9018815a0d5ebf1
Closes-Bug: #1779455
Currently we use asserts for uri validation, which is not good
practice because assert will be deleted from optimized code.
We must use exceptions in such cases.
Co-authored-by: kairat_kushaev <kkushaev@mirantis.com>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>
Change-Id: I89c5f1b74be89c759d5754d6cab54dc86c946be1
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: Ife7b0078c67df55b4b5d5b3d27f4228907a5531b
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Add jobs to the periodic queue that run the glance_store unit tests
against the master of various libraries we consume so that we don't
have to wait for a release to detect a change that could be
problematic.
Change-Id: I0385646991140debc06ea27a194a6e7f6f749e6b