reproduce_nft_missing_elements.txt

Change-Id: I013c69a512704ba99d91bc215f2c92ed1da97e14
This commit is contained in:
Neels Hofmeyr 2023-02-07 14:01:01 +01:00
parent 5e8dd6bf2c
commit beb429a98e
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# The commit that breaks/unbreaks is 'drop flags owner'.
# revert it to reproduce missing 'element'
git revert 98d73e4c5b489cf8c34238417f9bcfa6d8cbbe9a
# rebuild osmo-upf, then
sudo setcap cap_net_admin+pe $(which osmo-upf)
# enter testing arena
cd osmo-upf/contrib/osmo-pfcp-tool-scripts/
sudo ./netns_add.sh
# one terminal for osmo-upf
sudo ./netns_enter.sh nsr2
osmo-upf -c osmo-upf-nsr2.cfg
# keep osmo-upf running here; at any time to restart:
^C
sudo nft delete table inet osmo-upf-nsr2
osmo-upf -c osmo-upf-nsr2.cfg
# other terminal also in nsr2:
sudo ./netns_enter.sh nsr2
# uses osmo-pfcp-tool.cfg, need another IP address to not clash with osmo-upf's PFCP port
# so notice that there is 127.0.0.2 in osmo-pfcp-tool.cfg and we need loopback:
sudo ip link set lo up
# send PFCP instructions for a tunmap to osmo-upf (redo after each restart of osmo-upf)
osmo-pfcp-tool pfcp-nsr2.vty
sudo nft list ruleset
# should show no 'elements'.
# ...now you can drop the 'git revert' and rebuild, then you should see 'elements' present.