Script result page omits Job-level failure reasons
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
job.data['log']を読み取るScript結果ページのコードから始め、Job runnerでのjob.log_entriesの使用方法とJob Logタブを比較してください。結果ページを更新して、ScriptのログとともにJobレベルのメッセージを表示し、Scriptが無効な場合の失敗理由やその他のJobメッセージが結果ページに表示されることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Plugin Version
v0.0.1
NetBox Version
v4.7.1
Python Version
3.12
Steps to Reproduce
- Upload and activate a Project with a Script File, for example
deploy.py:from netbox_scripts import Script class Hello(Script): def run(self, data, commit): self.log_success('Hello.') - From the Script's Run tab, schedule a run a few minutes in the future.
- Disable the Script before the scheduled run starts.
- After the Job has run, refresh its result page.
Expected Behavior
The result page explains why the Job failed, even if the Script never started:
"Hello" was disabled after this run was requested, so it was not run.
Observed Behavior
The result page shows Failed, but the log is empty and no failure reason is displayed.
The reason is recorded in the Job's own log, accessible through the Script's Jobs tab and the Job's Log tab.
The result page currently reads only job.data['log'], while the Job runner records its messages in job.log_entries. This also hides other Job-level messages, including revision information, execution refusals, Script loading failures, and final failure summaries.
Reproduced on main (4a65dfe) and the #122 development tree with NetBox v4.7.1.
Related to #41 and #122, but separate from both.
- 主要言語
- Python
- スター
- 8
- フォーク
- 0
- 平均マージ
- 12時間 34分
- マージ済み PR(30日)
- 57
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
netbox-community/netbox-scripts のほかの issue
-
app: scripts severity: low status: backlog type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
netbox-community/netbox-scripts#164 ·
メンテナーはふだん 1 日以内に返信
-
Committed `runcustomscript` runs do not deliver Event Rule actions対応中かも @pheus が 1 日前に担当しました。 オープンapp: scripts Bucket: KTLO severity: medium status: accepted type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
netbox-community/netbox-scripts#152 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts severity: low status: backlog type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
netbox-community/netbox-scripts#146 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts status: backlog type: documentation
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
netbox-community/netbox-scripts#137 ·
メンテナーはふだん 1 日以内に返信
-
app: scripts severity: low status: backlog type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
netbox-community/netbox-scripts#134 ·
メンテナーはふだん 1 日以内に返信
netbox-community/netbox-scripts の issue をすべて見る
似ている issue
-
namespace
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
EclipseFdn/open-vsx.org#15604 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 5 日以内に返信
-
Public function to read participants.tsv対応中かも @bruAristimunha が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
huggingface/tau#799 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
allenai/open-instruct#2245 ·
メンテナーはふだん 1 日以内に返信