we should return FAILED status when we create an audit with unspecified parameters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| watcher |
Medium
|
Jinquan Ni |
Bug Description
openstack) optimize audit create -a at2 -p param1=5.5 -p param2=bye
+------
| Field | Value |
+------
| UUID | 06bd5ef5-
| Created At | 2016-07-
| Updated At | None |
| Deleted At | None |
| Deadline | None |
| State | PENDING |
| Audit Type | ONESHOT |
| Audit Template uuid | 05caa95f-
| Audit Template Name | at2 |
| Parameters | {u'para2': u'hello', u'para1': 3.2, u'param2': u'bye', u'param1': 5.5} |
+------
param2 and param1 are not specified parameters for this strategy. So we should return a FAILED status to notify the admin user.
(openstack) optimize strategy list --detail --format json
[
{
"Parameters spec": {
"properties": {
"para2": {
"type": "string",
},
"para1": {
"type": "number",
}
}
},
"Display name": "Dummy strategy",
"Goal": "dummy",
"UUID": "7483bef0-
"Name": "dummy"
},
description: | updated |
Changed in watcher: | |
assignee: | nobody → Jinquan Ni (ni-jinquan) |
Changed in watcher: | |
status: | Triaged → In Progress |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit 1fafcc5ef1cfaca
Author: jinquanni <email address hidden>
Date: Wed Aug 24 20:04:10 2016 +0800
Check unspecified parameters create audit
Currently, create audit with unspecified parameters will success.
This is not reasonable, we shoud return a FAILED status to
notify the admin user.
Change-Id: Ifbcb3b8d9e7366
Closes-Bug: #1599879
Changed in watcher: | |
status: | In Progress → Fix Released |
This issue was fixed in the openstack/watcher 0.29.0 release.
Fix proposed to branch: master /review. openstack. org/359818
Review: https:/