Public bug reported:

If I create a threshold alarm in Icehouse without providing a value for
--severity everything works fine until I upgrade to any newer release
(i.e. Juno or above) at which point the alarm-evaluator throws the
following error:

2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service Traceback (most 
recent call last):
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service   File 
"/usr/lib/python2.7/dist-packages/ceilometer/alarm/service.py", line 93, in 
_evaluate_assigned_alarms
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service     alarms = 
self._assigned_alarms()
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service   File 
"/usr/lib/python2.7/dist-packages/ceilometer/alarm/service.py", line 151, in 
_assigned_alarms
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service     'value': 
True}])
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service   File 
"/usr/lib/python2.7/dist-packages/ceilometerclient/v2/alarms.py", line 77, in 
list
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service     return 
self._list(options.build_url(self._path(), q))
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service   File 
"/usr/lib/python2.7/dist-packages/ceilometerclient/common/base.py", line 68, in 
_list
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service     resp = 
self.api.get(url)
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service   File 
"/usr/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py",
 line 355, in get
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service     return 
self.client_request("GET", url, **kwargs)
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service   File 
"/usr/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py",
 line 345, in client_request
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service     self, method, 
url, **kwargs)
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service   File 
"/usr/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py",
 line 261, in client_request
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service     method, 
self.concat_url(endpoint, url), **kwargs)
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service   File 
"/usr/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py",
 line 201, in request
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service     raise 
exceptions.from_response(resp, method, url)
2016-01-29 12:33:27.966 10419 TRACE ceilometer.alarm.service BadRequest: 
Invalid input for field/attribute severity. Value: 'None'. Value should be one 
of: moderate, critical, low (HTTP 400) (Request-ID: 
req-deab771d-fede-4cdc-962d-d7043b046022)

Presumably we could easily assume a default of low severity if a value
of None is discovered thus allowing upgrades to continure working.

** Affects: aodh
     Importance: Undecided
         Status: New

** Affects: ceilometer
     Importance: Undecided
         Status: New

** Also affects: aodh (Ubuntu)
   Importance: Undecided
       Status: New

** No longer affects: aodh (Ubuntu)

** Also affects: aodh
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1539570

Title:
  alarm-evaluator severity attribute null value causes error in >= juno

To manage notifications about this bug go to:
https://bugs.launchpad.net/aodh/+bug/1539570/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to