MLOps Studio TensorBoard PVC Smoke Test
Test objective
Verify that a TensorBoard instance can read TensorFlow event logs stored on a notebook PVC and that the TensorBoard UI opens correctly in MLOps Studio.
Test environment
MLOps Studio namespace:
testTensorBoard name:
tb-smokeStorage type:
PVCNotebook storage mount:
/home/jovyanTensorBoard log directory in the notebook:
/home/jovyan/tensorboard-logs/smoke-testTensorBoard mount path:
/tensorboard-logs/smoke-test
Preconditions
The MLOps Studio deployment includes the TensorBoards component.
You can create notebooks and TensorBoard instances in the
testnamespace.A notebook with a persistent volume mounted at
/home/jovyanis available.TensorFlow is installed in the notebook image.
Test steps
1. Create a notebook
Create a notebook in the following namespace:
test
The notebook must use a persistent volume mounted at:
/home/jovyan
Start the notebook and open its JupyterLab interface.
2. Generate TensorBoard event logs
Create a Python notebook cell and run:
import tensorflow as tf
log_dir = "/home/jovyan/tensorboard-logs/smoke-test"
writer = tf.summary.create_file_writer(log_dir)
with writer.as_default():
for step in range(20):
loss = 1.0 / (step + 1)
accuracy = 0.50 + step * 0.02
tf.summary.scalar("loss", loss, step=step)
tf.summary.scalar("accuracy", accuracy, step=step)
writer.flush()
print(f"TensorBoard logs created in: {log_dir}")
Expected output:
TensorBoard logs created in: /home/jovyan/tensorboard-logs/smoke-test
Warnings about missing CUDA drivers can be ignored when the notebook does not use a GPU.
3. Verify that the event file was created
Run the following command in a Python notebook cell:
!find /home/jovyan/tensorboard-logs -type f
Expected result:
/home/jovyan/tensorboard-logs/smoke-test/events.out.tfevents...
At least one file starting with events.out.tfevents must be present.
4. Create a TensorBoard instance
Open TensorBoards in the MLOps Studio UI and select New TensorBoard.
Use the following values:
Field |
Value |
|---|---|
Name |
|
Namespace |
|
Storage type |
|
PVC name |
Select the same PVC that is mounted in the notebook at |
Mount path |
|
Configurations |
Leave empty. |
Select CREATE.
Note
Do not select Object Store because the event files are stored on the notebook PVC.
5. Wait for the TensorBoard instance
Wait until the TensorBoard instance is created and its status indicates that it is running or ready.
6. Open TensorBoard
Select CONNECT, or open the TensorBoard instance from the MLOps Studio UI.
Expected result
The TensorBoard UI opens successfully.
The Scalars or Time Series view contains:
loss— decreasing values;accuracy— increasing values.
This confirms the following flow:
Notebook -> PVC -> TensorBoard instance -> TensorBoard UI
Actual result observed
The TensorBoard instance is created, but opening it displays the following error:
The Tensorboard server is currently unavailble
The TensorBoard UI does not load.
Test result
Failed
Initial issue summary
TensorFlow event logs are created successfully on the notebook PVC, but the TensorBoard server is unavailable after creating and opening the TensorBoard instance in MLOps Studio.
Further verification should include the TensorBoard pod status, Kubernetes events, container logs, PVC mount configuration, and TensorBoard controller logs.