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
[opendaylight] Update directory for openDaylight logs #1438
Conversation
@@ -29,12 +29,12 @@ def setup(self): | |||
if self.get_option("all_logs"): | |||
self.add_copy_spec([ | |||
"/opt/opendaylight/data/log/", | |||
"/var/log/containers/opendaylight/", | |||
"/var/log/containers/opendaylight/karaf/logs/", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change means restriction in logs collected - is that intentional? Currently (when --all-logs
option is used), whole directory /var/log/containers/opendaylight/
is collected. You request collecting just subdirectory here? (could be reasonable, just want to be sure it is the intention)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is intentional. All ODL logs are now under /var/log/containers/opendaylight/karaf/logs. For example, we would have:
/var/log/containers/opendaylight/karaf/logs/karaf.log
/var/log/containers/opendaylight/karaf/logs/karaf.log.1
Whereas before, all ODL logs would be:
/var/log/containers/opendaylight/karaf.log
/var/log/containers/opendaylight/karaf.log.1
]) | ||
else: | ||
self.add_copy_spec([ | ||
"/opt/opendaylight/data/log/*.log*", | ||
"/var/log/containers/opendaylight/*.log*", | ||
"/var/log/containers/opendaylight/karaf/logs/*.log*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the above change and also this one is triggered by moving the logfiles of interest from /var/log/containers/opendaylight/
to /var/log/containers/opendaylight/karaf/logs
dir - if I am right, the change makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, exactly. Thanks.
Does merging this PR depend on the ODL change? What if (does not it make sense to collect both dirs / |
Yes, this pull request depends on tripleO change: That is a good question about running 'sosreport' on older versions. I think your suggestion is a good one, just collect the logs from both places to handle older versions. Let me check with couple other |
Can you be absolutely certain that the new release of |
Agree, can't be absolutely certain, so will do as you suggest, thanks. What is the correct way to mark the old paths as deprecated, just a comment? Any examples? |
Yeah - just a comment for now. We don't have a formal way of marking collection bits as deprecated. It's informal - just meant as a reminder/note for future readers and editors, so something along the lines of:
|
Thanks, |
Please fix pep8 / pycodestyle formatting issues from https://travis-ci.org/sosreport/sos/jobs/443763833 :
Further:
|
Done, thanks.
Good point, doesn't make sense to collect the same twice! I have cleaned this up and pushed a new patch, thanks for the review comments. |
Something a bit funny in that most recent commit - it seems to have lost its subject line? First line of the commit should be:
(with a single blank line between the subject and the body of the commit). |
Apologies for that, I just pushed a new patch and added the subject line back. This is my first go around working will pull requests on a forked repo, appreciate your comments and patience. Thanks, |
You need to clean up this branch before it is in a state to merge - currently, when pulling from your repo I end up with:
This does not comply with our requirements for commits to sos:
You need to take all these changes, and either use |
On Tue, Dec 18, 2018 at 6:45 AM Bryn M. Reeves ***@***.***> wrote:
You need to clean up this branch before it is in a state to merge -
currently, when pulling from your repo I end up with:
$ git log --oneline master..HEAD
269b0c90 (HEAD -> bmr-merge) [opendaylight] Update directory for openDaylight logs
fdbc81aa OpenDaylight karaf logs are now located in: /var/log/containers/opendaylight/karaf/logs, so update the plugin to get the karaf.log files from the new location.
bf7a48f5 [opendaylight] Update directory for openDaylight logs
483f9fb5 [opendaylight] Update directory for openDaylight logs
This does not comply with our requirements for commits to sos:
- Each patch needs a proper subject in [module] change description
format
- One change is one commit: do not make multiple commits with the same
message
You need to take all these changes, and either use git reset HEAD~4, and
then re-do the commit with the right message and all the changes in one
place, or you can use git rebase -i and the squash command to merge them
together - either is fine and gives the same end result.
Thanks, I will take care of this shortly.
Vic
… —
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1438 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AQXYWBkwJ5SeTrT0uFgmFqGoknj00_O-ks5u6NVqgaJpZM4W42YQ>
.
|
OpenDaylight karaf logs are now located in: /var/log/containers/opendaylight/karaf/logs, so deprecate the old paths, and update the plugin to get the karaf.log files from new location. Signed-off-by: Victor Pickard <vpickard@redhat.com>
OpenDaylight karaf logs are now located in:
/var/log/containers/opendaylight/karaf/logs, so
update the plugin to get the karaf.log files
from new location.
Resolves: #1793566
Depends-on: https://review.openstack.org/#/c/603907/
Signed-off-by: Victor Pickard vpickard@redhat.com
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines