Commit Graph

30 Commits

Author SHA1 Message Date
Matthias Runge 4acf636975 python-pankoclient 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: I10a6f35f14b5883f62e4675216dee7a11f749443
2021-05-27 11:43:19 +02:00
Hervé Beraud eba9ee7f8b 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: I734b87a6e24303ea96550363760c595c536654b5
2020-06-02 20:50:54 +02:00
Sean McGinnis 81239f371c 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: Ib2a1770771096707f70e60d5ab1374e997f519eb
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Co-Authored-By: zhurong <aaronzhu1121@gmail.com>
2020-04-19 23:07:17 -07:00
Andreas Jaeger 795dc20715 Docs cleanup and hacking update
Switch to using sphinx-build, cleanup conf.py, update
to newer sphinx and openstackdocstheme versions for Python 3.

Update to hacking 3.0.

Fix build problems.

Change-Id: Ib3ea77c973a9592710a9d75c76c443881f1a4bc1
2020-04-17 20:32:41 +02:00
Tovin Seven 4723ef86f1 Add Osprofiler support for Panko client
Change-Id: I40e6be2d8d5219bdf81bd9359d46d4f9464e1255
Depends-On: Ic934acbe1340a3e00361f2709f34725e0e4aa3ba
2019-04-12 08:27:05 +00:00
cao.yuan a7eb48e314 Update json module to jsonutils
oslo project provide jsonutils, and pankoclient use it in many place[1],
this PS to update the remained json module to oslo jsonutils for
consistency.

[1]: https://github.com/openstack/python-pankoclient/search?q=jsonutils&unscoped_q=jsonutils

Change-Id: Id05dcc9de18fe1e594920843f79970e72bde940c
2019-02-25 19:26:02 +08:00
vmarkov 8fc3a19e1e Handle strings as response error_message
Change-Id: I9643303973edd992066ff013a9cec21be689ae84
Closes-Bug: #1755851
2018-03-14 19:01:46 +02:00
vmarkov be4dfa504e Make osc plugin work again
while moving to SessionClient the OSC plugin
was forgotten to be amended accordingly.

Besides, the keystoneauth Adapter's request method
returns a single response object, not a tuple.

This commit also updates relevant requirements to be
in sync with global OpenStack ones.

Change-Id: I1cd33feec81bafad6237ca72b9c2f410237898b4
Closes-Bug: #1747718
2018-03-14 17:42:12 +02:00
astacksu a38ef12919 Fix help message of event list option 'filter'
The original description of the message is not working:

  <KEY1=VALUE1;KEY2=VALUE2...>

The feasible way to apply multiple filters are applying
the 'filter' option multipke times.

Change-Id: I58fc61f06a3c16f6062f643c323efaa00ef2f799
2017-08-31 15:43:29 +08:00
gord chung 5cf6011c0e clean up utils
remove stuff we aren't using and store in same place as aodh/gnocchi
clients

Change-Id: Ib74b134450690ae3d783e79f7177b1c183c2bcc0
2017-06-09 17:30:56 +00:00
gord chung 6bd0c25e36 add panko shell
Change-Id: Ibed6950ecfcbcd601b491e482b7c65a11ab0d045
2017-06-09 17:30:51 +00:00
gord chung 2a116079e7 move shell out of osc
move shell out of osc folder so we can create panko shell commands
without osc

Change-Id: I95bb58b5dcfc618fcb3a9f0e74b899714aac82ad
2017-05-24 20:24:13 +00:00
gord chung 3e6ac24b86 switch to use non-legacy SessionClient
current client is just a rip of novaclient which uses legacy
methods. this brings it more inline with aodh/gnocchi clients
so it's easier to develop across all projects and not create a new
client using legacy stuff.

Change-Id: I27b3e4bd97dc1415803eddbecb8aed3849d40ab5
2017-05-24 18:40:00 +00:00
Jenkins 31e71816c4 Merge "Add "event trait description" command" 2017-04-12 01:56:08 +00:00
Jenkins 10a6c83e11 Merge "Add "event trait list" command" 2017-04-12 01:56:02 +00:00
daohanli f29cdbdd2a Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I7fa054469bef233c31d0661bb40af226562e673e
2017-03-22 00:21:26 +08:00
liusheng f01874ddc6 Add "event trait description" command
This command allow users to list the trait type definitions of a
specified event_type.

Change-Id: Iea178629289f28edd5164aa32cd5d172a5aca28c
2017-03-15 16:44:56 +08:00
liusheng 60cd259a7a Add "event trait list" command
This command allow users to list the trait values of an specified event
type and trait name.

Change-Id: Ia8b27af7ee6c8533855fbd4937511e64e38b6494
2017-03-15 16:38:22 +08:00
Jenkins f3a6124e51 Merge "Make the output of "event list" more pretty" 2017-03-02 11:52:45 +00:00
Jenkins 6a4fe9a087 Merge "Add support for "event type list" command" 2017-03-02 11:51:42 +00:00
liusheng aa014b61e7 Fix issues after changing the package name to pankoclient
- Correct the pip installation command
- Fix the pbr version querying

Change-Id: I20b758622710fe2a292ad29b4494bd56fd817877
2017-03-01 10:21:23 +08:00
liusheng 3fe184f4ba Make the output of "event list" more pretty
Change-Id: I122d7dc7517f640bc5c109c1293045936217c0c4
2017-02-25 16:24:19 +08:00
liusheng 9f0171fd13 Add support for "event type list" command
Change-Id: Ifa4c7ede4f7860e57f541e4a09422dca19381d08
2017-02-25 11:23:48 +08:00
liusheng c30ff62fd9 Fix a pep8 issue to make sure the jenkins pass
Change-Id: I3a1e37152a78a624e53418b220af268b269a3550
2017-02-25 09:30:23 +08:00
liusheng 2193dd2c3f Fix some version typo
Change-Id: Ieac75bf2c820baf7e449fb269461881fa2ffee24
2017-02-20 11:15:14 +08:00
liusheng 62762c0724 Fix some pep8 errors
Change-Id: I06a0bd49a7b31125f35c5b2531f6e9cce02683df
2017-02-20 09:49:34 +08:00
liusheng 2c5e8abccf Add support for event commands
Change-Id: I67af7921ea53dd97b176b87263dcb2b941cf819a
2017-02-14 17:27:29 +08:00
liusheng 3d9eddfac9 Fix capabilities list command
Change-Id: I187f2c9b46920f557ecb8d7cb3ac4b1a3fd0f5d2
2017-02-14 15:34:47 +08:00
liusheng 711bb8b3fc Add capabilities list command
Change-Id: Iecffded6fc21830df6c21089681733cccb3a11e7
2017-02-14 14:29:26 +08:00
liusheng 493d6933a6 Initial commit
Change-Id: I95ea5eb503e5a5a7e59fe317a62e54cebc83bd55
2017-02-14 12:06:46 +08:00