Commit Graph

322 Commits

Author SHA1 Message Date
Ghanshyam Mann 967956ad6b Cleanup the retired repo
This repo is not properly retired. Retired repos can only have two files:
- README.rst
- gitreview

To cleanup the retirement of this repo, keeping these two files only and
removing the other remaining files if there is any.
Detail: https://etherpad.opendev.org/p/tc-retirement-cleanup

Change-Id: I28ce91772755e263aa5ca12ca6c6642cfdc2998b
2020-08-05 20:01:04 -05:00
Julien Danjou b64069d598 Remove repository content and add new URL
Change-Id: I68eeb6c393810563a3c90bfea87590b9f1c1e452
2017-04-25 17:07:34 +02:00
Julien Danjou ad75e1e5aa Remove outdated mention of OpenStack
Change-Id: Ia41f73b34c8dcf6b06aeea7371321097f2baf2ea
2017-04-25 16:39:20 +02:00
Julien Danjou 0f490476c9 Remove oslopshinx
Change-Id: Idcb18d717058452c04a39f6ded105d4b82393751
2017-04-25 16:39:20 +02:00
Julien Danjou 7b3a743244 Add Travis configuration for GitHub
Change-Id: Ic4809bdd4fcb2e9de5d3281f659897a90cf8c2b7
2017-04-25 16:38:48 +02:00
Jenkins 43ea65cb77 Merge "Add update archive policy rule in osc" 2017-04-20 17:01:59 +00:00
Jenkins 0bb384ce1b Merge "Replace "openstack metric metric..." commands" 2017-04-20 16:54:55 +00:00
Huachao Mao 2f9449ae35 Add update archive policy rule in osc
Change-Id: I2d92115addcd1d2a3e44bbd2d7d7a6d7c7a61e96
2017-04-18 14:35:01 +08:00
David Rabel c006932813 Replace "openstack metric metric..." commands
Use only one "metric" instead.

Change-Id: Ic54f2e267fa792e5e70b77fb27e85a2645f0bc0a
Closes-Bug: #1675835
2017-04-07 12:50:17 +02:00
Julien Danjou 8dbbe54c2c Move doc8 into pep8 target
This is the same kind of check and this makes sure that docs error are caught
by the gate. Otherwise, the docs are built with tox -e venv which does not call
doc8 and errors are missed.

Change-Id: I33559cb9b7bf637c339f54ed99b49da39b89e75c
2017-03-31 09:46:25 +02:00
Julien Danjou 2314ae5bfc Remove doc8 from gnocchi.xyz
This is not needed.

Change-Id: I42287b2328366830ad83368b4a20d3b8a7682c0f
2017-03-15 10:35:48 +01:00
Julien Danjou aefc50ee68 Fix doc link
Change-Id: I02f5df9a2c7d7bb9d197f76299d7d3a524501b65
Signed-off-by: Julien Danjou <julien@danjou.info>
2017-03-15 10:31:26 +01:00
Jenkins 5e7ede3363 Merge "Improve authentication documentation" 2017-03-01 22:20:49 +00:00
Julien Danjou 2b2e08ea7b Remove pbr cap
Change-Id: Ief1675b5853645ffba18da09cee65fe59565b9d8
Signed-off-by: Julien Danjou <julien@danjou.info>
2017-03-01 17:44:31 +01:00
Jenkins 0b1fc7d491 Merge "doc: Add authentication examples" 2017-02-27 13:43:46 +00:00
Mehdi Abaakouk c5fdda72dc doc: Add authentication examples
Change-Id: I0bafc73e6d2e8cdf4d0b354488f5db4abfe6cfda
2017-02-27 14:28:35 +01:00
Julien Danjou ed880fdd29 Improve authentication documentation
Remove confusing documentation about variables, add OS_AUTH_TYPE for password
authentication and add link to keystoneauth doc.

Change-Id: I5adcb23e18ae03ffd7d37a5604e93d0bd412e78b
Closes-Bug: #1666617
2017-02-21 22:18:30 +01:00
Hanxi Liu 14602f834e Trivial: remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: If834ba9f791cdcc87d06edc089d9457f0bf2286c
2017-02-09 23:59:31 +08:00
Julien Danjou 7282f8436c exceptions: make sure resource type not found is checked before resource not found
The error string is too close so it's never matched otherwise.

Change-Id: I0ef12c1a9588b074b003df915a4b909822e0b230
2017-02-03 16:31:38 +01:00
Mehdi Abaakouk add8ec1d80 allow to pass session and adapter options
Change-Id: I083c723181964687980ec7624904dc5cc42bfb73
2017-01-31 11:58:17 +01:00
Mehdi Abaakouk cbaa19664c Use new keystoneauth1 helper
keystoneauth1 can register adapter options, use that to be
homogeneous with other cli.

Change-Id: I3b2494e8a817541002b30b2b589156ce1f78e7c2
2017-01-31 11:58:16 +01:00
Jenkins 32b62fbd12 Merge "add note when using OS_AUTH_TYPE" 2017-01-30 14:49:15 +00:00
Julien Danjou 12744ce0ff Fix data display when listing resources
The list of columns is currently hardcoded and does not take into account extra
columns returned when using the `--details` option. This build a dynamic column
list in all cases.

It also hides the (deprecated) fields `created_by_*` if `creator` is present.
It also hides the `metrics` field in most cases (except show) as it's usually
big and make the list very long in some cases.

Change-Id: Id25e9f30189cb7faccf3f4b9adb4df413435296c
2017-01-26 21:49:01 +01:00
Julien Danjou 45e59efaa8 shell: make client works with default Gnocchi installation
This sets the default auth mode to "basic" (like Gnocchi itself) and the
default value for user and endpoint to something that make it work without
setting anything in simple scenario.

Basically, it makes it work by default in many simple cases.

Change-Id: I7f2dab85f97808f5245d80fd8e04cc535d1f3f6f
2017-01-26 15:37:26 +01:00
gord chung 6c32b7b492 add note when using OS_AUTH_TYPE
OS_AUTH_TYPE is shared globally by clients so add a note to make
users aware

Change-Id: I1a208077777730ba0c74a3e047199ac29f8aed47
2017-01-25 19:49:30 +00:00
Mehdi Abaakouk 1ef64d5fd5 docs: Add all commands help
This change add gnocchi.rst with all commands help.
And validate the doc with doc8.

Change-Id: I1b7c8f675165d3d193d28b06357c05ad01c3a901
2017-01-24 13:06:08 +01:00
Jenkins 5f2a369713 Merge "Stop always encoding resource" 2017-01-20 16:59:15 +00:00
Julien Danjou f14fe0e03b Switch to basic auth in functional tests and fix encoding
Sure there's less parenthesis than in Lisp but then you made much more mistake
like that.

Also added a test to make sure I got it right this time, dummy.

Change-Id: Ib63c71a750e41029d6f230a5e7518f84146a606a
2017-01-17 09:07:46 +01:00
Julien Danjou 069108306f auth: fix header type
You know that HTTP wants byte but keystoneauth wants strings.

Change-Id: Ie498275c9389d27313244ef15bdfc8b2a71e088c
2017-01-13 11:02:30 +01:00
Jenkins ed7c1acab9 Merge "Add support for basic authentication" 2017-01-10 14:20:28 +00:00
Mehdi Abaakouk c77109d8b3 resource: Set correct attribute type
Currently all resources attributes are transmitted as string to the
server. But if the attribute type is a number or a bool, the json must
have the value as float or bool too.

This change does that.

Closes-bug: #1649269
Change-Id: I0f739f782bf081761d289398bcd4185af3d0e7b4
2017-01-05 11:53:49 +01:00
Julien Danjou 641ac0861b Stop always encoding resource
This makes sure we do not try to guess the mechanism used by the server if it
ever changes.

The test is changed to not make UUID with / in it working. This won't
work for a lot of reasons, and it should probably not work, so it's the
responsibility of the caller to not use a / in the resource id.

Change-Id: Ic7ce4033ee13c65e6f542f52ebf15d8f271deee6
2017-01-04 17:13:12 +01:00
Jenkins 3615beca8f Merge "support fill option" 2017-01-04 09:22:10 +00:00
Jenkins e1e3fd71fc Merge "Replaces uuid.uuid4 with uuidutils.generate_uuid()" 2017-01-04 09:05:05 +00:00
gord chung a2029fa7ad support fill option
Change-Id: I53221297d38aeb6d7932bca5acb2ed3008d98ce6
2016-12-22 20:06:03 +00:00
Jenkins 33aff16d1c Merge "[doc] Note lack of constraints is a choice" 2016-12-21 16:42:35 +00:00
Julien Danjou a373d4a486 Add support for basic authentication
Change-Id: I15e8ab531a5e82b211b65da312890579b5498024
2016-12-21 16:59:40 +01:00
Tony Breeds 57d7ee58ab [doc] Note lack of constraints is a choice
Change-Id: Id45d71ac141b0523077809633905b5016d7180fc
2016-12-21 09:48:37 +11:00
Julien Danjou a5ecc4e143 Remove unused method
The default returns None anyway.

Change-Id: Idcca232b7ae1c8fa63141e85207c6dedbec0c33c
2016-12-20 16:29:32 +01:00
Jenkins 77144c3ed8 Merge "Remove no more usefull help" 2016-12-14 16:07:36 +00:00
Mehdi Abaakouk c22a0ee573 Remove no more usefull help
Since https://review.openstack.org/#/c/410776/, all
format of granularity are supported by the server.

Related-bug: #1649908
Change-Id: Iab45fbf677429fdacfb5244ff4af3b68e11df23f
2016-12-14 15:42:32 +01:00
fengchaoyang fa4c7ab4d0 Delete the useless code
These lines of code are not used anywhere, and we already have a
command "gnocchi resource-type list".

Change-Id: Ia14f4da3bb6d2bdf19b8cb0efc2df9c7adbe68a8
2016-12-07 15:33:15 +08:00
zhangguoqing 5a046bce01 Replaces uuid.uuid4 with uuidutils.generate_uuid()
Openstack common has a wrapper for generating uuids. We should
use that function when generating uuids for consistency.

Change-Id: I4edf9c34347056018ff7a1d3d6e08129f7140e6e
Closes-Bug: #1082248
2016-12-07 03:01:55 +00:00
Jenkins 107b117a92 Merge "support resample option" 2016-11-29 07:05:48 +00:00
Jenkins 027be162e4 Merge "fix 409 exception regex" 2016-11-23 19:29:47 +00:00
Mehdi Abaakouk f36d778dbd osc: Pass interface and region to gnocchi client
Closes-bug: #1641895

Change-Id: Iff544bfa49592f039caaf066a00f9948536e24ad
2016-11-22 12:11:30 +01:00
Mehdi Abaakouk 107889476a fix 409 exception regex
NamedMetricAlreadyExists does not catch the correct message.

Change-Id: I951fde3afa80b41643fa3b4af6f14e41e4063f0d
2016-11-22 12:11:25 +01:00
gord chung eb754ee5aa support resample option
Change-Id: If4af794048650bac5abd2ed023320f00c40092ca
Depends-On: Ibda001e13ef03a1cd550eed8b662944bb51e9d98
2016-11-21 17:20:39 +00:00
Jenkins f5035d18fb Merge "metric: add support for `--create-metrics' in batch-resources-metrics" 2016-11-21 12:12:34 +00:00
Jenkins f02ae37530 Merge "Bump hacking to 0.12" 2016-11-21 12:10:17 +00:00