Migration staging reuses unrelated Script Projects for uploaded modules

Aperta
#274 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
9
Fork
0
Merge medio
18h 59m
PR unite (30g)
93

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di netbox-community/netbox-scripts

Tutte le issue di netbox-community/netbox-scripts

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.