Some tasks are still using yum instead of dnf making the command always fail.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Committed
|
Critical
|
Sofer Athlan-Guyot |
Bug Description
Hi,
I bumped into this in another review:
2020-07-23 21:05:42 | "cmd": "yum check-upgrade openvswitch | awk '/openvswitch/
2020-07-23 21:05:42 | "delta": "0:00:00.007338",
2020-07-23 21:05:42 | "end": "2020-07-23 21:05:41.999441",
2020-07-23 21:05:42 | "failed_
2020-07-23 21:05:42 | "invocation": {
2020-07-23 21:05:42 | "module_args": {
2020-07-23 21:05:42 | "_raw_params": "yum check-upgrade openvswitch | awk '/openvswitch/
2020-07-23 21:05:42 | "_uses_shell": true,
2020-07-23 21:05:42 | "argv": null,
2020-07-23 21:05:42 | "chdir": null,
2020-07-23 21:05:42 | "creates": null,
2020-07-23 21:05:42 | "executable": null,
2020-07-23 21:05:42 | "removes": null,
2020-07-23 21:05:42 | "stdin": null,
2020-07-23 21:05:42 | "stdin_
2020-07-23 21:05:42 | "strip_empty_ends": true,
2020-07-23 21:05:42 | "warn": true
2020-07-23 21:05:42 | }
2020-07-23 21:05:42 | },
2020-07-23 21:05:42 | "rc": 0,
2020-07-23 21:05:42 | "start": "2020-07-23 21:05:41.992103",
2020-07-23 21:05:42 | "stderr": "/bin/sh: yum: command not found",
2020-07-23 21:05:42 | "stderr_lines": [
2020-07-23 21:05:42 | "/bin/sh: yum: command not found"
2020-07-23 21:05:42 | ],
2020-07-23 21:05:42 | "stdout": "",
2020-07-23 21:05:42 | "stdout_lines": []
2020-07-23 21:05:42 | }
Doing a quick grep we still have a bunch of yum command around.
We should strive to use the ansible_pkg_mgr ansible variable to get the right tool (dnf, yum) as I suspect that some of those command associated with "failed_when" false may be silently failing since a long time.
tags: | added: upgrade |
Changed in tripleo: | |
milestone: | victoria-1 → victoria-3 |
Related fix proposed to branch: stable/ussuri /review. opendev. org/743947
Review: https:/