lack "severity" feild when store a record for alarm_history table

Bug #1745946 reported by lipan
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Aodh
Fix Released
Undecided
lipan

Bug Description

alarm_history table has a field "severity",but aodh-evaluator service's _record_service() function in /aodh/evaluator/__init__.py lack this field.So this bug caused "severity" field in alarm_history is NULL.

source code is:

payload = dict(event_id=uuidutils.generate_uuid(),
                       alarm_id=alarm.alarm_id,
                       type=type,
                       detail=detail,
                       user_id=user_id,
                       project_id=project_id,
                       on_behalf_of=on_behalf_of,
timestamp=now)

lipan (lipan)
Changed in aodh:
assignee: nobody → lipan (lipan)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to aodh (master)

Fix proposed to branch: master
Review: https://review.openstack.org/538849

Changed in aodh:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to aodh (master)

Reviewed: https://review.openstack.org/538849
Committed: https://git.openstack.org/cgit/openstack/aodh/commit/?id=0deba34db64fb9aee7bae6b4468ce5ee39c5d054
Submitter: Zuul
Branch: master

commit 0deba34db64fb9aee7bae6b4468ce5ee39c5d054
Author: lipan <email address hidden>
Date: Mon Jan 29 17:23:05 2018 +0800

    add "severity" value for alarm_history

    alarm_history table has a field "severity",but aodh-evaluator service's
    _record_service() function in /aodh/evaluator/__init__.py lack this
    field.So this bug caused "severity" field in alarm_history is NULL.

    Change-Id: Ifd9f7b2fa9101ecbb6084dc363d7a14d3e67fed6
    Closes-Bug: #1745946

Changed in aodh:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/aodh 7.0.0

This issue was fixed in the openstack/aodh 7.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.