forked from TrueCloudLab/frostfs-testcases
Added extra error handling for ticking epoch with neofs.
This commit is contained in:
parent
aef764b427
commit
5d1e4efdc8
1 changed files with 7 additions and 2 deletions
|
@ -28,8 +28,13 @@ def tick_epoch():
|
|||
# If neofs-adm is available, then we tick epoch with it (to be consistent with UAT tests)
|
||||
cmd = f"{NEOFS_ADM_EXEC} morph force-new-epoch -c {NEOFS_ADM_CONFIG_PATH}"
|
||||
logger.info(f"Executing shell command: {cmd}")
|
||||
out = wrappers.run_sh(cmd)
|
||||
logger.info(f"Command completed with output: {out}")
|
||||
try:
|
||||
out = wrappers.run_sh(cmd)
|
||||
logger.info(f"Command completed with output: {out}")
|
||||
except Exception as exc:
|
||||
logger.error(exc)
|
||||
raise RuntimeError("Failed to tick epoch") from exc
|
||||
|
||||
return
|
||||
|
||||
# Otherwise we tick epoch using transaction
|
||||
|
|
Loading…
Reference in a new issue