db2u pod startup failed because File .db2u_restore_morph_completed could not be found
Collection version
26.0.0 and later
Environment information
quay.io/ibmmas/cli@sha256:0b8eb2fa89ec4a2fdd7cdbac99a9a4e6262d6b134f5a5dcbba6cd584a34480d1
What happened?
During the deployment of a separate DB2 in a new namespace the ansible role ROLE_NAME=db2 endet with failure in task "Wait for Db2 Stateful set to be ready" while waiting for the db2u pod to be started and the StatefulSet to be ready.
db2u pod could not start completely after several retries.
Error in db2u pod occrued (details in Relevant log output)
The issue is known since January 2025 when the first DB2 instance has been deployed. The problem is that the File .db2u_restore_morph_completed dows not exist.
We found a workaround to copy the following file:
sudo cp /mnt/blumeta0/db2/.lifecycle/.db2u_nodes_ready /mnt/blumeta0/db2/.lifecycle/.db2u_restore_morph_completed
After that the db2u pod started successfully and the deployment could be completed without problems
Relevant log output
{"level":"error","component":"server","subComponent":"GetDb2HealthV2","caller":"[14]:db2.go:303:GetDb2HealthV2()","timestamp":"2025-07-16T12:46:00Z","message":"--startup status failed: stderr: Traceback (most recent call last):\n File \"/usr/local/bin/status\", line 33, in <module>\n sys.exit(load_entry_point('db2u-containers==1.0.0.dev1', 'console_scripts', 'status')())\n File \"/usr/local/lib/python3.9/site-packages/cli/status.py\", line 26, in main\n Status().startup()\n File \"/usr/local/lib/python3.9/site-packages/status/status.py\", line 52, in startup\n raise Exception(\"Startup is not complete, restore morph is running\")\nException: Startup is not complete, restore morph is running\n hostname: c-db2dev1-db2u-0"}
+ [[ ! -f /mnt/blumeta0/db2/.lifecycle/.db2u_restore_morph_completed ]]
Speaking to the db2u team about this ...