6942 Commits

Author SHA1 Message Date
Rafael Weingärtner
549df53f9c Statement about complex object handling in the Dynamic pollster documentation
Change-Id: Iae1b317db25a8c3b6e9f8400c572cc653367d4c9
2020-09-04 23:11:21 -03:00
Dmitriy Rabotyagov
648ce9b668 Run migration with NotFound exception as well
Gnocchi start returning regular 404 when requesting resource that do not
exist [1]. That means, that in case of 404, which is also excpected,
we just fail resource creation.

[1] http://paste.openstack.org/show/796938/

Change-Id: Ie5f8caba3111db7e7e8e50b9bc58c6e8de606338
2020-08-19 12:20:24 +03:00
Dmitriy Rabotyagov
49b098eda4 Run migration with NotFound exception as well
Gnocchi start returning regular 404 when requesting resource that do not
exist [1]. That means, that in case of 404, which is also excpected,
we just fail resource creation.

[1] http://paste.openstack.org/show/796884/

Change-Id: I7061a31405a421da3ab2f192259fb23c5aa54ce6
2020-08-17 15:29:07 +03:00
Zuul
aa451d4071 Merge "Fix volume attachment event parsing" 2020-08-15 04:59:08 +00:00
Rabi Mishra
f3b606889d Fix failing unit tests for new msgpack version
This fixes the failing unit tests with the newly msgpack
version.

Also depends on a requirements patch that bans pecan 1.4.0
that has broken gnocchi and hence ceilometer which uses
gnocchi as the default backend.

Task: 40652
Depends-on: https://review.opendev.org/746261
Change-Id: Id75b7d4004a50c588a22c7eeb46ad1d79ee7a189
2020-08-14 09:28:42 +05:30
Pavlo Shchelokovskyy
790835f2b0 Fix volume attachment event parsing
the correct name of the server-identifying field in volume attach/detach
notification is `instance_uud`, not `server_id`, see
`cinder/objects/volume_attachment.py`

Change-Id: I0da69c0cb19556dbcee3cc4321b8909b6708f038
2020-07-27 16:42:08 +03:00
Zuul
5af99caad7 Merge "Dynamic pollster support paging systems that return only a path for the next page" 2020-07-24 13:16:33 +00:00
Zuul
febb0e49b5 Merge "Remove [ and ] around parameter values in http url" 2020-07-24 03:40:56 +00:00
Rafael Weingärtner
9c4f0d9391 Dynamic pollster support paging systems that return only a path for the next page
This was found when working with Glance API, where the next page attribute only
contains the context for the next call, and not a full qualified web address.
Moreover, while implementing this one, I noticed the there was no paging for
the non-openstack pollster. Therefore, I added it as well.

Depends-On: https://review.opendev.org/#/c/709807/

Change-Id: I3bc3cd4a7aa58ca1e2a57d383933493f5dc377ca
2020-07-23 07:14:59 -03:00
Rafael Weingärtner
51f06518c5 Enable processing metadata with nested objects
Depends-On: https://review.opendev.org/#/c/709807/
Change-Id: Id108a7cd7bf356156b68324c3d033037a84869fc
2020-07-22 17:29:13 -03:00
Rafael Weingärtner
39a534b3f8 Add support to the use of headers in the dynamic pollsters
Depends-On: https://review.opendev.org/#/c/709807/
Change-Id: I3ec151b8807d0dd3e529bb449d22fa68c8c810ee
2020-07-22 08:13:51 -03:00
Rafael Weingärtner
51119ddc1c Allow operations on Ceilometer dynamic pollster to reference the sample itself
This issue is to allow operators to create expressions that can reference the
sample itself. Currently, the expression is allowed only for fields in the
sample, and not the sample itself.

We discovered this requirement when developing pollsters for Cinder;
the attribute `volume_image_metadata` is not returned in the API response when
it does not exist, therefore, we need a method to check if it exist before
trying to retrieve it.

Change-Id: I5d3eb04534afaeb556ddab4ef603a205745883b8
2020-07-21 23:44:15 -03:00
Zuul
57017afbcb Merge "Fix dynamic pollster default_discovery method call" 2020-07-22 02:32:35 +00:00
Zuul
7c1dbb6941 Merge "Enable OpenStack pollster to configure Ids(project, user, and resource)" 2020-07-22 02:32:32 +00:00
Zuul
601b5a12d3 Merge "drop mock from lower-constraints" 2020-07-22 02:32:31 +00:00
Zuul
2e6841cf2b Merge "Refresh tox" 2020-07-22 02:21:11 +00:00
Matthias Runge
4c859ad4df Remove [ and ] around parameter values in http url
Without this patch, using a publisher like
  - http://host.com/?a=b&c=d
leads to calling a http post to
http://host.com/?a=['b']&c=['d']
URLs without additional parameters are not affected.

Change-Id: I7c4f03b5d4412ec2844cb24d32ce575442c9fd3c
2020-07-21 18:52:25 +02:00
Zuul
1d2b8319f5 Merge "Add release note link in README" 2020-07-21 09:05:20 +00:00
Zuul
cf7efe1f24 Merge "Added missing Ceilometer configuration step for controller in docs." 2020-07-21 08:56:36 +00:00
Zuul
2200094295 Merge "Remove glance-registry from docs" 2020-07-21 08:44:15 +00:00
Zuul
1c9f4ac623 Merge "Adding exception handling when inspect_disks" 2020-07-12 07:56:16 +00:00
OpenStack Proposal Bot
8db46101d7 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id6f3a649d7353e9e5e8af48d01da9473e1bddee3
2020-07-10 06:09:28 +00:00
Seyeong Kim
4f85b7d2b4 Adding exception handling when inspect_disks
It raises error even when live migration.
As live migration uses lock normally, it should not be an error.

Story: #2007651
Task: #39715

Change-Id: I3c0f29f79dc3c73e7aec9c9035c94c0fdcf8ccfd
2020-07-09 21:36:34 -07:00
gugug
1456ef0af6 Remove glance-registry from docs
glance-registry service was deprecated in Queens release and has been
removed in Victoria [1].

[1] https://review.opendev.org/#/c/738671/

Change-Id: Ib33a3f49647d86fae826f416825a85433730b391
2020-07-07 23:27:45 +08:00
Zuul
3a089e4d1b Merge "Fix dynamic pollster samples indentation in the documentation" 2020-07-07 07:39:54 +00:00
Rafael Weingärtner
6bb26f356f Fix dynamic pollster default_discovery method call
Change-Id: Idda62731e70bb1fd4d8293576a3f84207048c6b8
2020-07-06 15:34:38 -03:00
Zuul
845c5d8464 Merge "Fix pygments style" 2020-07-06 02:55:11 +00:00
Rafael Weingärtner
49e9744f8d Fix dynamic pollster samples indentation in the documentation
Change-Id: I2c07bf43d1a230c0a6bf48755d91d41c64abc9ea
2020-07-03 19:08:53 -03:00
Zuul
8ef38cd0bb Merge "Drop undefined doc config path" 2020-07-03 10:20:52 +00:00
Matthias Runge
f8992d40a1 Trigger volume deletes only on volume deleted
It was possible to create a volume and to do the following operations
with the volume; at the end, the volume itself is marked as ended, but
the volume is still available.

openstack volume create --size x foo
openstack volume snapshot create --volume <id> foo_snap
openstack volume create --snapshot <id_of_snap> clone
openstack volume delete --purge <id_of_foo>

openstack metric resource show <id_of_foo>

This commit fixes that issue.

Change-Id: I55f0667c71ba4f3a33959a44bef43c3b05bc097c
2020-06-23 11:27:48 +00:00
OpenStack Proposal Bot
c3b0a808af Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I26bfd74be9e321ea500f6b18649a700a4e2a05da
2020-06-22 09:09:48 +00:00
Andreas Jaeger
89969ec0a9 Fix PDF build
Do not include ceilometer.conf.sample since PDF building fails with the
large file. This fix PDF building of openstack-tox-docs job.

Change-Id: Idaf811f71bab0b49de5b68a6a69a7872cb481ffb
2020-06-22 10:54:30 +02:00
prankul
71e50362de Added missing Ceilometer configuration step for controller in docs.
Co-Authored-By: Rafael Weingärtner <rafael@apache.org>
Change-Id: I7f614624ab732be4919298ce23de192555a7fb18
Reference: https://docs.openstack.org/ceilometer/latest/install/install-base-ubuntu.html
Closes-bug: #1802918
2020-06-19 19:04:01 -03:00
Hervé Beraud
82de25bfd6 drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: I066fd99bc104f1d28870473a90d6c09863c70920
2020-06-09 11:43:40 +02:00
Hervé Beraud
abba67bf54 Refresh tox
Add ignore_basepython_conflict [1], this will fix tox warnings about
python versions.
Bump tox minversion to 3.1.0 to ensure that ignore_basepython_conflict
is supported.
Use the default install_commandi [2].

[1] https://tox.readthedocs.io/en/latest/config.html#conf-ignore_basepython_conflict
[2] https://tox.readthedocs.io/en/latest/config.html#conf-install_command

Change-Id: Ic76f25bcd2d70525d02c565449da753c4ba58bc3
2020-06-09 11:43:40 +02:00
Hervé Beraud
9c141d7db2 Drop undefined doc config path
html_static_path doesn't exist and the following warning is present in
logs:

```
WARNING: html_static_path entry '_static' does not exist
```

These changes drop this config.

Change-Id: I5ca35d1658c8734dd74d1c4dd16a8516f16c39b6
2020-06-09 11:43:40 +02:00
Zuul
52f6f13331 Merge "Port the grenade job to Zuul v3" 2020-06-03 05:05:18 +00:00
Hervé Beraud
daaba363b7 Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I60485bcd7c69987ffa06dfad6e0e8bfa40570137
2020-06-02 19:36:09 +02:00
Luigi Toscano
b3e4e5ab42 Port the grenade job to Zuul v3
It implements the same behavior of the old one.

Change-Id: Iec5ce5bcea70cb764a24b5ca15cc66c617731c7b
2020-06-02 17:12:29 +02:00
Rafael Weingärtner
1a4ab34df5 Enable OpenStack pollster to configure Ids(project, user, and resource)
This pull request enables OpenStack pollsters to configure
Ids(project, user, and resource) as the non-openstack pollster.
This is useful as some of the OpenStack APIs use other keys to represent
values such as project_id and user_id.

Change-Id: Id5ae1720ad714675722bc857a142d7bd667fe7ed
2020-05-29 12:11:17 -03:00
Zuul
2dcd15a466 Merge "Add support to linked samples responses" 2020-05-29 12:53:45 +00:00
Zuul
49d2bd1e84 Merge "Add volume.manage to metrics." 2020-05-29 09:30:16 +00:00
OpenStack Proposal Bot
ed248da334 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I9f3926da746971052362ff0f5c256739b9a71f2b
2020-05-29 06:08:20 +00:00
Matthias Runge
7df749884b Add volume.manage to metrics.
This allows to monitor cinder managed ceph volumes
to be monitored.
The second addition here allows the same for snapshots.

Change-Id: I7f045fa618e78351e05ad69bc9580e98487f0c29
2020-05-28 16:51:25 +02:00
Andreas Jaeger
9c94986c9e Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Ieaaff8278e93f85bd711a340f9621ae18841e720
2020-05-21 13:58:25 +02:00
gugug
976df71b63 Fix pygments style
New theme of docs respects pygments_style.

more info: http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I197ad37c55df8d78375cb31c66eb93b91114d4dd
2020-05-21 01:24:02 +00:00
OpenStack Proposal Bot
658d36f756 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If3326e824a5807b7e18e00fa1c7ad4bcfa4b2aef
2020-04-28 06:08:27 +00:00
Sean McGinnis
b5756da489
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: I092a9bd1897bdb331c461ad85d8c58aff03e2511
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:22:34 -05:00
97c2e87a34 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ib791616f61b5cbdf1a49879e6f3786f86e29737e
2020-04-22 13:11:20 +00:00
d951f3cb18 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

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

Change-Id: Ic3b18665f3afc447150f2e855e8de106c9805f52
Sem-Ver: feature
2020-04-22 13:11:16 +00:00