garage block info can't be used with short block has from logs #682

Closed
opened 2024-01-05 12:49:48 +00:00 by zdenek.crha · 0 comments
Contributor

Description

The garage logs contains many messages related to block hashes, but seems to use a prefix of hash instead of full one. Trying to use this shortened hash in other garage commands like block info ends

Actual Outcome

# garage block info 305732a06f543471
Error: invalid hash

Expected Outcome

The command should be able to find block hash with given short prefix and either:

  • show block info
  • show list of block hashes sharing prefix and let user decide which to use

Motivation

First, I have been investigating resync errors and I could not use the block hash from logs for garage block info command. I had to use block list-errors, grep it for prefix from logs and use that which is not very user-friendly.

Second, in case the block hash is logged and it is not related to an error, it is impossible to get full hash and use garage block info to see where is it used.

## Description The garage logs contains many messages related to block hashes, but seems to use a prefix of hash instead of full one. Trying to use this shortened hash in other garage commands like `block info` ends ## Actual Outcome ``` # garage block info 305732a06f543471 Error: invalid hash ``` ## Expected Outcome The command should be able to find block hash with given short prefix and either: - show block info - show list of block hashes sharing prefix and let user decide which to use ## Motivation First, I have been investigating resync errors and I could not use the block hash from logs for `garage block info` command. I had to use `block list-errors`, grep it for prefix from logs and use that which is not very user-friendly. Second, in case the block hash is logged and it is not related to an error, it is impossible to get full hash and use `garage block info` to see where is it used.
lx added the
kind
improvement
label 2024-01-15 10:03:33 +00:00
lx added this to the v1.0 milestone 2024-01-15 10:03:39 +00:00
lx closed this issue 2024-02-09 14:07:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Deuxfleurs/garage#682
No description provided.