Skip to content

Logs available for "s1" switch only #85

@parhamyassini

Description

@parhamyassini

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 👍

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions