Project

General

Profile

Actions

Bug #24950

open

foreman-debug issues when defining -d "different directory"

Added by Waldirio Pinheiro over 5 years ago. Updated about 5 years ago.

Status:
New
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Actually when defining "-d <new path>" the file should be created on the specified directory. The file is created on the correct place but the point is, there isn't file name, just .<extension>

I'll check the script just to check what is going on. The file is being generated without name.

---
[root@sat631 ~]# foreman-debug -d /waldirio/
Processing... (takes a while)

HOSTNAME: sat631.local.domain
OS: redhat
RELEASE: Red Hat Enterprise Linux Server release 7.5 (Maipo)
FOREMAN: 1.15.6.45
RUBY: ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
PUPPET: 3.8.6
DENIALS: 0

A debug file has been created: /waldirio/.tar.xz (20168988 bytes)

To upload a tarball to our secure site, please use the u option.
[root@sat631 ~]#
--

Actions #1

Updated by Waldirio Pinheiro over 5 years ago

  • Pull request https://github.com/theforeman/foreman/pull/6070 added
Actions #2

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
Actions #3

Updated by Lukas Zapletal over 5 years ago

Waldirio, the problem is trailing slash not how this is designed. It works as expected unless you provide the trailing slash. Please rename the BZ, Issue and PR and provide fix for this if possible. Thanks for the report, analysis and patch!

BAD SCENARIO:

[root@next ~]# foreman-debug -d /tmp/test/
Processing... (takes a while)

 HOSTNAME: next.nat.lan
       OS: redhat
  RELEASE: Red Hat Enterprise Linux Server release 7.5 (Maipo)
  FOREMAN: 1.18.0.14
     RUBY: ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
   PUPPET: 5.5.0
  DENIALS: 0

A debug file has been created: /tmp/test/.tar.xz (1873524 bytes)

To upload a tarball to our secure site, please use the -u option.

SUCCESS SCENARIO:

[root@next ~]# foreman-debug -d /tmp/test2
Processing... (takes a while)

 HOSTNAME: next.nat.lan
       OS: redhat
  RELEASE: Red Hat Enterprise Linux Server release 7.5 (Maipo)
  FOREMAN: 1.18.0.14
     RUBY: ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
   PUPPET: 5.5.0
  DENIALS: 0

A debug file has been created: /tmp/test2.tar.xz (963620 bytes)

To upload a tarball to our secure site, please use the -u option.

Actions #4

Updated by The Foreman Bot about 5 years ago

  • Status changed from Ready For Testing to New
  • Pull request deleted (https://github.com/theforeman/foreman/pull/6070)
Actions

Also available in: Atom PDF