Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync golden config setting from Git and having two platforms with same network driver fails #794

Open
jeffkala opened this issue Aug 15, 2024 · 3 comments

Comments

@jeffkala
Copy link
Contributor

Environment

  • Python version: 3.11
  • Nautobot version: 2.2.9
  • nautobot-golden-config version: current

Expected Behavior

syncs in properly and doesn't result in traceback

Observed Behavior

Generic failure.

Steps to Reproduce

  1. Create two platforms both mapped to the same network_driver
  2. Try to sync in GC settings from repo
  3. Repo sync fails with
{
    "exc_message": [
        "get() returned more than one Platform -- it returned 2!"
    ],
    "exc_module": "nautobot.dcim.models.devices",
    "exc_type": "Platform.MultipleObjectsReturned"
}
  1. compliance job fails with
RENDER COMPLIANCE TASK GROUP failed: list index out of range
--



@bryanculver
Copy link
Member

@jeffkala could you provide an example Git repo and data?

@jeffkala
Copy link
Contributor Author

Yes, will provide shortly.

@jeffkala
Copy link
Contributor Author

@bryanculver
repo https://github.com/jeffkala/home-gc-templates
branch: broken-properties

repo is public so no token should be needed.

  1. create platform called "Cisco IOS" and in the platform set the network driver to "cisco_ios".
  2. create platform called "Cisco IOS-XE" and in the platform set the network driver to "cisco_ios".
  3. Create/sync the repo with definition above and the failure should be visible.

let me know if anything else is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants