Actions
Bug #13442
closedforeman-debug script should return a meaningful exit code
Description
foreman-debug script returns non-zero return code even if it completes successfully, which makes hard to automate/script since the return code is not reliable.
[root@foreman-rhel7 ~]# foreman-debug -d ~/1-foreman-debugExporting tasks, this may take a few minutes. HOSTNAME: foreman-rhel7.server.com OS: redhat RELEASE: Red Hat Enterprise Linux Server release 7.2 (Maipo) FOREMAN: 1.7.2 SATELLITE: 6.1.6 RUBY: ruby 2.0.0p598 (2014-11-13) [x86_64-linux] PUPPET: 3.6.2 DENIALS: 0 A debug file has been created: /root/1-foreman-debug.tar.xz (773856 bytes) [root@qe-sat6-cdn-rhel7 ~]# echo $? 1
Updated by Dominic Cleal almost 9 years ago
- Status changed from New to Rejected
Cannot reproduce on a current release, please update.
# foreman-debug -d ~/1-foreman-debug; echo $? HOSTNAME: foreman.example.com OS: redhat RELEASE: CentOS Linux release 7.0.1406 (Core) FOREMAN: 1.11.0-develop RUBY: ruby 2.0.0p598 (2014-11-13) [x86_64-linux] PUPPET: 3.8.5 DENIALS: 1 A debug file has been created: /root/1-foreman-debug.tar.xz (237348 bytes) To upload a tarball to our secure site, please use the -u option. 0
Updated by Elyézer Rezende almost 9 years ago
I can't update the version on the issue, but I have foreman-debug-1.7.2.50-1.el7sat.noarch installed here. Also the foreman-debug output points out FOREMAN: 1.7.2.
Updated by Dominic Cleal almost 9 years ago
Please file a bug with Red Hat or contact them for support, as Foreman upstream appears to be working fine.
Updated by Lukas Zapletal almost 9 years ago
- Category set to Packaging
- Status changed from Rejected to Assigned
- Assignee set to Lukas Zapletal
Reproducer:
echo "UPLOAD_DISABLED=1" > /usr/share/foreman/config/foreman-debug.conf foreman-debug echo $? 1
Easy help, thanks for report. Have you already created a BZ? Can you send me a link please?
Updated by The Foreman Bot almost 9 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3147 added
Updated by Lukas Zapletal almost 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 8c3bed8c69518ee46015705277b359270b2f9c29.
Updated by Dominic Cleal almost 9 years ago
- Translation missing: en.field_release set to 123
Updated by Dominic Cleal almost 9 years ago
- Category changed from Packaging to foreman-debug
Actions