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
Add devices to virtual chassis error -> "More than one result returned for virtual_chassis" #402
Comments
Thanks for the report! Could you please test the PR and let me know if that resolved your issue? |
No, now all requests for adding devices to the virtual chassis fail. |
What's the failure message? |
This is the -vvv output for trying to add unit 2 to the VC:
|
I'm not really able to replicate this exactly as you say. I get the same results whether on 2.9 or 2.10 and the latest collection, which is partly what you're seeing with it not being able to resolve it since there isn't a unique search option for it.. Do you have more definitive example that I can use to test? I do see the issue with it returning more than result and I've opened an issue with NetBoxhttps://github.com/netbox-community/netbox/issues/5586 to resolve part of the source of this issue. Once it's accepted, I can work on the code and get it submitted and then a release would be made at some point. |
The PR has been submitted. If you use the PR above and change your definition to:
Does that resolve your issue? |
It does not resolve the issue, still the same error:
Installed Netbox.netbox collection 1.2.1:
Changed playbook to vc with name and master parameters:
|
PR has been added into the Netbox release v2.10.4, but still the same issue. Tested with:
Example task for adding chassis to VC with:
|
I haven't merged in the code yet. Sorry life has been really busy, but I do need to get this resolved for you. |
No problem, just keeping track of changes :) |
I tested in my environment, and it works for me. |
Have you tested the issue #465 or also adding devices to VC's? |
Hi, I'm facing this issue when I try to create a virtual chassis from ansible. It is a simple ansible task with just the name of the virtual chassis. I get the following: fatal: [SW-1]: FAILED! => {"changed": false, "msg": "More than one result returned for SW-1"} My environment is: Anyone else facing this? Thanks !! |
Environment
Adding devices to a virtual chassis through the Ansible netbox.netbox collection gives an error on the second device/chassis added to the same virtual chassis: "More than one result returned for virtual_chassis". Error first seen in version 2.10.2, Downgraded to version 2.9.9 and confirmed to be working.
Sample inventory:
Playbook:
Steps to Reproduce
What did you expect to happen?
One virtual chassis with three added chassis/devices linked
What happened instead?
Netbox version 2.9.9: worked fine
Netbox version 2.10.2: Ansible error and only two chassis/devices added to virtual chassis.
The text was updated successfully, but these errors were encountered: