)]}'
{"nova/tests/functional/regressions/test_bug_2175866.py":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"0f856515c5f86c9b3ad66136d4beeca12410252d","unresolved":true,"context_lines":[{"line_number":58,"context_line":"        swap.cache(fetch_func\u003dcreate_swap_base, filename\u003d\u0027swap_49152\u0027,"},{"line_number":59,"context_line":"                   size\u003d49152 * units.Mi, swap_mib\u003d49152, safe\u003dTrue)"},{"line_number":60,"context_line":""},{"line_number":61,"context_line":"        resize.assert_not_called()"},{"line_number":62,"context_line":"        self.assertFalse(os.path.exists("},{"line_number":63,"context_line":"            os.path.join(base_dir, \u0027swap_49152_65536\u0027)))"},{"line_number":64,"context_line":"        self.assertEqual(49152 * units.Mi, libvirt_utils.get_disk_size("},{"line_number":65,"context_line":"            os.path.join(base_dir, \u0027swap_49152\u0027)))"},{"line_number":66,"context_line":"        self.assertEqual(\u0027swap_65536\u0027,"},{"line_number":67,"context_line":"                         libvirt_utils.get_disk_backing_file(swap_path))"}],"source_content_type":"text/x-python","patch_set":2,"id":"2b2f83b7_1593b533","line":67,"range":{"start_line":61,"start_character":5,"end_line":67,"end_character":72},"updated":"2026-11-26 17:22:26.000000000","message":"this is far to large to actully use in a functional test\n\nin thoery the files shoudl be smaller becaue we are not preallocating the qcow so this shoudl only be the qcow header + virutal size of 48GIB but\n\nlets use 64MB and 48MB instead\n\n\nthe temp dir fixture allocate form tempfs and if we ever started fully allocating the disk i dont want this to acidently write lage files to ram backed storage.","commit_id":"cfb139f12c8a680037f10afd0581e47a05faf51a"}],"nova/virt/libvirt/imagebackend.py":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"0f856515c5f86c9b3ad66136d4beeca12410252d","unresolved":true,"context_lines":[{"line_number":717,"context_line":"                backing_name, sep, suffix \u003d backing_file.rpartition(\u0027_\u0027)"},{"line_number":718,"context_line":"                # A swap_\u003csize\u003e backing file is a regular swap template"},{"line_number":719,"context_line":"                # whose size is in MiB."},{"line_number":720,"context_line":"                if sep and backing_name !\u003d \u0027swap\u0027 and suffix.isdigit():"},{"line_number":721,"context_line":"                    legacy_backing_size \u003d int(suffix)"},{"line_number":722,"context_line":"                    legacy_base +\u003d \u0027_%d\u0027 % legacy_backing_size"},{"line_number":723,"context_line":"                    legacy_backing_size *\u003d units.Gi"}],"source_content_type":"text/x-python","patch_set":2,"id":"d85505ee_8aa67479","line":720,"range":{"start_line":720,"start_character":15,"end_line":720,"end_character":71},"updated":"2026-11-26 17:22:26.000000000","message":"so your assumign we have not swap disk that wer created with the legacy flow.\n\nshoudl we be doing this insead\n\n```suggestion\n                if sep and suffix.isdigit():\n```","commit_id":"cfb139f12c8a680037f10afd0581e47a05faf51a"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"0f856515c5f86c9b3ad66136d4beeca12410252d","unresolved":true,"context_lines":[{"line_number":720,"context_line":"                if sep and backing_name !\u003d \u0027swap\u0027 and suffix.isdigit():"},{"line_number":721,"context_line":"                    legacy_backing_size \u003d int(suffix)"},{"line_number":722,"context_line":"                    legacy_base +\u003d \u0027_%d\u0027 % legacy_backing_size"},{"line_number":723,"context_line":"                    legacy_backing_size *\u003d units.Gi"},{"line_number":724,"context_line":""},{"line_number":725,"context_line":"        # Create the legacy backing file if necessary."},{"line_number":726,"context_line":"        if legacy_backing_size:"}],"source_content_type":"text/x-python","patch_set":2,"id":"f4826d34_b62033d6","line":723,"range":{"start_line":723,"start_character":18,"end_line":723,"end_character":51},"updated":"2026-11-26 17:22:26.000000000","message":"and then adustign this based on backing_name?\n\nephmeral and root disks are in GB and swap disks in Mb\n\nbut what is more impoant is we need to determin waht the unit of the sufix is in and then convert approtiatly.\n\nmultipleying by  units.Gi is only correct if the sufix is in GiB which it is for \nroot and ephemeral disk.\n\nlegacy_backing_size itslef is in bytes\n\nin the swap path we wroth the sufix in MiB on \n\nhttps://github.com/openstack/nova/blob/d471daf86930a5d9f046e7d128a7ac3f745d8407/nova/virt/libvirt/driver.py#L5390-L5408\n\nso to convert back to bytes we shoudl be multiplying by units.Mi\n\n\n\n\n```suggestion\n                    legacy_backing_size *\u003d (\n                        units.Mi if \u0027swap\u0027 in backing_name\n                        else units.Gi)\n```","commit_id":"cfb139f12c8a680037f10afd0581e47a05faf51a"}]}
