]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/callhome: persist operations between mgr restarts
authorYaarit Hatuka <yhatuka@ibm.com>
Mon, 21 Oct 2024 20:35:31 +0000 (16:35 -0400)
committerJustin Caratzas <jcaratza@redhat.com>
Tue, 23 Sep 2025 13:07:09 +0000 (09:07 -0400)
commit5fd6fbcee757634fb450e28ce621cbff3e3c9c87
treed74908a5df60c5d5797bf9a5b47b9b0db819011d
parentb21754f5a94ae92131f88ccdd0d9994a6333ed89
mgr/callhome: persist operations between mgr restarts

Currently the operations dictionary is only kept in memory. It is lost
when the mgr restarts, and this can cause the module to handle upload
requests which were already processed and registered in the operations
dictionary. To prevent that, we write the operations to the db, and load
them when the module starts.

Resolves: rhbz#2320831

https://bugzilla.redhat.com/show_bug.cgi?id=2320831

Signed-off-by: Yaarit Hatuka <yhatuka@ibm.com>
(cherry picked from commit 9a28b7c97467ede85afdb8d71a19b0d7be124280)
(cherry picked from commit c5a8a8b89b8f9a548ffae072c5bbe85d6bfe77b2)
src/pybind/mgr/call_home_agent/module.py