alarm update failed with --query
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-aodhclient |
Confirmed
|
Undecided
|
PeterZhang | ||
aodh (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi all,
I use aodh cli to create a event alarm with query condition, the cli runs successfully.
But when i want to update the query condition, the cli runs failed.
The help info about `--query` para with these two cli have no difference.
The information is as follows, Does anyone else know why? Thanks~
stack@cloud:~$ aodh alarm create --name test --type event --event-type compute.
+------
| Field | Value |
+------
| alarm_actions | [] |
| alarm_id | 8d1018bd-
| description | Alarm when compute.
| enabled | True |
| event_type | compute.
| insufficient_
| name | test |
| ok_actions | [] |
| project_id | f0895991f44044c
| query | traits.instance_id = 3ed4fbc1-
| repeat_actions | False |
| severity | low |
| state | insufficient data |
| state_timestamp | 2016-11-
| time_constraints | [] |
| timestamp | 2016-11-
| type | event |
| user_id | 7d7531a2030d453
+------
stack@cloud:~$
stack@cloud:~$
stack@cloud:~$ aodh alarm update 8d1018bd-
Invalid input for field/attribute data. Value: '{'alarm_actions': [], 'event_rule': {'query': 'traits.
stack@cloud:~$
Changed in aodh: | |
assignee: | nobody → PeterZhang (zhangshengping2012) |
Status changed to 'Confirmed' because the bug affects multiple users.