Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #13964 - include installer scenarios in foreman-debug #3260

Closed
wants to merge 1 commit into from

Conversation

mbacovsky
Copy link
Member

  • added paths to the installer configs and logs including migrations
  • fixed the add_files to really accept symlinks. The file filter let them in but they were refused by mime-type filter
  • fixed case's "else" to log skipped files
  • during debugging I found out that XML files were silently skipped so I've added a fix as well, can be removed from this PR as it is not related to the issue (let me know if it is the case)

@@ -298,6 +299,7 @@ add_cmd "echo 'select type,name,host,port,account,base_dn,attr_login,onthefly_re
add_cmd "foreman-selinux-relabel -nv" "foreman_filecontexts"

add_files /etc/{sysconfig,default}/foreman
add_files /etc/{sysconfig,default}/foreman-installer/scenarios.d/{*,*/*,*/.*}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there any files like this?

@domcleal
Copy link
Contributor

domcleal commented Mar 2, 2016

fixed the add_files to really accept symlinks. The file filter let them in but they were refused by mime-type filter

Should it store actual symlinks in the tarball? It appears to be copying the contents of the file in, so you end up with two copies of it. Perhaps knowing that a certain file (e.g. last_scenario.yaml) actually is a symlink and where it's pointing to might be useful to know.

@mbacovsky
Copy link
Member Author

@domcleal yeah it would makes sense to store the symlinks. I tried to store them as is, which is problem in non-relative links. Do you prefer to store the link as it was (to see where it pointed to originaly on the system) or update the link to be functional and point to file in the foreman-debug tarball?

@domcleal
Copy link
Contributor

domcleal commented Mar 3, 2016

I'd say just store it as-is, there's less chance of it going wrong and it would be clearer if you're trying to debug something from the information.

@mbacovsky
Copy link
Member Author

Symlinks added, archiving non-existing files from /etc/sysconfig removed,

@domcleal
Copy link
Contributor

domcleal commented Mar 3, 2016

Merged as 91e0340, thanks @mbacovsky.

@domcleal domcleal closed this Mar 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants