Migration staging reuses unrelated Script Projects for uploaded modules

オープン
#274 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

Read the migration inventory, staging, and cutover entry points and their tests; the issue does not name specific files. Trace how uploaded modules are matched to Script Projects, then check the Manual activation and failed validation cases described here. Done when inventory reports a blocking conflict for an unrelated Project with the proposed key and staging and cutover refuse to use it.

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

説明

app: scripts Bucket: KTLO severity: low status: backlog type: bug
Plugin Version

v0.2.0

NetBox Version

v4.7.6

Python Version

3.12

Steps to Reproduce
  1. Upload a built-in Custom Script module, such as provision.py.
  2. Navigate to Scripts > Migration, run Run inventory, and note the proposed Project key for the uploaded module.
  3. Create an unrelated Script Project using the same key and the Manual activation policy. Upload different source to the Project without activating it and wait for validation to complete.
  4. Run Run inventory again, followed by Stage Projects.
  5. Inspect the existing Project and the staging Job's results.
Expected Behavior

For uploaded modules, migration staging should only reuse Script Projects created for the corresponding module by the current migration.

If an unrelated Project already uses the proposed key, inventory should report a blocking finding, and staging and cutover should refuse to use that Project.

Observed Behavior

Inventory does not report a conflict, and staging reuses the unrelated Project, adding the built-in module to its source.

If the staged revision fails validation, cutover can still proceed using an existing valid revision of that Project. Activation and reference repointing can consequently select a different Script implementation than the one being migrated.

主要言語
Python
スター
9
フォーク
0
平均マージ
18時間 59分
マージ済み PR(30日)
93

環境構築

はじめの一歩

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

netbox-community/netbox-scripts のほかの issue

netbox-community/netbox-scripts の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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