watcher-audit-list-failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
watcher |
Fix Released
|
High
|
Unassigned |
Bug Description
Request 'watcher audit list' requires to have 'name' field to be filled.
'nullable' option should be set to True: https:/
Otherwise, the following error raises:
Traceback (most recent call last):
File "/usr/lib/
result = f(self, *args, **kwargs)
File "/opt/watcher/
audit_
File "/opt/watcher/
sort_
File "/opt/watcher/
p, expand) for p in rpc_action_plans]
File "/opt/watcher/
p, expand) for p in rpc_action_plans]
File "/opt/watcher/
action_plan = ActionPlan(
File "/opt/watcher/
setattr(self, 'audit_uuid', kwargs.
File "/opt/watcher/
audit = objects.
File "/usr/lib/
result = fn(cls, context, *args, **kwargs)
File "/opt/watcher/
return cls.get_
File "/usr/lib/
result = fn(cls, context, *args, **kwargs)
File "/opt/watcher/
audit = cls._from_
File "/opt/watcher/
obj[field] = db_object[field]
File "/usr/lib/
setattr(self, name, value)
File "/usr/lib/
field_value = field.coerce(self, name, value)
File "/usr/lib/
return self._null(obj, attr)
File "/usr/lib/
raise ValueError(_("Field `%s' cannot be None") % attr)
Changed in watcher: | |
importance: | Undecided → High |
description: | updated |
Newly created audit has default name if name was not given like below.
Is this report fixing for backward compatibility ?
$ watcher audit list ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------+ ------- -----+- ------- ---+--- ---+--- ------- +------ ------- -+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------+ ------- -----+- ------- ---+--- ---+--- ------- +------ ------- -+ 9014-465d- 9eb0-9eaee7ed98 e1 | zone_migration- 2017-12- 08T04:35: 47.041556 | ONESHOT | CANCELLED | None | auto | True | 3dae-4828- aa43-d450f84c24 ac | zone_migration- 2017-12- 08T04:39: 19.843336 | ONESHOT | CANCELLED | None | auto | False | 233b-43cd- a2af-3670fcc4c3 b3 | zone_migration- 2017-12- 08T04:42: 29.760497 | ONESHOT | CANCELLED | None | auto | False | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------+ ------- -----+- ------- ---+--- ---+--- ------- +------ ------- -+
+------
| UUID | Name | Audit Type | State | Goal | Strategy | Auto Trigger |
+------
| 6f3ece51-
| f375f7cb-
| a2ac7df8-
+------