Result of a successful playbook role callback to Foreman as an error (Applied = 1 Error = 0) WebGUI

Hi,

All the result of successful playbook return as err in the WebGUI (Foreman) event if it say Applied = 1 and Error = 0

err common : create dir {"_ansible_parsed": true, "group": "root", "uid": 0, "_ansible_no_log": false, "changed": false, "owner": "root", "failed": false, "state": "directory", "gid": 0, "secontext":
"unconfined_u:object_r:user_tmp_t:s0", "mode": "0755", "diff": {"after": {"path": "/tmp/backup"}, "before": {"path": "/tmp/backup"}}, "invocation": {"module_args": {"directory_mode": null, "force": false, "remote_src": null, "path": "/tmp/backup", "owner": null, "follow": false, "group": null, "unsafe_writes": null, "state": "directory", "content": null, "serole": null, "diff_peek": null, "setype": null, "selevel": null,
"original_basename": null, "regexp": null, "validate": null, "src": null, "seuser": null, "recurse": false, "delimiter": null, "mode": 493, "attributes": null, "backup": null}}, "path": "/tmp/backup", "size": 36}

This is just a role that create a directory under /tmp and everything work but the WebGUI always report err ?

Is there something that I missed here ?

Thanks
Thanks it look like almost the same bug so I won't open a new bug and I'll wait for a fix.


··· Le mardi 5 décembre 2017 12:40:54 UTC-5, dan...@djj-consultants.com a écrit :

Hi,

All the result of successful playbook return as err in the WebGUI
(Foreman) event if it say Applied = 1 and Error = 0

err common : create dir {"_ansible_parsed": true, "group": "root", "uid":
0, "_ansible_no_log": false, "changed": false, "owner": "root", "failed":
false, "state": "directory", "gid": 0, "secontext":
"unconfined_u:object_r:user_tmp_t:s0", "mode": "0755", "diff": {"after":
{"path": "/tmp/backup"}, "before": {"path": "/tmp/backup"}}, "invocation":
{"module_args": {"directory_mode": null, "force": false, "remote_src":
null, "path": "/tmp/backup", "owner": null, "follow": false, "group": null,
"unsafe_writes": null, "state": "directory", "content": null, "serole":
null, "diff_peek": null, "setype": null, "selevel": null,
"original_basename": null, "regexp": null, "validate": null, "src": null,
"seuser": null, "recurse": false, "delimiter": null, "mode": 493,
"attributes": null, "backup": null}}, "path": "/tmp/backup", "size": 36}

This is just a role that create a directory under /tmp and everything work
but the WebGUI always report err ?

Is there something that I missed here ?

Thanks

Hi,
this seems like a bug to me, it could be related to the poor formatting which we already track as [1], but I think it is worth investigating, so feel free to file an issue at [2].

O.

[1] http://projects.theforeman.org/issues/21715
[2] http://projects.theforeman.org/projects/ansible/issues/new

··· On Tue, Dec 5, 2017 at 4:54 PM, <daniel@djj-consultants.com> wrote:

Hi,

All the result of successful playbook return as err in the WebGUI
(Foreman) event if it say Applied = 1 and Error = 0

err common : create dir {"_ansible_parsed": true, "group": "root", "uid":
0, "_ansible_no_log": false, "changed": false, "owner": "root", "failed":
false, "state": "directory", "gid": 0, "secontext":
"unconfined_u:object_r:user_tmp_t:s0", "mode": "0755", "diff": {"after":
{"path": "/tmp/backup"}, "before": {"path": "/tmp/backup"}}, "invocation":
{"module_args": {"directory_mode": null, "force": false, "remote_src":
null, "path": "/tmp/backup", "owner": null, "follow": false, "group": null,
"unsafe_writes": null, "state": "directory", "content": null, "serole":
null, "diff_peek": null, "setype": null, "selevel": null,
"original_basename": null, "regexp": null, "validate": null, "src": null,
"seuser": null, "recurse": false, "delimiter": null, "mode": 493,
"attributes": null, "backup": null}}, "path": "/tmp/backup", "size": 36}

This is just a role that create a directory under /tmp and everything work
but the WebGUI always report err ?

Is there something that I missed here ?

Thanks

--
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.