Commit Graph

5422 Commits

Author SHA1 Message Date
Matthias Runge 92be85c4ca Remove leftovers of retirement
Change-Id: I5acab95813ac3d0604f73c377bf111f423a008bc
2021-07-09 15:21:47 +02:00
Matthias Runge ca45bbdca0 Retire panko, the code is no longer maintained.
The contents of this repository are still available in the Git source
code management system. To see the contents of this repository before it
reached its end of life, please check out the previous commit with
"git checkout HEAD^1".

For any further questions, please email
openstack-discuss@lists.openstack.org or join #openstack-telemetry on OFTC.

Change-Id: Ic8a7001e708d8da7cf8951eefd0a96762ea5fa46
2021-05-27 11:36:44 +02:00
Zuul 053b147b48 Merge "[goal] Deprecate the JSON formatted policy file" 2021-05-17 11:10:59 +00:00
likui 4b03b9cdb7 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of
dash-separated options in 'setup.cfg' will not be supported
in a future version [1].
Get ahead of the issue by replacing the dashes with underscores.
Without this, we see 'UserWarning' messages
like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I446f303e37007f0d3f2ee73a6f87e3a7766b8e56
2021-05-13 10:01:26 +08:00
Zuul 79330ad0ae Merge "Remove babel.cfg" 2021-05-12 08:06:44 +00:00
likui 6fb3d4cfe1 Remove babel.cfg
Remove babel.cfg and the translation bits from setup.cfg, those are not
needed anymore.

Change-Id: I85472dd910e36a4b765e95c59702c30f1965cf2a
2021-05-11 16:26:19 +08:00
likui 9f190a5cea Replace getargspec with getfullargspec
inspect.getargspec() is deprecated since py3

[1] https://docs.python.org/3/library/inspect.html#inspect.getargspec

Change-Id: I1a838b0e0ac9b582c4176c43962904ab31b6d5d9
2021-05-11 16:24:16 +08:00
OpenStack Release Bot a1d21dc37a Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

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

Change-Id: If21f4e542d4776ccb70a62beeaed04ac922d86ae
2021-03-22 09:27:23 +00:00
OpenStack Release Bot 0e8bb04bc5 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

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

Sem-Ver: feature
Change-Id: I4b4e33a5ad5054d933470bd85d1a4247794ce3db
2021-03-22 09:27:20 +00:00
Ghanshyam Mann 6da394a59a [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Ie6e22b0b47c5148290f7b76c95967cd9a343343c
2021-02-11 12:40:40 -06:00
Zuul 8bc176fdbd Merge "bump py37 to py38 in tox.ini" 2021-01-29 14:45:43 +00:00
Zuul 3054d7784e Merge "Remove six" 2021-01-25 08:33:20 +00:00
Zuul 5e56d74b9d Merge "Implement secure RBAC for segregation and telemetry policies" 2021-01-19 11:01:04 +00:00
Zuul f00af17b08 Merge "Add a system-reader check string to base.py" 2021-01-18 19:58:37 +00:00
Zuul 637571fcc8 Merge "Update requirements for secure RBAC work" 2021-01-18 17:35:46 +00:00
wangzihao f95cff99e2 Remove six
Remove six Replace the following items with Python 3 style code.

- six.text_type
- six.PY3
- six.moves.urllib
- six.string_types
- six.iteritems
- six.integer_types
- six.binary_type
- six.add_metaclass
- six.moves.reprlib

Depends-on: https://review.opendev.org/c/openstack/telemetry-tempest-plugin/+/770955
Change-Id: Ia301d56d675557e81b873ddd68f1faeb051dfe93
2021-01-15 16:48:21 +00:00
wangzihao 152e6acc1e Update fixtures
Update fixtures to 3.0.0 test ci

Change-Id: Iaf38d2fa8c6db89384dde13f706a20eb07c7cd82
2021-01-15 09:32:17 +08:00
Zuul b5d5173add Merge "Update the README to point to storyboard" 2021-01-07 09:12:08 +00:00
Zuul ac92c378b8 Merge "Revert "Temporarily switch dvsm-integration off"" 2020-12-01 19:10:44 +00:00
Matthias Runge 0a22e282db Revert "Temporarily switch dvsm-integration off"
This reverts commit 123448bd43.

Change-Id: I8f2d68973498093d33f147226f988c62561ab72c
2020-12-01 16:21:30 +01:00
Zuul ca2d77ad3a Merge "Add a /healthcheck by default" 2020-12-01 15:18:23 +00:00
Lance Bragstad 6195c9a06d Implement secure RBAC for segregation and telemetry policies
This commit updates the policies for all policies in panko to support
enhanced token scope checking and default roles, but implementing
support for a reader role for read-only APIs.

This is part of a broader change to provide a more consistent and secure
authorization experience for operators and users across OpenStack.

Change-Id: Ia0daee7d909f31e7f8f9e75fa52dca9254441559
2020-12-01 14:37:26 +00:00
Lance Bragstad 12c41a0a73 Add a system-reader check string to base.py
This commit adds a new constant to base.py that models a common persona
being implemented across OpenStack called system-reader. We can use this
persona in future patches to update the default policies for the
appropriate APIs.

Change-Id: I12074fe328db71895bbdfda3c9e7c56cc6b6f40d
2020-12-01 14:35:41 +00:00
Lance Bragstad 6edbdfa296 Update requirements for secure RBAC work
This commit updates the versions of oslo.policy, keystonemiddleware, and
oslo.log to new versions that aid in implementing secure RBAC through
default roles and scope checking.

This commit also includes a dependency on oslo.context, which provides
pythonic context objects based on request environments. This is useful
in implementing authorization decisions because we can just pass context
objects to oslo.policy's Enforcer() object instead of building a
dictionary of authorization information manually.

These dependencies will be used in a subsequent patch set to update
Panko's default policies.

Change-Id: I222155c8c6b757fd80b30173fd300e2a7240c107
2020-12-01 14:27:01 +00:00
Matthias Runge d51de00914 Update the README to point to storyboard
Change-Id: Ia145ab8a4758169cbbdd6c8d7fd067e979a1a66f
2020-12-01 10:59:00 +01:00
Zuul 36b909a03d Merge "Remove deprecated tail_log function" 2020-11-27 07:53:18 +00:00
Eyal 0a7684460b Remove deprecated tail_log function
This function has been deprecated for a long time, let's finally
remove it. It is only generating a warning anyway.

Depends-On: https://review.opendev.org/c/openstack/panko/+/764418
Change-Id: I6f120922c5101987a0eea08bf7e0b2b05332fddd
2020-11-27 07:08:53 +00:00
Matthias Runge 123448bd43 Temporarily switch dvsm-integration off
until https://review.opendev.org/c/openstack/panko/+/763941
is merged.

Change-Id: Iec0d45803548b2f5df74cec34947a87159f8c8fc
2020-11-27 08:07:31 +01:00
Zuul 5562d835dd Merge "Remove install unnecessary packages" 2020-11-09 08:47:22 +00:00
maaoyu 531eb819fe bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.

ref:
  https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: I711e61fac9b1364731994ebfdb522e7261ba8a75
2020-10-12 14:12:40 +08:00
OpenStack Proposal Bot 3403c13db2 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I690be089d089c40d3fca97386800f0ac4196e26d
2020-10-11 07:55:40 +00:00
OpenStack Release Bot 3b3cd05899 Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

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

Change-Id: I539e37fdcb323e996913388e6710ff991389ee79
2020-09-24 08:48:25 +00:00
OpenStack Release Bot d3cf631f28 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

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

Change-Id: I685b71a290444de381503eab10bb170da03d7008
Sem-Ver: feature
2020-09-24 08:48:22 +00:00
maaoyu 6f224e6da9 Remove install unnecessary packages
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: Ia3dd1f0e08ff3f6ec0e75e2256588d6842b09542
2020-09-23 14:57:44 +08:00
Zuul 046c9460c6 Merge "Add max_count argument for clear_expired_data call" 2020-07-02 12:49:55 +00:00
Thomas Goirand e8a71c83ad Add a /healthcheck by default
This patch adds a /healthcheck URL by default, using oslo.middleware,
so that operators can use it to configure haproxy / monitoring.

Change-Id: Idf9a184f969e5f77de0c2f2a2b99c2931f5647e0
2020-07-02 11:26:09 +02:00
Ivan Kolodyazhny ec84ed8aa7 Add max_count argument for clear_expired_data call
When thare're a lot of events in the database panko-expire
consumes a lot of memory to delete all records with a single
call. To avoid this behaviour a new config option
`events_delete_batch_size` was introduced.

Change-Id: Icf83ffe089301b3782273923f18efd4d209131c2
2020-07-02 10:31:06 +03:00
Hervé Beraud d2453d77b6 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: Ieb7f2b1ede23d9bcf0f87620e87743a1531bb494
2020-06-02 20:42:47 +02:00
Andreas Jaeger 260ba07210 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.

Remove docs requirements from test-requirement, it's enough to have them
in doc/requirements.txt.

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: I8d4234212ecceb639e40eae423af72d2d08b010d
2020-05-21 16:20:05 +02:00
Sean McGinnis 8583d1a698
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: Ied79c449a8bd0c53a7392afb1dee18b5e7e5d619
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:15 -05:00
OpenStack Release Bot ba63796b20 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: Ic84213456fb7f340355f9f65f6acaa9fbd63953d
2020-04-22 13:09:04 +00:00
OpenStack Release Bot 1dfa064a8b 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: Id796126b87bb1fba8053c48fa2c0bf4e3e69a3bb
Sem-Ver: feature
2020-04-22 13:09:03 +00:00
Zuul ada2bdd041 Merge "Add irrelevant-files for tempest jobs" 2020-04-20 11:45:29 +00:00
zhurong 5ee7cbcd25 Add irrelevant-files for tempest jobs
Change-Id: I470b83580d3f8040baf0cf1d4cf964713f151bdb
2020-04-19 23:35:13 -07:00
Sean McGinnis 36668ecfad
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I92f240b2b2fbb8a0a7ac188ff9bed8b0d11209b3
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:57:05 -05:00
Andreas Jaeger 679e39587d Cleanup doc support
Cleanup docs building:
- Remove obsolete sections from setup.cfg
- Switch to using sphinx-build
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version, use apidoc for
  API docs
- Fix doc problems found

Change-Id: I1f92444a145030e7715a8d357870d712c5d3cfb1
2020-04-13 17:59:13 +02:00
zhurong e73f13e3ed Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: I551d8eada6764516dd0612037d9e9e9e5a677347
2020-04-11 01:00:06 -07:00
Andreas Jaeger e66d3e7599 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks to work with new flake8 version.

Change-Id: Id5d224358b44fd7ab4bd3d08f1db6b6faf54042f
2020-04-03 14:39:18 +02:00
ghanshyam a725f64412 Set Tempest's service_availability setting for panko
Tempest's service_availability config option includes all the service
availability which is further used by tests to take decision of skip
or run the test.

For example, [service_availability].panko is true then, panko test will run
or if [service_availability].panko is false then, all panko related tests either
in telemetry tempest plugin or any other plugins will be skipped.

This commit add the setting of panko service[1] on panko devstack plugin.

Closes-Bug: #1743688
[1] https://github.com/openstack/telemetry-tempest-plugin/blob/master/telemetry_tempest_plugin/config.py#L23

Change-Id: I57e182850fbf7fcab5df75c05f0ef95a8c23e923
2020-01-06 03:53:46 +00:00
OpenStack Proposal Bot f7f87fc969 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: If4e0c4ddacc1b721d852bc572313cffba867520c
2019-12-22 09:12:47 +00:00