Giter Club home page Giter Club logo

Comments (5)

gizmoguy avatar gizmoguy commented on July 30, 2024

Hi there,

What linux distribution/version are you running and what kernel version?

Also what docker command did you run to invoke the faucet test suite?

from faucet.

rakshijain123n avatar rakshijain123n commented on July 30, 2024

linux distribution/version:
PRETTY_NAME="Debian GNU/Linux rodete"
NAME="Debian GNU/Linux"
VERSION_ID="rodete"
VERSION="11 (rodete)"
VERSION_CODENAME=rodete
ID=debian

Kernel: Linux 5.10.40-1rodete2-amd64

Docker configs:

Create the docker image for our target version

if ! pushd "$SOURCE_DIR"; then
git clone "$GIT_REPO" "$SOURCE_DIR"
pushd "$SOURCE_DIR"
fi
if [ "$TARGET_VERSION" == "master" ] || ! git checkout "$TARGET_VERSION"; then
git fetch origin
git checkout "$TARGET_VERSION"
[ "$TARGET_VERSION" == "master" ] && git pull --rebase
fi
sudo docker build -t faucet/tests:"$TARGET_VERSION" -f Dockerfile.tests .
popd

Set up the config and network

mkdir -p "$TARGET_CONFIG_DIR"
cp "$TARGET_CONFIG" "$TARGET_CONFIG_DIR/hw_switch_config.yaml"
DOCKER_NETWORK_ARG="$(sudo "${BASH_SOURCE%/*}/setup-networking.sh")"
DOCKER_ARGS=(
--sysctl net.ipv6.conf.all.disable_ipv6=0
--privileged
"$DOCKER_NETWORK_ARG"
-v "$TARGET_CONFIG_DIR":/etc/faucet
-v "$RESULTS_DIR":/var/log/faucet-results
)
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.tcpdump || true
sudo modprobe openvswitch

Run the tests!

FAUCET_TESTS="-i -j $DOCKER_RESULTS_JSON"
if sudo docker run "${DOCKER_ARGS[@]}"
-e FAUCET_TESTS="$FAUCET_TESTS FaucetSanityTest"
faucet/tests:"$TARGET_VERSION"; then

sudo docker run "${DOCKER_ARGS[@]}" \
    -e FAUCET_TESTS="$FAUCET_TESTS FaucetSanityTest FaucetSimpleTest FaucetTcpdumpHelperTest FaucetUntaggedVLanUnicastFloodTest FaucetDockerHostTest" \
    faucet/tests:"$TARGET_VERSION" || true
sudo docker run "${DOCKER_ARGS[@]}" \
   -e FAUCET_TESTS="$FAUCET_TESTS" \
    faucet/tests:"$TARGET_VERSION" || true

fi

from faucet.

rakshijain123n avatar rakshijain123n commented on July 30, 2024

Any update on this?

DockerFile:

Image name: faucet/event-adapter-rabbitmq

FROM faucet/base
LABEL maintainer="Charlie Lewis [email protected]"

ENV PYTHONUNBUFFERED=0

RUN apk add --update
python3
python3-dev
py3-pip
gcc
musl-dev
&& rm -rf /var/cache/apk/*

WORKDIR /src

COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt

COPY rabbit.py rabbit.py
COPY test_rabbit.py test_rabbit.py

RUN apk add --update pytest &&
pip3 install pytest-cov &&
python3 -m pytest -l -v --cov=. --cov-report term-missing &&
apk del pytest &&
pip3 uninstall -y pytest-cov &&
find / -name *pyc -delete

CMD ["python3", "rabbit.py"]

from faucet.

gizmoguy avatar gizmoguy commented on July 30, 2024

I've been having a discussion with the Mininet developer about the cgroup error you're having.

Mininet uses cgroup v1 at the moment and we think your system must have this disabled in favor of cgroup v2. We don't have access to a rodete image ourselves to test this theory but that is the best idea we've come up with so far.

If you could try run the test suite under a Debian bullseye or Ubuntu 20.04 VM we think it should work.

from faucet.

rakshijain123n avatar rakshijain123n commented on July 30, 2024

No longer required. Thanks for looking into this issue @gizmoguy.

from faucet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.