Metric of frostfs_node_blobstore_mode is always CLOSED #1055

Closed
opened 2024-03-26 06:18:52 +00:00 by anikeev-yadro · 0 comments
Member

Expected Behavior

Metric should contains actual mode.

Current Behavior

Metric of frostfs_node_blobstore_mode is always CLOSED

Steps to Reproduce (for bugs)

1.Move shard to read-only

root@aanikeev-node1[alone_datacenter]:~# frostfs-cli --id V6uMDX8pJ5WYQEtVrYhA2E  --endpoint 127.0.0.1:8091 -w /etc/frostfs/storage/wallet.json --config /tmp/storage.yaml control shards set-mode --mode='read-only'
Shard mode update request successfully sent.
root@aanikeev-node1[alone_datacenter]:~# frostfs-cli  --endpoint 127.0.0.1:8091 -w /etc/frostfs/storage/wallet.json --config /tmp/storage.yaml control shards list|grep -i mode
Mode: read-write
Mode: read-write
Mode: read-write
Mode: read-write
Mode: read-write
Mode: read-only

2.See that metric frostfs_node_blobstore_mode="CLOSED"

root@aanikeev-node1[alone_datacenter]:~# curl -s localhost:6672 | grep blob|grep mode
# HELP frostfs_node_blobovnicza_tree_mode Blobovnicza tree mode
# TYPE frostfs_node_blobovnicza_tree_mode gauge
frostfs_node_blobovnicza_tree_mode{mode="READ_ONLY",path="/srv/frostfs/data/493d7d49/data/blobovnicza",shard_id="V6uMDX8pJ5WYQEtVrYhA2E"} 1
frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/1a4724e1/data/blobovnicza",shard_id="7JPTtEcnAVgRVEe1GyQvcH"} 1
frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/5d3b73b3/data/blobovnicza",shard_id="KYxBAHsVg4Sr9WTD8D8x7h"} 1
frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/9d362559/data/blobovnicza",shard_id="AAJ6uz1nq8GhTB4dNoajfM"} 1
frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/f4ddd21e/data/blobovnicza",shard_id="Fx6nAsonXKjXq4dtb2JFik"} 1
frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/f54b4cc0/data/blobovnicza",shard_id="9rCZunixYKndMqnep1xNfm"} 1
# HELP frostfs_node_blobstore_mode Blobstore mode value
# TYPE frostfs_node_blobstore_mode gauge
frostfs_node_blobstore_mode{mode="CLOSED",shard_id="V6uMDX8pJ5WYQEtVrYhA2E"} 1
frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="7JPTtEcnAVgRVEe1GyQvcH"} 1
frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="9rCZunixYKndMqnep1xNfm"} 1
frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="AAJ6uz1nq8GhTB4dNoajfM"} 1
frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="Fx6nAsonXKjXq4dtb2JFik"} 1
frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="KYxBAHsVg4Sr9WTD8D8x7h"} 1

3.Move shard to RW mode and see that metric was not changed

root@aanikeev-node1[alone_datacenter]:~# curl -s localhost:6672 | grep blob|grep mode
# HELP frostfs_node_blobovnicza_tree_mode Blobovnicza tree mode
# TYPE frostfs_node_blobovnicza_tree_mode gauge
frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/1a4724e1/data/blobovnicza",shard_id="7JPTtEcnAVgRVEe1GyQvcH"} 1
frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/493d7d49/data/blobovnicza",shard_id="V6uMDX8pJ5WYQEtVrYhA2E"} 1
frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/5d3b73b3/data/blobovnicza",shard_id="KYxBAHsVg4Sr9WTD8D8x7h"} 1
frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/9d362559/data/blobovnicza",shard_id="AAJ6uz1nq8GhTB4dNoajfM"} 1
frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/f4ddd21e/data/blobovnicza",shard_id="Fx6nAsonXKjXq4dtb2JFik"} 1
frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/f54b4cc0/data/blobovnicza",shard_id="9rCZunixYKndMqnep1xNfm"} 1
frostfs_node_blobovnicza_tree_rebuild_status{mode="completed",path="/srv/frostfs/data/1a4724e1/data/blobovnicza",shard_id="7JPTtEcnAVgRVEe1GyQvcH"} 1
frostfs_node_blobovnicza_tree_rebuild_status{mode="completed",path="/srv/frostfs/data/5d3b73b3/data/blobovnicza",shard_id="KYxBAHsVg4Sr9WTD8D8x7h"} 1
frostfs_node_blobovnicza_tree_rebuild_status{mode="completed",path="/srv/frostfs/data/9d362559/data/blobovnicza",shard_id="AAJ6uz1nq8GhTB4dNoajfM"} 1
frostfs_node_blobovnicza_tree_rebuild_status{mode="completed",path="/srv/frostfs/data/f4ddd21e/data/blobovnicza",shard_id="Fx6nAsonXKjXq4dtb2JFik"} 1
frostfs_node_blobovnicza_tree_rebuild_status{mode="completed",path="/srv/frostfs/data/f54b4cc0/data/blobovnicza",shard_id="9rCZunixYKndMqnep1xNfm"} 1
frostfs_node_blobovnicza_tree_rebuild_status{mode="not_started",path="/srv/frostfs/data/493d7d49/data/blobovnicza",shard_id="V6uMDX8pJ5WYQEtVrYhA2E"} 1
# HELP frostfs_node_blobstore_mode Blobstore mode value
# TYPE frostfs_node_blobstore_mode gauge
frostfs_node_blobstore_mode{mode="CLOSED",shard_id="V6uMDX8pJ5WYQEtVrYhA2E"} 1
frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="7JPTtEcnAVgRVEe1GyQvcH"} 1
frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="9rCZunixYKndMqnep1xNfm"} 1
frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="AAJ6uz1nq8GhTB4dNoajfM"} 1
frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="Fx6nAsonXKjXq4dtb2JFik"} 1
frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="KYxBAHsVg4Sr9WTD8D8x7h"} 1

Regression

No

Version

FrostFS Storage node
Version: v0.38.1
GoVersion: go1.22.0

Your Environment

Vitrual

<!-- Provide a general summary of the issue in the Title above --> ## Expected Behavior Metric should contains actual mode. ## Current Behavior Metric of `frostfs_node_blobstore_mode` is always CLOSED ## Steps to Reproduce (for bugs) 1.Move shard to `read-only` ``` root@aanikeev-node1[alone_datacenter]:~# frostfs-cli --id V6uMDX8pJ5WYQEtVrYhA2E --endpoint 127.0.0.1:8091 -w /etc/frostfs/storage/wallet.json --config /tmp/storage.yaml control shards set-mode --mode='read-only' Shard mode update request successfully sent. root@aanikeev-node1[alone_datacenter]:~# frostfs-cli --endpoint 127.0.0.1:8091 -w /etc/frostfs/storage/wallet.json --config /tmp/storage.yaml control shards list|grep -i mode Mode: read-write Mode: read-write Mode: read-write Mode: read-write Mode: read-write Mode: read-only ``` 2.See that metric `frostfs_node_blobstore_mode="CLOSED"` ``` root@aanikeev-node1[alone_datacenter]:~# curl -s localhost:6672 | grep blob|grep mode # HELP frostfs_node_blobovnicza_tree_mode Blobovnicza tree mode # TYPE frostfs_node_blobovnicza_tree_mode gauge frostfs_node_blobovnicza_tree_mode{mode="READ_ONLY",path="/srv/frostfs/data/493d7d49/data/blobovnicza",shard_id="V6uMDX8pJ5WYQEtVrYhA2E"} 1 frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/1a4724e1/data/blobovnicza",shard_id="7JPTtEcnAVgRVEe1GyQvcH"} 1 frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/5d3b73b3/data/blobovnicza",shard_id="KYxBAHsVg4Sr9WTD8D8x7h"} 1 frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/9d362559/data/blobovnicza",shard_id="AAJ6uz1nq8GhTB4dNoajfM"} 1 frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/f4ddd21e/data/blobovnicza",shard_id="Fx6nAsonXKjXq4dtb2JFik"} 1 frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/f54b4cc0/data/blobovnicza",shard_id="9rCZunixYKndMqnep1xNfm"} 1 # HELP frostfs_node_blobstore_mode Blobstore mode value # TYPE frostfs_node_blobstore_mode gauge frostfs_node_blobstore_mode{mode="CLOSED",shard_id="V6uMDX8pJ5WYQEtVrYhA2E"} 1 frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="7JPTtEcnAVgRVEe1GyQvcH"} 1 frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="9rCZunixYKndMqnep1xNfm"} 1 frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="AAJ6uz1nq8GhTB4dNoajfM"} 1 frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="Fx6nAsonXKjXq4dtb2JFik"} 1 frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="KYxBAHsVg4Sr9WTD8D8x7h"} 1 ``` 3.Move shard to RW mode and see that metric was not changed ``` root@aanikeev-node1[alone_datacenter]:~# curl -s localhost:6672 | grep blob|grep mode # HELP frostfs_node_blobovnicza_tree_mode Blobovnicza tree mode # TYPE frostfs_node_blobovnicza_tree_mode gauge frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/1a4724e1/data/blobovnicza",shard_id="7JPTtEcnAVgRVEe1GyQvcH"} 1 frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/493d7d49/data/blobovnicza",shard_id="V6uMDX8pJ5WYQEtVrYhA2E"} 1 frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/5d3b73b3/data/blobovnicza",shard_id="KYxBAHsVg4Sr9WTD8D8x7h"} 1 frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/9d362559/data/blobovnicza",shard_id="AAJ6uz1nq8GhTB4dNoajfM"} 1 frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/f4ddd21e/data/blobovnicza",shard_id="Fx6nAsonXKjXq4dtb2JFik"} 1 frostfs_node_blobovnicza_tree_mode{mode="READ_WRITE",path="/srv/frostfs/data/f54b4cc0/data/blobovnicza",shard_id="9rCZunixYKndMqnep1xNfm"} 1 frostfs_node_blobovnicza_tree_rebuild_status{mode="completed",path="/srv/frostfs/data/1a4724e1/data/blobovnicza",shard_id="7JPTtEcnAVgRVEe1GyQvcH"} 1 frostfs_node_blobovnicza_tree_rebuild_status{mode="completed",path="/srv/frostfs/data/5d3b73b3/data/blobovnicza",shard_id="KYxBAHsVg4Sr9WTD8D8x7h"} 1 frostfs_node_blobovnicza_tree_rebuild_status{mode="completed",path="/srv/frostfs/data/9d362559/data/blobovnicza",shard_id="AAJ6uz1nq8GhTB4dNoajfM"} 1 frostfs_node_blobovnicza_tree_rebuild_status{mode="completed",path="/srv/frostfs/data/f4ddd21e/data/blobovnicza",shard_id="Fx6nAsonXKjXq4dtb2JFik"} 1 frostfs_node_blobovnicza_tree_rebuild_status{mode="completed",path="/srv/frostfs/data/f54b4cc0/data/blobovnicza",shard_id="9rCZunixYKndMqnep1xNfm"} 1 frostfs_node_blobovnicza_tree_rebuild_status{mode="not_started",path="/srv/frostfs/data/493d7d49/data/blobovnicza",shard_id="V6uMDX8pJ5WYQEtVrYhA2E"} 1 # HELP frostfs_node_blobstore_mode Blobstore mode value # TYPE frostfs_node_blobstore_mode gauge frostfs_node_blobstore_mode{mode="CLOSED",shard_id="V6uMDX8pJ5WYQEtVrYhA2E"} 1 frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="7JPTtEcnAVgRVEe1GyQvcH"} 1 frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="9rCZunixYKndMqnep1xNfm"} 1 frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="AAJ6uz1nq8GhTB4dNoajfM"} 1 frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="Fx6nAsonXKjXq4dtb2JFik"} 1 frostfs_node_blobstore_mode{mode="READ_WRITE",shard_id="KYxBAHsVg4Sr9WTD8D8x7h"} 1 ``` ## Regression No ## Version ``` FrostFS Storage node Version: v0.38.1 GoVersion: go1.22.0 ``` ## Your Environment Vitrual
anikeev-yadro added the
bug
triage
labels 2024-03-26 06:18:52 +00:00
elebedeva was assigned by acid-ant 2024-03-26 06:19:25 +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: TrueCloudLab/frostfs-node#1055
No description provided.