You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
causes issues even when devices are not in the GC scope.
Expected Behavior
Any device platform checks should only occur against devices in scope for the setting.
Observed Behavior
A out of scope device not in the GC scope not having a platform set fails a GC job.
The get_job_filter helper function doesn't have a starting point of the dynamic group
Steps to Reproduce
Follow standard GC prereqs.
Create a GC scoped Dynamic Group that is a group of groups, and the child groups are filter-defined groups.
For example this DG selected "all" sites, and then added a advanced filter that removed 1 of the sites. The dynamic group membership itself is correct! so its not an issue with the DG calculation.
On one of the out of scope devices unset the platform.
Run one of the GC jobs.
Traceback
worker-1 | [2024-12-05 21:40:42,996: ERROR/ForkPoolWorker-6] Task nautobot.extras.jobs.run_job[053255ed-6510-41db-9006-d45b74774e04] raised unexpected: NornirNautobotException('`E3017:` The following device(s) veos have no platform defined. Platform is required.')
worker-1 | Traceback (most recent call last):
worker-1 | File "/usr/local/lib/python3.11/site-packages/celery/app/trace.py", line 477, in trace_task
worker-1 | R = retval = fun(*args, **kwargs)
worker-1 | ^^^^^^^^^^^^^^^^^^^^
worker-1 | File "/usr/local/lib/python3.11/site-packages/celery/app/trace.py", line 760, in __protected_call__
worker-1 | return self.run(*args, **kwargs)
worker-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
worker-1 | File "/usr/local/lib/python3.11/site-packages/nautobot/extras/jobs.py", line 1136, in run_job
worker-1 | result = job(*args, **kwargs)
worker-1 | ^^^^^^^^^^^^^^^^^^^^
worker-1 | File "/usr/local/lib/python3.11/site-packages/nautobot/extras/jobs.py", line 149, in __call__
worker-1 | return self.run(*args, **deserialized_kwargs)
worker-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker-1 | File "/source/nautobot_golden_config/jobs.py", line 170, in gc_repo_wrapper
worker-1 | current_repos = gc_repo_prep(job=self, data=kwargs)
worker-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker-1 | File "/source/nautobot_golden_config/jobs.py", line 120, in gc_repo_prep
worker-1 | job.qs = get_job_filter(data)
worker-1 | ^^^^^^^^^^^^^^^^^^^^
worker-1 | File "/source/nautobot_golden_config/utilities/helper.py", line 92, in get_job_filter
worker-1 | raise NornirNautobotException(
worker-1 | nornir_nautobot.exceptions.NornirNautobotException: `E3017:` The following device(s) veos have no platform defined. Platform is required.
The text was updated successfully, but these errors were encountered:
Environment
nautobot-app-golden-config/nautobot_golden_config/utilities/helper.py
Line 90 in 7452e56
causes issues even when devices are not in the GC scope.
Expected Behavior
Any device platform checks should only occur against devices in scope for the setting.
Observed Behavior
A out of scope device not in the GC scope not having a platform set fails a GC job.
The
get_job_filter
helper function doesn't have a starting point of the dynamic groupSteps to Reproduce
For example this DG selected "all" sites, and then added a advanced filter that removed 1 of the sites. The dynamic group membership itself is correct! so its not an issue with the DG calculation.
Traceback
The text was updated successfully, but these errors were encountered: