Skip to content

Commit 5db7df9

Browse files
authored
Bump Grout to v1.13.0 (#126)
* Bump Grout to v1.13.0 * Remove registry.redhat.io login as it is no longer required
1 parent a0521d8 commit 5db7df9

File tree

9 files changed

+25
-40
lines changed

9 files changed

+25
-40
lines changed

.github/workflows/pr.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ jobs:
3232
password: ${{ secrets.QUAY_TOKEN }}
3333
registry: ${{ env.QUAY_REGISTRY }}
3434

35-
- name: Log in to registry.redhat.io
36-
uses: redhat-actions/podman-login@v1
37-
with:
38-
username: ${{ secrets.RH_REGISTRY_USER }}
39-
password: ${{ secrets.RH_REGISTRY_TOKEN }}
40-
registry: ${{ env.RH_REGISTRY }}
41-
4235
- name: Build All
4336
run: |
4437
env

.github/workflows/push.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,6 @@ jobs:
3737
password: ${{ secrets.QUAY_TOKEN }}
3838
registry: ${{ env.QUAY_REGISTRY }}
3939

40-
- name: Log in to registry.redhat.io
41-
uses: redhat-actions/podman-login@v1
42-
with:
43-
username: ${{ secrets.RH_REGISTRY_USER }}
44-
password: ${{ secrets.RH_REGISTRY_TOKEN }}
45-
registry: ${{ env.RH_REGISTRY }}
46-
4740
- name: Build All
4841
id: build
4942
run: |

documentation/testing.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -702,20 +702,20 @@ grcli -f /usr/local/bin/example-cnf/run/grout.init -s /usr/local/bin/example-cnf
702702
703703
# check the config file to be applied
704704
sh-4.4$ cat /usr/local/bin/example-cnf/run/grout.init
705-
add interface port p0 devargs 0000:86:02.1 rxqs 2
706-
add interface port p1 devargs 0000:86:03.3 rxqs 2
705+
interface add port p0 devargs 0000:86:02.1 rxqs 2
706+
interface add port p1 devargs 0000:86:03.3 rxqs 2
707707
708-
add ip address 172.16.16.60/24 iface p0
709-
add ip address 172.16.21.60/24 iface p1
708+
address add 172.16.16.60/24 iface p0
709+
address add 172.16.21.60/24 iface p1
710710
711711
# run the script
712712
sh-4.4$ sudo /usr/local/bin/example-cnf/run/config-grout
713713
714714
# clear statistics
715-
sh-4.4$ sudo grcli -s /usr/local/bin/example-cnf/run/grout.sock clear stats
715+
sh-4.4$ sudo grcli -s /usr/local/bin/example-cnf/run/grout.sock stats reset
716716
717717
# print statistics
718-
sh-4.4$ sudo grcli -s /usr/local/bin/example-cnf/run/grout.sock show stats software
718+
sh-4.4$ sudo grcli -s /usr/local/bin/example-cnf/run/grout.sock stats show software
719719
NODE CALLS PACKETS PKTS/CALL CYCLES/CALL CYCLES/PKT
720720
port_rx 109805489408 2104 0.0 49.2 2567088141.0
721721
control_input 109805489408 39 0.0 22.6 63637321574.4

grout-container-app/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ SHELL := /bin/bash
22

33
DATE ?= $(shell date --utc +%Y%m%d%H%M)
44
SHA ?= $(shell git rev-parse --short HEAD)
5-
VERSION ?= 0.2.1
5+
VERSION ?= 0.2.2
66
REGISTRY ?= quay.io
77
ORG ?= rh-nfv-int
88
CONTAINER_CLI ?= podman

grout-container-app/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
TAG=${TAG:-"v0.2.1"}
5+
TAG=${TAG:-"v0.2.2"}
66

77
CLI=${CLI:="podman"}
88
ORG=${ORG:="rh-nfv-int"}

grout-container-app/cnfapp/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ FROM quay.io/rh-nfv-int/ubi9-base-grout:v0.0.1
1212
LABEL name="NFV Example CNF Grout Application" \
1313
maintainer="telcoci" \
1414
vendor="fredco" \
15-
version="v0.2.1" \
16-
release="v0.2.1" \
15+
version="v0.2.2" \
16+
release="v0.2.2" \
1717
summary="An example CNF for platform validation" \
1818
description="An example CNF for platform validation"
1919

2020
COPY licenses /licenses
2121

22-
ENV GROUT_VER v0.11.0
22+
ENV GROUT_VER v0.13.0
2323
ENV GROUT_RPM https://github.com/DPDK/grout/releases/download/${GROUT_VER}/grout.x86_64.rpm
2424

2525
# check latest release from https://github.com/DPDK/grout/releases

grout-container-app/cnfapp/README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ This is an example of what we could find in that config file:
3030

3131
```
3232
sh-4.4$ cat /usr/local/bin/example-cnf/run/grout.init
33-
add interface port p0 devargs 0000:86:02.1 rxqs 2
34-
add interface port p1 devargs 0000:86:03.3 rxqs 2
33+
interface add port p0 devargs 0000:86:02.1 rxqs 2
34+
interface add port p1 devargs 0000:86:03.3 rxqs 2
3535
36-
add ip address 172.16.16.60/24 iface p0
37-
add ip address 172.16.21.60/24 iface p1
36+
address add 172.16.16.60/24 iface p0
37+
address add 172.16.21.60/24 iface p1
3838
```
3939

4040
The file created by the automation to launch the Grout configuration is saved under `/usr/local/bin/example-cnf/run/grout.sock`, and it has the following content:
@@ -52,10 +52,10 @@ For example, we can print statistics in the following way:
5252

5353
```
5454
# clear statistics
55-
$ sudo grcli -s /usr/local/bin/example-cnf/run/grout.sock clear stats
55+
$ sudo grcli -s /usr/local/bin/example-cnf/run/grout.sock stats reset
5656
5757
# print statistics
58-
$ sudo grcli -s /usr/local/bin/example-cnf/run/grout.sock show stats software
58+
$ sudo grcli -s /usr/local/bin/example-cnf/run/grout.sock stats show software
5959
NODE CALLS PACKETS PKTS/CALL CYCLES/CALL CYCLES/PKT
6060
port_rx 109805489408 2104 0.0 49.2 2567088141.0
6161
control_input 109805489408 39 0.0 22.6 63637321574.4
@@ -91,15 +91,14 @@ Also, you can trace the traffic received by Grout with the following configurati
9191

9292
> Note trace should not be used during performance testing, since it impacts performance. Just use it for troubleshooting purposes.
9393
94-
9594
```
9695
# enter in grout CLI
9796
$ grcli -s /usr/local/bin/example-cnf/run/grout.sock
98-
grout# set trace all
97+
grout# trace enable all
9998
10099
# if you get the latest N traces of traffic managed by Grout, you
101100
# will be able to see traffic details.
102-
grout# show trace count 50
101+
grout# trace show count 50
103102
...
104103
--------- 08:25:08.558489191 cpu 2 ---------
105104
port_rx: port=0 queue=1
@@ -111,10 +110,10 @@ eth_output: 00:11:22:33:00:02 > 20:04:0f:f1:89:02 type=IP(0x0800) iface=p1
111110
port_tx: port=1 queue=1
112111
113112
# you can clear the trace in this way
114-
grout# clear trace
113+
grout# trace clear
115114
116115
# you can remove the trace in this way
117-
grout# del trace all
116+
grout# trace disable all
118117
```
119118

120119
## What to update if bumping container version

grout-container-app/cnfapp/scripts/grout-wrapper

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ for item in "${NETWORK_ARRAY[@]}"; do
4040
fi
4141
IFS=',' read -r -a PCI_ARRAY <<< "${!NAME}"
4242
for pci_item in "${PCI_ARRAY[@]}"; do
43-
echo "add interface port p${PORT_INDEX} devargs ${pci_item} rxqs ${RXQ}" >> $GROUT_CONF_FILE
43+
echo "interface add port p${PORT_INDEX} devargs ${pci_item} rxqs ${RXQ}" >> $GROUT_CONF_FILE
4444
PORT_INDEX=$((PORT_INDEX+1))
4545
done
4646
done
@@ -90,7 +90,7 @@ if [[ $RUN_DEPLOYMENT == "1" ]]; then
9090
sudo /usr/local/bin/example-cnf/run/config-grout
9191

9292
# Clear statistics
93-
sudo grcli -s $GROUT_SOCKET_FILE clear stats
93+
sudo grcli -s $GROUT_SOCKET_FILE stats reset
9494

9595
# Print statistics every $STAT_PERIOD seconds
9696
set +ex
@@ -99,7 +99,7 @@ if [[ $RUN_DEPLOYMENT == "1" ]]; then
9999
echo "*******************************************" 2>&1 | tee -a $GROUT_LOG_FILE
100100
date 2>&1 | tee -a $GROUT_LOG_FILE
101101
echo "*******************************************" 2>&1 | tee -a $GROUT_LOG_FILE
102-
sudo grcli -s $GROUT_SOCKET_FILE show stats software 2>&1 | tee -a $GROUT_LOG_FILE
102+
sudo grcli -s $GROUT_SOCKET_FILE stats show software 2>&1 | tee -a $GROUT_LOG_FILE
103103
echo "" 2>&1 | tee -a $GROUT_LOG_FILE
104104
sleep $STATS_PERIOD
105105
done

grout-container-app/cnfapp/scripts/retrieve-grout-ip-addresses

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def main():
2727
with open(CFG_FILE, "a") as f:
2828
f.write("\n")
2929
for idx in range(len(src_ip)):
30-
f.write("add ip address " + src_ip[idx] + " iface p" + str(idx) + "\n")
30+
f.write("address add " + src_ip[idx] + " iface p" + str(idx) + "\n")
3131

3232
def get_src_network_annotation():
3333
# object to return

0 commit comments

Comments
 (0)