Skip to content

Commit

Permalink
Remove blockfs support
Browse files Browse the repository at this point in the history
  • Loading branch information
Yngve S. Kristiansen authored and yngve-sk committed Sep 24, 2024
1 parent ba1ef08 commit a36efc5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1,073 deletions.
15 changes: 10 additions & 5 deletions src/ert/storage/local_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,6 @@ def _save_index(self) -> None:
@require_write
def _migrate(self, version: int) -> None:
from ert.storage.migration import ( # noqa: PLC0415
block_fs,
to2,
to3,
to4,
Expand All @@ -462,10 +461,16 @@ def _migrate(self, version: int) -> None:
try:
self._index = self._load_index()
if version == 0:
self._release_lock()
block_fs.migrate(self.path)
self._acquire_lock()
self._add_migration_information(0, _LOCAL_STORAGE_VERSION, "block_fs")
logger.error(
"Attempted BlockFS migration",
)
raise NotImplementedError(
"Outdated storage (blockfs) is no longer supported by ERT. In "
"order to use this storage, try to first open it with an older "
"version of ert <= 10.3.* before re-opening it with this version. "
"This is not guaranteed to work, ideally the ERT config should be "
"the same as it was at the time of creation of the storage."
)
elif version < _LOCAL_STORAGE_VERSION:
migrations = list(enumerate([to2, to3, to4, to5, to6, to7], start=1))
for from_version, migration in migrations[version - 1 :]:
Expand Down
Loading

0 comments on commit a36efc5

Please sign in to comment.