foreman-debug script should return a meaningful exit code
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
#1 Updated by Dominic Cleal over 6 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
#4 Updated by Lukas Zapletal over 6 years ago
- Category set to Packaging
- Status changed from Rejected to Assigned
- Assignee set to Lukas Zapletal
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?