app-rook-ceph/python3-k8sapp-rook-ceph
Erickson Silva de Oliveira 3fb190bfe6 Fix check if restore in progress
When performing the BnR procedure with the wipe_ceph_osds
flag and the rook-ceph backend configured, an error was
given when removing the app.

This happened because a restore in progress check in the
DB was done in the app's lifecycle and false was always
returned, as the insert had not yet been performed before
this task.

To fix this, the database query has been replaced by
checking the '/etc/platform/.restore_in_progress' flag.

Test Plan:
- PASS: Build rook-ceph app
- PASS: optimized AIO-SX B&R with wipe_ceph_osds flag
- PASS: legacy STD + DX B&R with wipe_ceph_osds flag

Partial-Bug: 2086473

Change-Id: Ica3befe51ff08a53eb1b33af12e96fa4358e6c0f
Signed-off-by: Erickson Silva de Oliveira <Erickson.SilvadeOliveira@windriver.com>
2024-11-02 21:55:57 +00:00
..
debian Initial commit for app-rook-ceph 2024-05-08 09:51:44 -03:00
k8sapp_rook_ceph Fix check if restore in progress 2024-11-02 21:55:57 +00:00