Unable to create a volume backup within 1 min after restarting the cinder backup service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
In Progress
|
Undecided
|
Unassigned |
Bug Description
I've encountered an odd behavior after restarting the cinder-backup process.
Subsequent attempts to create a volume backup result in errors despite the absence of any errors reported by the cinder-backup service.
1) Start the cinder-volume backup process (around 11:19:20).
2) Wait for 20-30 seconds, then attempt to create a volume backup (around 11:19:40)
[root@ak-devstack0 ~]# openstack volume backup create vol-test --name bcp1
[root@ak-devstack0 ~]# openstack volume backup show fe8b4eea-
+------
| Field | Value |
+------
| created_at | 2024-03-
| status | error |
| updated_at | 2024-03-
+------
[root@ak-devstack0 ~]#
If I wait a little more than 1 minute, subsequent backups are created successfully.
In the cinder-scheduler logs, I found the following lines:
Mar 28 11:19:26 ak-devstack0 cinder-
Mar 28 11:19:43 ak-devstack0 cinder-
Mar 28 11:20:43 ak-devstack0 cinder-
I've reviewed the code [1] and noted that the logs do not contain "Backup driver was successfully initialized" or "Failed to initialize driver."
Additionally, the init_loop.start method catches the LoopingCallDone exception, meaning that we never enter the 'except loopingcall.
Fix proposed to branch: master /review. opendev. org/c/openstack /cinder/ +/914641
Review: https:/