Skip to content

Unexpected and divergent behavior about secrets when using Sync Device or Sync Network data (from network) jobs that come with Device Onboarding #551

@itheodoridis

Description

@itheodoridis

Environment

  • Nautobot version (Docker tag too if applicable): 3.0.3 (ghcr.io/nautobot/nautobot:$3.0.3-py3.12)
  • Python version:3.12
  • Database platform, version: Postres, 14.5 (docker)
  • Middleware(s): (Not sure what this is).

When running the Sync Device from Network job (part of Device Onboarding) the job expects that the secrets group used is of Generic Access Type or the job will fail.
At the same time when running the Sync Network data from Network job (again part of Device Onboarding) against the same device, unless the secrets group defines that the secrets are of SSH Access Type, the job fails. Even the secrets themselves are the same, just different secret groups so we can define the Access Type separately per use case.
The target devices are cisco access switches and routers (like Catalyst 2960 series and ISR 4k series).

Steps to Reproduce

  1. Create the secrets groups (by any means necessary - for me secrets come from environment variables defined for the docker containers and imported in nautobot via config - assign access type as generic for one group and ssh for the other.
  2. Run the two sync jobs with both kinds of secrets groups (Sync Devices allows for choosing the secrets group before running, so defining the other as default to use with Sync Network Data somehow can do the trick, or just change between them and define what you want for each run). Use debug option for running the jobs.
  3. Observe results and failure logs.

Expected Behavior

Both jobs should have the same behavior with the same secrets group (access type) with logging and accessing devices successfully instead of failing.

Observed Behavior

They don't have the same behavior as observed by the logs and debug output, plus obviously the jobs fail as they don't succeed in accessing the devices so no onboarding/updating occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageThis issue is new and has not been reviewed.type: bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions