Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

e2e: cozyreport lists a shared zpool twice and ships an empty zfs-pools.txt that does not say why

オープン 初心者向け
#4,809 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
shell
領域
tooling

調査の方向性

まず hack/cozyreport.sh の LINSTOR ZFS コレクションを読み、zpool get の呼び出し前にデータセット名がどのようにプール名になるかを追ってください。次に、空の linstor/zfs-pools.txt がどのように生成されるか、またノードごとの awk 検索がそれをどのように読み取るかを確認してください。共有プールが一度だけ表示され、空の結果には説明コメントが含まれ、プールとして扱われなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

triage/needs-triage

The LINSTOR ZFS collection that #4657 adds to hack/cozyreport.sh has two small legibility problems. Neither loses data, both make the report harder to read.

A zpool behind two LINSTOR storage pools is reported twice in the per-node listing. The satellite script cuts each dataset name down to its pool with ${d%%/*}, so pools on tank/a and tank/b pass tank tank to zpool get. zfs list drops duplicate arguments, zpool get does not. Deduplicating the pool names before the call fixes it, either with sort -u or by skipping a name already seen in the loop.

linstor/zfs-pools.txt can ship empty. When LINSTOR has no ZFS storage pool, the jq filter prints nothing and the read exits 0. Each node's note then says "that file says whether LINSTOR answered", and a 0-byte file says nothing by itself. The rule exists (0 bytes and no COLLECTION-FAILED.txt entry means LINSTOR answered with no ZFS pool), it just isn't written where the reader looks. A # [cozyreport] comment line written into the file when no pool matched would fix it. The per-node awk lookup needs a tab-separated node name in the first field, so a comment line is never taken for a pool.

主要言語
Go
スター
2.2k
フォーク
209
平均マージ
3日 17時間
マージ済み PR(30日)
279

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cozystack/cozystack のほかの issue

cozystack/cozystack の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。