Skip to content

Commit 2968d90

Browse files
committed
extraConfigDpu: Move to Kubecon Intel VSP/P4 img
Signed-off-by: Salvatore Daniele <[email protected]>
1 parent c255f37 commit 2968d90

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

dpuVendor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ def build_push(self, h: host.Host, imgReg: ImageRegistry, sha: str) -> str:
6868
if h.is_localhost():
6969
env = os.environ.copy()
7070
env["IMGTOOL"] = "podman"
71+
env["P4_NAME"] = "fxp-net_linux-networking"
72+
env["P4_DIR"] = "fxp-net_linux-networking"
73+
7174
ret = h.run("make -C /root/ipu-opi-plugins/ipu-plugin image", env=env)
7275
else:
7376
ret = h.run("IMGTOOL=podman make -C /root/ipu-opi-plugins/ipu-plugin image")

extraConfigDpu.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
DPU_OPERATOR_REPO = "https://github.com/openshift/dpu-operator.git"
1717
MICROSHIFT_KUBECONFIG = "/root/kubeconfig.microshift"
1818
OSE_DOCKERFILE = "https://pkgs.devel.redhat.com/cgit/containers/dpu-operator/tree/Dockerfile?h=rhaos-4.17-rhel-9"
19-
P4_IMG = "wsfd-advnetlab240.anl.eng.bos2.dc.redhat.com:5000/intel-ipu-p4-sdk:10-9-2024"
19+
P4_IMG = "wsfd-advnetlab223.anl.eng.bos2.dc.redhat.com:5000/intel-ipu-sdk:kubecon-aarch64"
2020

2121
KERNEL_RPMS = [
2222
"https://download-01.beak-001.prod.iad2.dc.redhat.com/brewroot/vol/rhel-9/packages/kernel/5.14.0/427.2.1.el9_4/x86_64/kernel-5.14.0-427.2.1.el9_4.x86_64.rpm",
@@ -151,16 +151,16 @@ def wait_vsp_ds_running(client: K8sClient) -> None:
151151

152152
def ensure_p4_pod_running(lh: host.Host, acc: host.Host, imgReg: ImageRegistry) -> None:
153153
lh.run_or_die(f"podman pull --tls-verify=false {P4_IMG}")
154-
lh.run_or_die(f"podman tag {P4_IMG} {imgReg.url()}/intel-ipu-p4-sdk:10-9-2024")
155-
lh.run_or_die(f"podman push {imgReg.url()}/intel-ipu-p4-sdk:10-9-2024")
154+
lh.run_or_die(f"podman tag {P4_IMG} {imgReg.url()}/kubecon-aarch64")
155+
lh.run_or_die(f"podman push {imgReg.url()}/kubecon-aarch64")
156156
uname = acc.run("uname -r").out.strip()
157157
logger.info("Manually starting P4 container")
158-
cmd = f"podman run --network host -d --privileged --entrypoint='[\"/bin/sh\", \"-c\", \"sleep 5; sh /entrypoint.sh\"]' -v /lib/modules/{uname}:/lib/modules/{uname} -v data1:/opt/p4 {imgReg.url()}/intel-ipu-p4-sdk:10-9-2024"
158+
cmd = f"podman run -d --privileged -v /lib/modules/{uname}:/lib/modules/{uname} -v /opt/p4/p4-cp-nws/var/run:/opt/p4/p4-cp-nws/var/run -v /sys:/sys -p 9559:9559 {imgReg.url()}/kubecon-aarch64"
159159
acc.run_or_die(cmd)
160160
# Occasionally the P4 pod fails to start
161161
while True:
162162
time.sleep(10)
163-
if "intel-ipu-p4-sdk:10-9-2024" in acc.run("podman ps").out:
163+
if "kubecon-aarch64" in acc.run("podman ps").out:
164164
break
165165
logger.info("Failed to start p4 container, retrying")
166166
acc.run_or_die(cmd)

0 commit comments

Comments
 (0)