AMBARI-25397 Upgrading ambari-logsearch-logfeeder to 2.7.4 rpm gives warnings#3103
Merged
Akhilsnaik merged 1 commit intoapache:branch-2.7from Oct 18, 2019
Merged
Conversation
…warnings (santal)
|
Refer to this link for build results (access rights to CI server needed): |
payert
pushed a commit
to payert/ambari
that referenced
this pull request
Apr 16, 2020
…warnings (santal) (apache#3103) (cherry picked from commit 470bbe9) Change-Id: Iba3c9a0b9044e4aeaa9574a8a45db8028b829347
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Customer is upgrading Ambari Logsearch to 2.7.4, while upgrading the rpm it gives below errors/warnings
ln: failed to create symbolic link '/usr/bin/logfeeder': File exists
rm: cannot remove '/etc/ambari-logsearch-logfeeder': Is a directory
warning: %postun(ambari-logsearch-logfeeder-2.7.4.*noarch) scriptlet failed, exit status 1
The issue can be reproduced in local environment
Also the symlink for file "/usr/bin/logfeeder" does not get created since Ambari 2.7.4
In Ambari 2.7.3 the symlink is created
How was this patch tested?
The patch was tested manually.
Created a higher version RPM, then upgraded and removed the logfeeder packages. After removing the logfeeder the error message did not appear on the output and all related symlinks and directories were removed.
Created 2 new higher RPMs and then upgrading the logfeeder 2x. After the second update, errors / warning messages did not appear on the output.