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

Logs available for "s1" switch only #85

Open
parhamyassini opened this issue Apr 6, 2021 · 0 comments
Open

Logs available for "s1" switch only #85

parhamyassini opened this issue Apr 6, 2021 · 0 comments

Comments

@parhamyassini
Copy link

Hello,

I am having a problem in p4app environments with multiple switches.
The log output folder "/tmp/p4app_logs" will only contain logs for the switch with the name "s1" i.e "p4s.s1.log".
Even for the example "multiswitch.p4app", the same problem persists.

As a workaround, I am currently renaming my switch (and links) to s1 to check out the logs from the desired switch.
But I think this shouldn't be the expected behavior.

I think this issue is related to this commit message: 239dc98

There is a hardcoded commands for p4s.s1.log in "docker/scripts/p4apprunner.py":

run_command('touch /tmp/p4app_logs/p4s.s1.log')
run_command('ln -s /tmp/p4app_logs/p4s.s1.log /tmp/p4s.s1.log')

Thank you in advance 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant