Wednesday, 2026-02-04

*** mhen_ is now known as mhen02:30
opendevreviewDmitriy Rabotyagov proposed openstack/freezer master: Use snapshot timestamp for storage package naming  https://review.opendev.org/c/openstack/freezer/+/97538014:23
opendevreviewDmitriy Rabotyagov proposed openstack/freezer master: Return restore request if no backups for volume  https://review.opendev.org/c/openstack/freezer/+/97565216:04
noonedeadpunkmhen: I added handling of the max() issue in here ^16:04
mhennoonedeadpunk: if freezer-scheduler invokes freezer-agent here and reaches this case, wouldn't the agent return with a zero exit code and freezer-scheduler misinterpret this job as succeeded if it simply returns at that point?16:06
noonedeadpunkdo you think we should raise there?16:07
noonedeadpunkI don't actually see that anybody is checking for the even there 16:07
noonedeadpunkbut yeah, that is a good point16:07
mhendefinitely; even if using freezer-agent directly on the CLI as a user I'd expect an error message being returned that no applicable backup could be found16:07
mhenthis way it would silently fail in either case16:08
mhenand I think this is bad UX16:08
mhenfrom a user's POV, I want it to fail hard and loud if it was unable to do the thing it said it would do (in this case: restore a backup)16:09
noonedeadpunkI kinda wonder how we allow `volume_id` to be None16:10
mhenwhere?16:12
noonedeadpunkI think another raise should be there if both volume_id and backup_id are None16:12
noonedeadpunkhttps://github.com/openstack/freezer/blob/a3210ca85aa698e0af957dd85b41609c6522261e/freezer/openstack/restore.py#L22016:13
mhenhttps://github.com/openstack/freezer/blob/master/freezer/common/config.py#L790-L79116:15
mhenit's because you must have either to even trigger that code path16:16
mhenand "--mode cindernative" doesn't actually do anything16:17
mhenI have used "--mode cinder" with "--cindernative-vol-id" and triggered the cindernative mode16:17
mheneven though "--mode cindernative" is a documented choice16:17
mhenit is irrelevant16:17
mhenbecause of the "backup_media" stuff linked above16:18
mhenit is a mess at times to be honest16:18
noonedeadpunkyeah, it looks like it...16:18
opendevreviewMerged openstack/freezer master: Use snapshot timestamp for storage package naming  https://review.opendev.org/c/openstack/freezer/+/97538016:27
opendevreviewMerged openstack/freezer master: Fix restore-from-date behavior  https://review.opendev.org/c/openstack/freezer/+/97543716:48
opendevreviewDmitriy Rabotyagov proposed openstack/freezer master: Return restore request if no backups for volume  https://review.opendev.org/c/openstack/freezer/+/97565216:49
opendevreviewDmitriy Rabotyagov proposed openstack/freezer master: Return restore request if no backups for volume  https://review.opendev.org/c/openstack/freezer/+/97565218:05

Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!