Skip to content

Commit bc170e0

Browse files
committed
Fix sushy-tools container startup failures
Resolves issues preventing sushy-tools BMC emulator from starting: - Fix SSH volume mount path (/root/ssh -> /root/.ssh) - Explicitly specify config file in container command - Add SELinux labels (:z) to volume mounts for permission access These fixes ensure sushy-tools starts correctly and passes health checks for Redfish endpoint accessibility.
1 parent ac07f5a commit bc170e0

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

scripts/cleanup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ if [ ${#CLUSTER_POOL_PATHS[@]} -gt 0 ]; then
285285
for cluster_path in "${CLUSTER_POOL_PATHS[@]}"; do
286286
if [ "$POOL_PATH_CHECK" = "$cluster_path" ]; then
287287
# Check if not already in the list
288-
if [[ ! " ${POOLS_TO_CLEAN[*]} " =~ " $pool " ]]; then
288+
if [[ ! " ${POOLS_TO_CLEAN[*]} " =~ \ $pool\ ]]; then
289289
info "Found pool '$pool' pointing to cluster path $cluster_path, will clean it up"
290290
POOLS_TO_CLEAN+=("$pool")
291291
fi

scripts/start_sushy_tools.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,11 @@ sudo podman run -d \
172172
--net host \
173173
--privileged \
174174
--name "$CONTAINER_NAME" \
175-
-v "$SUSHY_DIR:/root/sushy" \
176-
-v "/root/.ssh:/root/ssh" \
177-
-v "/var/run/libvirt:/var/run/libvirt" \
178-
"${SUSHY_TOOLS_IMAGE}"
175+
-v "$SUSHY_DIR:/root/sushy:z" \
176+
-v "/root/.ssh:/root/.ssh:ro,z" \
177+
-v "/var/run/libvirt:/var/run/libvirt:z" \
178+
"${SUSHY_TOOLS_IMAGE}" \
179+
sushy-emulator --config /root/sushy/conf.py
179180

180181
# Open firewall port for sushy-tools
181182
info "Configuring firewall to allow sushy-tools traffic..."

0 commit comments

Comments
 (0)