Backup fails because of sysinv-utils
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
High
|
Kristine Bujold |
Bug Description
Brief Description
-----------------
I think this issue was introduced by https:/
On my system configuration there was no proxy present and the sysinv-utils script fails to treat this case. Moreover, the script returns 0 when it shouldn't and the playbook fails to catch the error.
2019-11-22 16:17:54,405 p=1187653 u=sysadmin | TASK [backup/
2019-11-22 16:17:54,405 p=1187653 u=sysadmin | task path: /usr/share/
2019-11-22 16:17:54,496 p=1187653 u=sysadmin | Using module file /usr/lib/
2019-11-22 16:18:00,053 p=1187653 u=sysadmin | changed: [localhost] => {
"changed": true,
"cmd": [
],
"delta": "0:00:05.286237",
"end": "2019-11-22 16:18:00.005991",
"failed_
"invocation": {
"argv": null,
"warn": true
}
},
"rc": 0,
"start": "2019-11-22 16:17:54.719754",
"stderr": "",
"stderr_lines": [],
"stdout": "sysinv 2019-11-22 16:17:59.775 1202266 ERROR sysinv.cmd.utils [-] Resource could not be found.: NotFound: Resource could not be found.\u001b[00m",
"stdout_lines": [
"sysinv 2019-11-22 16:17:59.775 1202266 ERROR sysinv.cmd.utils [-] Resource could not be found.: NotFound: Resource could not be found.\u001b[00m"
]
}
Because the sysinv-utils script does not create the localhost_
2019-11-22 16:18:35,679 p=1187653 u=sysadmin | TASK [backup/
2019-11-22 16:18:35,679 p=1187653 u=sysadmin | task path: /usr/share/
2019-11-22 16:18:36,157 p=1187653 u=sysadmin | Using module file /usr/lib/
2019-11-22 16:18:36,495 p=1187653 u=sysadmin | fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"mode": null,
"path": "/opt/backups/
"src": null,
}
},
"msg": "Path /opt/backups/
"rc": 257
}
Severity
--------
Critical
Steps to Reproduce
------------------
Run the backup playbook:
ansible-playbook /usr/share/
Expected Behavior
------------------
The playbook should run succesfully
Actual Behavior
----------------
The playbook run failed
Reproducibility
---------------
100% reproducible
System Configuration
-------
One node system
Branch/Pull Time/Commit
-------
SW_VERSION="19.09"
BUILD_TARGET=
BUILD_TYPE=
BUILD_ID="n/a"
JOB="n/a"
BUILD_BY="jenkins"
BUILD_NUMBER="n/a"
BUILD_HOST=
BUILD_DATE=
BUILD_DIR="/"
WRS_SRC_
WRS_GIT_
CGCS_SRC_
CGCS_GIT_
Changed in starlingx: | |
assignee: | nobody → Mihnea Saracin (msaracin) |
status: | New → In Progress |
This has been fixed with https:/ /review. opendev. org/#/c/ 695718