[ROCm]Keep LMCache OpenTelemetry on the image's 1.40 stack (#59056)
Signed-off-by: Micah Williamson <micah.williamson@amd.com>
Micah Williamson committed
Sep 28, 2026 at 10:49 UTC
b0d2b854f69379f3c83bb7215654e315d29fd815
2 files changed
+16
docker/Dockerfile.rock
+8
@@ -499,9 +499,17 @@ RUN printf '%s\n' "${LMCACHE_REF}" | grep -Eq '^[0-9a-f]{40}$' \
499
/app/lmcache/requirements/common.txt)" -eq 2 \
500
&& test "$(grep -Fxc 'numpy<=2.2.6' \
501
/app/lmcache/requirements/common.txt)" -eq 1 \
502
+ && test "$(grep -Fxc 'opentelemetry-api >= 1.20.0, <= 1.40.0' \
503
+ /app/lmcache/requirements/common.txt)" -eq 1 \
504
+ && test "$(grep -Fxc 'opentelemetry-sdk >= 1.20.0' \
505
+ /app/lmcache/requirements/common.txt)" -eq 1 \
506
+ && test "$(grep -Fxc 'opentelemetry-exporter-otlp >= 1.20.0' \
507
+ /app/lmcache/requirements/common.txt)" -eq 1 \
508
&& sed -i -E \
509
-e '/^(cufile-python|nvtx)([<=>[:space:]]|$)/d' \
510
-e 's/^numpy<=2\.2\.6$/numpy<=2.3.5/' \
511
+ -e 's/^opentelemetry-sdk >= 1\.20\.0$/opentelemetry-sdk >= 1.20.0, <= 1.40.0/' \
512
+ -e 's/^opentelemetry-exporter-otlp >= 1\.20\.0$/opentelemetry-exporter-otlp >= 1.20.0, <= 1.40.0/' \
513
/app/lmcache/requirements/common.txt \
514
&& rm -rf /app/lmcache/.git
515
docker/Dockerfile.rocm
+8
@@ -497,9 +497,17 @@ RUN printf '%s\n' "${LMCACHE_REF}" | grep -Eq '^[0-9a-f]{40}$' \
497
/app/lmcache/requirements/common.txt)" -eq 2 \
498
&& test "$(grep -Fxc 'numpy<=2.2.6' \
499
/app/lmcache/requirements/common.txt)" -eq 1 \
500
+ && test "$(grep -Fxc 'opentelemetry-api >= 1.20.0, <= 1.40.0' \
501
+ /app/lmcache/requirements/common.txt)" -eq 1 \
502
+ && test "$(grep -Fxc 'opentelemetry-sdk >= 1.20.0' \
503
+ /app/lmcache/requirements/common.txt)" -eq 1 \
504
+ && test "$(grep -Fxc 'opentelemetry-exporter-otlp >= 1.20.0' \
505
+ /app/lmcache/requirements/common.txt)" -eq 1 \
506
&& sed -i -E \
507
-e '/^(cufile-python|nvtx)([<=>[:space:]]|$)/d' \
508
-e 's/^numpy<=2\.2\.6$/numpy<=2.3.5/' \
509
+ -e 's/^opentelemetry-sdk >= 1\.20\.0$/opentelemetry-sdk >= 1.20.0, <= 1.40.0/' \
510
+ -e 's/^opentelemetry-exporter-otlp >= 1\.20\.0$/opentelemetry-exporter-otlp >= 1.20.0, <= 1.40.0/' \
511
/app/lmcache/requirements/common.txt \
512
&& rm -rf /app/lmcache/.git
513