Skip to content

Permission Denied - multicast_snooping #7

Description

@vinsworldcom

Running on Docker for Windows with WSL2 integration, getting:

root@4177eaff57f1:/emane-sims-etce# ./start_demo.sh root 2-node/ --runtostep run --policy autoadd
sshuser=root
demodir=2-node/
Removing contents of "/tmp/etce/lxcroot" directory.
Bringing up bridge: emanenode0
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/etce/lxcmanager.py", line 58, in startlxcs
dryrun=dryrun)
File "/usr/lib/python3.6/site-packages/etce/lxcmanager.py", line 144, in start
enablemulticastsnooping=True)
File "/usr/lib/python3.6/site-packages/etce/platform.py", line 113, in bridgeup
self._impl.bridgeup(bridgename, addifs, enablemulticastsnooping)
File "/usr/lib/python3.6/site-packages/etce/linux/platformimpl.py", line 143, in bridgeup
with open('/sys/devices/virtual/net/%s/bridge/multicast_snooping' % bridgename, 'w') as sf:
PermissionError: [Errno 13] Permission denied: '/sys/devices/virtual/net/emanenode0/bridge/multicast_snooping'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/bin/etce-lxc", line 109, in <module>
main()
File "/bin/etce-lxc", line 102, in main
args.func(args)
File "/usr/lib/python3.6/site-packages/etce/lxcfieldmanager.py", line 72, in startfield
args.dryrun)
File "/usr/lib/python3.6/site-packages/etce/lxcmanager.py", line 60, in startlxcs
raise LXCError(e.message)
AttributeError: 'PermissionError' object has no attribute 'message'
Waiting for LXCs ...
TestCollection:
2-node
Ignoring kill argument "both" used in conjunction with runtostep. Using "before" instead.

Running the same Docker container on Windows without WSL2 integration works fine. Any idea about why the /sys/devices/virtual/net/emanenode0/bridge/multicast_snooping creation is denied in one flavor vs. the other?

Cheers.

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