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

Error AVD - ERROR! [swleaf]: 'validation Error:servers[23].name': the value 'free', is not unique between all list items as required. #4873

Open
1 task done
malikavd opened this issue Jan 13, 2025 · 2 comments
Labels
type: enhancement New feature or request

Comments

@malikavd
Copy link

Issue Summary

we have error messages after the migration of AVD from version 4.10.2 to 5.1 when we launch the playbook build.yml in a Dual DC L3LS architecture

ERROR! [swleaf]: 'validation Error:servers[23].name': the value 'free', is not unique between all list items as required.

Before, in version 4.10.2, we had warnings and now Errors

these are duplicates of server name are voluntary in the connected_endpoint.YML file and we wish to maintain them,

could you please help us to correct the problem ?

We tried to change the variable below from to without success

jinja2_extensions=jinja2.ext.loopcontrols,jinja2.ext.do
duplicate_dict_key=error

Regards.
Malik

Which component(s) of AVD impacted

eos_designs, eos_cli_config_gen

How do you run AVD ?

None

Steps to reproduce

No response

Relevant log output

No response

Contributing Guide

  • I agree to follow this project's Code of Conduct
@malikavd malikavd added the type: bug Something isn't working label Jan 13, 2025
@ClausHolbechArista
Copy link
Contributor

This is not a bug. We document that the name keys must be unique. I will change this to an enhancement request. There is no workaround for this. My suggestion would be to use name: free<some_number> as name.
Also take a look at the network_ports data model. If you define all your server ports under that as description: free but then have some of them overlapping with servers, the servers will take precendence.

@ClausHolbechArista ClausHolbechArista added type: enhancement New feature or request and removed type: bug Something isn't working labels Jan 13, 2025
@malikavd
Copy link
Author

Thanks @ClausHolbechArista for your answer,

I used this structure to remove duplicate free interfaces

interface_defaults:
ethernet:
shutdown:

Now, the palybook build.ym l work perfectly, but i have error with "cv_deploy.yml" with the 5.1 version,
when i downgrade to 4.10.2 the error disappears. Do you have an idea of the problem ?

bellow error :

TASK [arista.avd.cv_deploy : Verify Requirements] ******************************
ok: [sw-leaf-01 -> localhost]
TASK [arista.avd.cv_deploy : Deploy device configurations and tags to CloudVision] ***
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: requests.exceptions.ProxyError: HTTPSConnectionPool(host='@IP-CVP', port=443): Max retries exceeded with url: /cvpservice/cvpInfo/getCvpInfo.do (Caused by ProxyError('Unable to connect to proxy', OSError('Tunnel connection failed: 503 Service Unavailable')))
fatal: [sw-leaf-01 -> localhost]: FAILED! => {"changed": false, "msg": "Error during plugin execution: HTTPSConnectionPool(host='@IP-CVP', port=443): Max retries exceeded with url: /cvpservice/cvpInfo/getCvpInfo.do (Caused by ProxyError('Unable to connect to proxy', OSError('Tunnel connection failed: 503 Service Unavailable')))"}
NO MORE HOSTS LEFT *************************************************************
PLAY RECAP *********************************************************************
sw-leaf-01 : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

NB: i hid @ip of CVP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants