Migration staging reuses unrelated Script Projects for uploaded modules

Abierto
#274 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
9
Forks
0
Merge medio
18 h 59 min
PR fusionados (30 d)
93

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de netbox-community/netbox-scripts

Todos los issues de netbox-community/netbox-scripts

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.