Update help message for 'alarm-gnocchi-resources-threshold-create' command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-ceilometerclient |
Triaged
|
Medium
|
Rohit Jaiswal |
Bug Description
Help message for '--aggregation-
Right now it shows:
...
--aggregation
...
The problem is that 'avg' is not a valid aggregation method in gnocchi. So when creating alarm with 'avg' aggregation-method leads to error:
...excerpt from debug output...
DEBUG (client) REQ BODY: {"alarm_actions": ["log://"], "user_id": "", "description": "My Test Alarm with Gnocchi backend", "enabled": true, "name": "Cacti1Day-Alarm", "gnocchi_
tion_periods": 1, "metric": "MyCacti1Day", "resource_id": "2f98e37d-
generic"}, "insufficient_
INFO (connectionpool) Starting new HTTP connection (1): 192.0.2.18
DEBUG (connectionpool) "POST /v2/alarms HTTP/1.1" 400 1201
DEBUG (client) RESP: [400] {'date': 'Thu, 15 Oct 2015 13:22:02 GMT', 'content-length': '1201', 'content-type': 'application/json', 'x-openstack-
'Werkzeug/0.9.1 Python/2.7.5'}
DEBUG (client) RESP BODY: {"error_message": {"debuginfo": null, "faultcode": "Client", "faultstring": "aggregation_method should be in [u'31pct', u'67pct', u'81pct', u'13pct', u'25pct', u'40pct', u'50pct', u'6pc
t', u'11pct', u'22pct', u'1pct', u'42pct', u'76pct', u'70pct', u'84pct', u'94pct', u'20pct', u'32pct', u'60pct', u'34pct', u'66pct', u'95pct', u'33pct', u'73pct', u'85pct', u'21pct', u'82pct', u'12pct', u'std',
u'72pct', u'47pct', u'10pct', u'23pct', u'35pct', u'43pct', u'17pct', u'37pct', u'88pct', u'61pct', u'63pct', u'79pct', u'87pct', u'15pct', u'count', u'99pct', u'last', u'86pct', u'median', u'64pct', u'69pct', u
'78pct', u'58pct', u'56pct', u'3pct', u'19pct', u'5pct', u'38pct', u'moving-average', u'mean', u'57pct', u'59pct', u'65pct', u'39pct', u'16pct', u'36pct', u'89pct', u'93pct', u'48pct', u'28pct', u'75pct', u'98pc
t', u'18pct', u'52pct', u'7pct', u'9pct', u'min', u'55pct', u'90pct', u'96pct', u'45pct', u'68pct', u'14pct', u'44pct', u'2pct', u'4pct', u'92pct', u'26pct', u'max', u'49pct', u'53pct', u'29pct', u'74pct', u'80p
ct', u'24pct', u'51pct', u'62pct', u'97pct', u'54pct', u'77pct', u'41pct', u'71pct', u'46pct', u'83pct', u'8pct', u'30pct', u'91pct', u'first', u'sum', u'27pct'] not avg"}}
DEBUG (client) Request returned failure status: 400
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
CeilometerS
File "/usr/lib/
args.
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
alarm = cc.alarms.
File "/usr/lib/
return self._create(
File "/usr/lib/
body = self.api.post(url, json=body).json()
File "/usr/lib/
return self.client_
File "/usr/lib/
self, method, url, **kwargs)
File "/usr/lib/
method, self.concat_
File "/usr/lib/
raise exceptions.
ceilometerclien
2pct', u'76pct', u'70pct', u'84pct', u'94pct', u'20pct', u'32pct', u'60pct', u'34pct', u'66pct', u'95pct', u'33pct', u'73pct', u'85pct', u'21pct', u'82pct', u'12pct', u'std', u'72pct', u'47pct', u'10pct', u'23pc
t', u'35pct', u'43pct', u'17pct', u'37pct', u'88pct', u'61pct', u'63pct', u'79pct', u'87pct', u'15pct', u'count', u'99pct', u'last', u'86pct', u'median', u'64pct', u'69pct', u'78pct', u'58pct', u'56pct', u'3pct'
, u'19pct', u'5pct', u'38pct', u'moving-average', u'mean', u'57pct', u'59pct', u'65pct', u'39pct', u'16pct', u'36pct', u'89pct', u'93pct', u'48pct', u'28pct', u'75pct', u'98pct', u'18pct', u'52pct', u'7pct', u'9
pct', u'min', u'55pct', u'90pct', u'96pct', u'45pct', u'68pct', u'14pct', u'44pct', u'2pct', u'4pct', u'92pct', u'26pct', u'max', u'49pct', u'53pct', u'29pct', u'74pct', u'80pct', u'24pct', u'51pct', u'62pct', u
'97pct', u'54pct', u'77pct', u'41pct', u'71pct', u'46pct', u'83pct', u'8pct', u'30pct', u'91pct', u'first', u'sum', u'27pct'] not avg (HTTP 400) (Request-ID: req-15c161da-
...
Packages:
openstack-
openstack-
python-
openstack-
openstack-
openstack-
openstack-
openstack-
python-
openstack-
Regards,
Yurii
Changed in ceilometer: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in ceilometer: | |
assignee: | nobody → Rohit Jaiswal (rohit-jaiswal-3) |
affects: | ceilometer → python-ceilometerclient |