Closed twoGiants closed 3 weeks ago
To answer the questions in the Description:
- If it can be fixed without causing too much disruption to test-network setup that would be ideal. If it will make test-network setup significantly more complex, then I agree with the doc approach...
Not to complex but not worth the effort at this point. No issues open and no complains so far. The documentation will tell how to resolve it. I think that should suffice for now.
Note - you also need to add your email signoff at the bottom of the commit message to pass the DCO check. More details at https://github.com/hyperledger/fabric/pull/5045/checks?check_run_id=32014394611.
Type of change
Description
Currently the test network can only be used on Linux machines with SElinux disabled. When SELinux is enabled on the host two issues appear:
The reason for the first issue are permission errors with Docker/Podman volumes. This can be seen in the container logs:
To resolve the errors the volume sections of the compose files needs to be modified.
The reason for the second issue is that the peer container can not access the Docker socket. When deploying a new chaincode in a test network running on Docker the following error happens:
To resolve this error the Docker compose file needs to be modified. The volume section needs to be updated and the security option disabled for this container.
The errors in the container logs and during chaincode deployment were added to the test_network.md 'Troubleshooting' section as an aid if someone searches the documentation for those errors.
The necessary changes are documented in a new section called 'SELinux' under the 'Tutorials/Using the Fabric test network' docs.
Additional details
The documented changes were discovered and fixed in a test network running on a Fedora 40 machine.
I deployed a version of the documentation with my changes for the reviewer here. Scroll down for the entry in the test network troubleshooting section, its the last two entries.
Two questions to the reviewer (Update 24.10):