Description of problem: database.yml linked to /persistent-region/region-data/var/www/miq/vmdb/config/database.yml, so after log collection we have only link, without file. Same with GUID, it linked to /persistent/server-data/var/www/miq/vmdb/GUID inflating: config/database.yml~ -> /persistent-region/region-data/var/www/miq/vmdb/config/database.yml inflating: config/database.yml -> /persistent-region/region-data/var/www/miq/vmdb/config/database.yml inflating: config/settings.yml~ inflating: config/settings.yml inflating: ROOT/var/log/messages inflating: BUILD inflating: GUID -> /persistent/server-data/var/www/miq/vmdb/GUID Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Login into appliance 2. Go to Configuration -> Diagnostics -> Log Collection -> Edit 3. Set correct log depot settings 4. Collect logs 5. Unzip collected file Actual results: database.yml and GUID collected as links but not like an actual file Expected results: database.yml and GUID collected as file Additional info:
In 4.5 database.yml, GUID along with other files are symlinks to the real files on persistent volumes for the openshift appliance builds. My assumption is that the log collection routines are not following symlinks for files. As a heads up, in the latest upstream code, database.yml has moved from a file configuration to an URL based one, see here : https://github.com/ManageIQ/manageiq-pods/pull/155 GUID still remains a symlinked file along with others.
PR: https://github.com/ManageIQ/manageiq/pull/15420
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/2063a7687462b706192b24c6b81ac390251b4c66 commit 2063a7687462b706192b24c6b81ac390251b4c66 Author: Bo Yao <boyao> AuthorDate: Mon Jun 19 15:51:03 2017 -0400 Commit: Bo Yao <boyao> CommitDate: Mon Jun 26 10:28:58 2017 -0400 follow symlinks recursively when add entry to zip https://bugzilla.redhat.com/show_bug.cgi?id=1450134 lib/vmdb/util.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
verified in 5.9.0.8.20171109215303_ed87902