6779 Commits

Author SHA1 Message Date
OpenStack Proposal Bot
2d917f79cf Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I5f48d06a8fb2afbe02758d7e7963ff6af9b015cc
2020-01-04 07:35:27 +00:00
Abhishek Kekane
d413625172 Change database migration version to ussuri
Change-Id: Ic80b169d34ae9adc6d1329785f80a0d27d2cb241
2020-01-03 13:02:14 +00:00
Abhishek Kekane
0eacf2da18 Refresh Glance example configs for Ussuri milestone 1
Change-Id: Iaac5c65f10f39027dd191b2397d8e5141bc9e12d
2019-12-19 16:30:17 +00:00
Brian Rosmaita
40bd312410 Remove py2 testing, jobs
Change tox.ini so that all jobs are python3, and add explicit
unit/functional testenvs for the two ussuri python runtimes
(3.6 and 3.7).

Remove py2 jobs from .zuul.yaml and redefine the periodic "tips"
jobs so that they are testing with the ussuri python runtimes.
Added nodeset: ubuntu-bionic to the abstract base jobs so that
py3.7 is available.

Co-authored-by: Ghanshyam Mann <gmann@ghanshyammann.com>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>

Closes-bug: #1853693
Change-Id: I15467c34fc8466fa1724c5401dc879ae77c1922d
2019-12-17 14:24:24 -05:00
Zuul
0c6dd98d01 Merge "Add classifiers of supporting py3" 2019-12-16 07:28:18 +00:00
Zuul
428d75b1ac Merge "Remove native ssl support" 2019-12-16 07:28:15 +00:00
Zuul
bbe5c9c448 Merge "Drop support for PY27" 2019-12-16 05:51:19 +00:00
Zuul
b24a58e9c5 Merge "doc: add link to release notes" 2019-12-13 22:21:28 +00:00
Zuul
4e8afee0be Merge "useful-image-properties: Update note on machine types" 2019-12-13 22:21:26 +00:00
Zuul
edb86eda48 Merge "Fix unit of hw_rng:rate_period" 2019-12-13 22:21:25 +00:00
Erno Kuvaja
e3b8ace6a1 Add classifiers of supporting py3
Change-Id: Id316dc7d3fc18ba3f2176cd9e9b413d673046c4d
2019-12-12 13:00:15 +00:00
Abhishek Kekane
3011551dfa Drop old neutron-grenade job
This job is still running python 2.7 and failing continuously. As we
are dropping py2 support in Ussuri cycle, lets drop this job now.

There is same job called "grenade-py3" which runs on python 3 already
and this is still used in project's CI.

Change-Id: I3e62c9ebc3e8673603b26acb9bacc543670bdf99
2019-12-11 07:17:29 +00:00
Zuul
162e2896a7 Merge "Replace "integrated-gate-py3" template with new "integrated-gate-storage"" 2019-12-10 13:31:56 +00:00
Erno Kuvaja
06b2465f59 Remove native ssl support
As eventlet ssl termination is broken with python 3 and
we won't be supporting python 2.7 anymore we will just
remove ssl termination to glance-api and expect the
termination being handled by something else, like HAProxy.

This patch also removes the broken ssl test job as the
non-existing feature is not broken anymore.

Change-Id: Iaf16dfcfdb3a2c93312dcad1ea1229e6b3c8caaa
2019-12-09 15:17:03 +00:00
Erno Kuvaja
ce79c8ed78 Drop support for PY27
Change-Id: I9d37f142bd5ddaeeacc441e8e7dda3da166850d9
2019-12-06 15:40:11 +00:00
Ghanshyam Mann
d23d12a462 Migrate grenade jobs to py3
As part of community goal of dropping py27 support[1], we are
moving the devstack to py3 by default[2]. That will make grenade job
to perform upgrade from py2 to py3 which will not work (we have seen
the failure in neutron-grenade job).

To avoid existing grenade py2 job break, this commit moves grenade
jobs to py3 which is what we planned as part dropping the py2 support.

[1] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[2] https://review.opendev.org/#/c/649097/12
    http://lists.openstack.org/pipermail/openstack-discuss/2019-November/010938.html

Change-Id: I6216868fc5405cc3f3a14cd5f32a38d778e64c2d
2019-11-19 22:24:01 +00:00
Zuul
a654626877 Merge "Imported Translations from Zanata" 2019-11-19 10:34:27 +00:00
OpenStack Proposal Bot
4d547e277a Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib10304b9f65fb26b2b953062ad771806728265da
2019-11-19 07:46:48 +00:00
Erno Kuvaja
c540d54a35 Fix old --public from install verify docs
Change-Id: I4128eb7e8d6a6827026d4454e1eaba188e19cf3a
Closes-Bug: #1852835
2019-11-18 14:17:08 +00:00
Zuul
30c9275888 Merge "Start README.rst with a better title" 2019-11-18 11:04:01 +00:00
Zuul
675a183486 Merge "Use FakePolicyEnforcer for deserialization tests" 2019-11-18 11:03:59 +00:00
Brian Rosmaita
d2d67ae3a1 Install requirements during the correct tox phase
Glance isn't explicitly installing requirements, so add requirements
as tox deps in such a way that they'll be properly constrained by the
current openstack upper-constraints.

This change also bumps the version of psycopg to that of the current
upper-constraints in test-requirements and lower-constraints.  (The
version in our current lower-constraints is subject to the "could not
determine PostgreSQL version from '10.x'" error, which causes the
lower-constraints job to fail.)

Change-Id: I1bb5759e6b1e3f8545ab417617072a61323b59a7
Closes-bug: #1852356
2019-11-14 08:20:29 -05:00
Thierry Carrez
35d9ec3f59 Start README.rst with a better title
Now that we are using gitea the contents of our README.rst are
more prominently displayed. Starting it with a "Team and repository
tags" title is a bit confusing. This change makes it start with the
name of the project instead.

Change-Id: I538c8db4b45eb3f65dfe48f0c3ce006a8dfee4df
2019-11-13 17:03:44 +01:00
Brian Rosmaita
7c85bdcf83 Use FakePolicyEnforcer for deserialization tests
The tasks unit tests that test the RequestDeserializer
are using the real policy engine.  They should be using
a mock because we're testing the deserialization, not the
policies.

Closes-bug: #1852354

Change-Id: I35bdacd154b2c8d18ce268a5e6e8aba710e41108
2019-11-12 19:41:30 -05:00
Andreas Jaeger
e45d5e3b92 Switch to opensuse-15 nodeset
opensuse-150 nodeset is referring to openSUSE 15.0, which is still in
maintenance but openSUSE 15.1 has been released already. "opensuse-15"
is going to refer to the "latest openSUSE 15.x" build released and
working for OpenStack going forward, so add this nodeset and use
it by default going forward.

The new job tempest-full-py3-opensuse15 use the opensuse-15 nodeset,
change tempest-full-py3-opensuse150 to tempest-full-py3-opensuse15.

Change-Id: Ia76b107a137a39716253631e5a8d294f7ee9614e
2019-10-16 21:41:09 +02:00
OpenStack Proposal Bot
99938b8afe Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I033593aaf1ac8339b4e09da6602f8ed54cf49598
2019-10-03 10:57:32 +00:00
c144ce5802 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: I6ed9645bebb9a63a1e70d8f6630c7d53fba4e35e
Sem-Ver: feature
2019-10-02 10:06:29 +00:00
Zuul
c71f717d39 Merge "Set API version 2.9 CURRENT" 2019-10-01 23:36:34 +00:00
Zuul
0bb0fca24c Merge "Rethinking filesystem access" 2019-10-01 19:12:11 +00:00
Erno Kuvaja
515412b59f Set API version 2.9 CURRENT
This change removes experimental status from Api versions
>2.7 setting 2.8 (multi-store support) to SUPPORTED and
2.9 (caching) to CURRENT.

NOTE: 2.8 will show up in list only if the glance-api service
is configured with multi-store. The API versions list can be
used to determine if the multi-store functionality is availabe
in the endpoint.

Change-Id: I37350fc46191074d42edc73c2451eae73261957d
2019-10-01 17:45:26 +00:00
Abhishek Kekane
6dba83ba3a Rethinking filesystem access
In Rocky multiple backend support is added as experimental feature. In
order to take advantage of this feature it is decided to deprecate
work_dir and node_staging_uri configuration options
and reserve two filesystem stores 'os_glance_tasks_store' and
'os_glance_staging_store', which can be used to get rid of initializing
store via internal functions.

These internal stores are considered "reserved stores" by Glance.
For the time being, these are hard-coded as filesystem stores.  The
store prefix 'os_glance_' is reserved for internal Glance use and
the glance-api service will refuse to start if a store with this
prefix is included in the enabled_backends config option in
glance-api.conf.

NOTE: Because there are no sensible default values for the location
of the datadir for each of these stores, the operator must define
'os_glance_tasks_store' and 'os_glance_staging_store' in
glance-api.conf configuration file as shown below.

[os_glance_tasks_store]
filesystem_store_datadir = /var/lib/glance/tasks_work_dir/

[os_glance_staging_store]
filesystem_store_datadir = /var/lib/glance/staging/

Each filesystem store must have a unique datadir.

Depends-On: https://review.openstack.org/#/c/639765/
Implements: blueprint rethinking-filesystem-access
Change-Id: I86ec513c5fc653dbb97b79d953d8430f014e684f
2019-10-01 09:53:48 +00:00
Erno Kuvaja
0cefe020df Refresh Glance example configs for Train
Change-Id: I9930dc0fa1c7da883ecb1b77a52a492e2d3e7baa
2019-10-01 10:38:44 +01:00
Zuul
feb8ebd75b Merge "Add support for oslo.reports" 2019-09-30 09:27:54 +00:00
Erno Kuvaja
82697983c0 Use glance as example in docs instead of osc
This patch also removes casual suggestion to turn on show multiple
locations. This feature has been idetified as vulnerability and
we should not advise turning it on without explaining the specific
use cases where it might be necessary.

Co-authored-by: Erno Kuvaja <jokke@usr.fi>
Co-authored-by: Brian Rosmaita <rosmaita.fossdev@gmail.com>

Change-Id: I65952f70f0216d227ca14d1098d264208913e4e5
2019-09-27 19:21:09 +02:00
Zuul
f0831c3307 Merge "Revert skipped functional tests" 2019-09-25 18:20:22 +00:00
Zuul
854e425fec Merge "Add SEV-related extra spec and image properties" 2019-09-25 14:22:31 +00:00
Zuul
33eeff6c8d Merge "Fix DeprecationWarning: invalid escape sequence" 2019-09-25 14:22:30 +00:00
Zuul
d9f4451828 Merge "Make location API compatible with multiple store" 2019-09-25 14:22:28 +00:00
Abhishek Kekane
35ef778ed0 Revert skipped functional tests
Commit a2cb3cd286637c86fdd1d92d9396f3e0c6a08ca2 was skipping some
multiple stores related functional tests to allow the release of
glance_store V1.0.

Now store library is released so it safe to enabled these tests now.

Change-Id: I5189c97320d97d5eb4c330580a9bec14815bff03
2019-09-24 07:27:28 +00:00
Erik Olof Gunnar Andersson
e5435bb7b6 Add support for oslo.reports
Oslo Reports enables OpenStack projects to dump Guru Meditation
Reports with useful debugging information on live services
to files or stderr.

Change-Id: I33b6e52870b583c70aa8141ab55d8738beaf5c59
2019-09-20 05:17:58 +00:00
zengjia
c11ebf46e7 Fix unit of hw_rng:rate_period
Replace seconds with milliseconds
in the description of hw_rng:rate_period[1].

[1]https://libvirt.org/formatdomain.html#elementsRng

Change-Id: I53848359704d68dd84c5be8106f4e259937b8092
Related-Bug:#1843542
2019-09-20 02:35:56 +00:00
Erno Kuvaja
da29e129fa Revert "Add reserved stores to the sample config file"
This patch introduced double registering of the same
config option groups which fails glance-api start
if reserved stores are actually defined.

The code utilizing these config options has not been
merged which prevented testing to catch this.

Closes-Bug: #1844108

This reverts commit 4265e61bc84ce9bd085a95d8734647f4875af740.

Change-Id: Iaf338d29673e68a15d37fdda81add552e4175634
2019-09-19 12:40:34 +01:00
Erno Kuvaja
4ae92bdd30 Revert "Correct the deprecation messages of local dir config"
this is not needed as 4265e61bc84ce9bd085a95d8734647f4875af740
is being reverted also.

This reverts commit b639ed080d5b74fcc3081a09bd64dd4703dea5a4.

Change-Id: I3c1b86e73a25935f2a2ffd43731e2db36fbffa97
2019-09-19 12:38:56 +01:00
Akihiro Motoki
f87c9ee5e9 Fix DeprecationWarning: invalid escape sequence
When running "tox -e pep8", "DeprecationWarning: invalid escape sequence"
are shown. This is because a normal string contains escape sequences.
Escape sequences need to be placed in raw strings.

TrivialFix

Change-Id: I34f63d90f53b721e9afdeb99ac53ef0c24857b17
2019-09-19 17:34:55 +09:00
Zuul
53fbfc8c63 Merge "Add Train milestone 3 releasenotes" 2019-09-18 09:03:12 +00:00
Erno Kuvaja
09dcdadff6 Add Train milestone 3 releasenotes
Change-Id: I4752d34b3c456ff64ce116004481d52e8b28c8c6
2019-09-17 13:48:18 +00:00
Erno Kuvaja
d9546dce75 Images API version bump and config sync
This change contains minor version bump to Images API to
indicate latest changes to the API.

Also has config file sync for for M3 release.

These two are combined for saving some gating time due to
busy infra at Train milestone 3 deadline.

Change-Id: I13133c32734751d43cc3afed9b68d015cebd5b6b
2019-09-16 13:25:45 +01:00
Erno Kuvaja
b639ed080d Correct the deprecation messages of local dir config
The deprecation messages of node_staging_uri and work_dir
were claiming that local directory is not needed after moving
to multistore. This is not exactly true and gave false
expectations of the current capabilities.

For now only the way to configure those needed folder and
how they are internally accessed is changing.

This change corrects the deprecation message to reflect
current state.

Change-Id: I39c170903c64181841a22c7b9bdaa3b5a1346caa
Closes-Bug: #1843891
2019-09-13 13:55:45 +01:00
Kashyap Chamarthy
52127a692a useful-image-properties: Update note on machine types
For ARMv7 and AArch64, Nova uses the 'virt' machine type as the default.
Update the docs to reflect that.

Refer to this commit in Nova:

    https://opendev.org/openstack/nova/commit/e155baefb0
    (libvirt: Use 'virt' as the default machine type for ARMv7,
    2018-09-14)

Change-Id: I13793dded976fdf872ca0ea779a7f6cbee98118f
Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
2019-09-13 10:12:30 +02:00
Adam Spiers
3a281b9bc6 Add SEV-related extra spec and image properties
The AMD SEV support recently introduced to nova[0] depends on certain
metadata properties for flavors and images which were either missing
or only partially covered by existing glance metadata, so fill the
missing gaps:

- Add the hw:mem_encryption flavor extra spec and corresponding
  hw_mem_encryption image property.

- hw_firmware_type has been supported by nova for quite a while,
  so register it as an official metadata property.

- Add hw_cdrom_bus which was missing as per
  https://bugs.launchpad.net/glance/+bug/1808868.  This shares
  values with hw_disk_bus, so document that too.

[0] https://docs.openstack.org/nova/latest/admin/configuration/hypervisor-kvm.html#amd-sev-secure-encrypted-virtualization

Closes-Bug: 1808868
Change-Id: I8116565ad0326d0125b320d840d787edcb086aa9
2019-09-12 19:58:27 +01:00