Migration staging reuses unrelated Script Projects for uploaded modules

Đang mở
#274 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
9
Fork
0
Merge trung bình
18 giờ 59 phút
Pull request đã merge (30 ngày)
93

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của netbox-community/netbox-scripts

Tất cả issue của netbox-community/netbox-scripts

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.