Issue Summary
In ansible-cvp 3.4.0 we've added some additional features around imageBundles and also started outputting if containers have image bundles assigned to them, e.g. when running cv_facts_3 the output will be like this:
---
Undefined:
configlets: []
image_bundle: EOS-4.25.4M
parentContainerName: Tenant
containerA:
configlets:
- configletA1
- configletA2
image_bundle: ''
parentContainerName: Tenant
containerB:
configlets:
- configletB1
- configletB2
image_bundle: ''
parentContainerName: containerA
the issue is that additional properties are not allowed in our schema
setting that to True will fix the issue and any possible future enhancements where this might happen:
https://github.com/aristanetworks/ansible-cvp/blob/devel/ansible_collections/arista/cvp/plugins/module_utils/resources/schemas/v3.py#L241
Which component(s) of AVD impacted
cv_container_v3
How do you run AVD ?
Ansible CLI (with virtual-env or native python)
Input variables
- name: container topology creation
hosts: CloudVision
connection: local
gather_facts: no
vars:
# Container definition
containers_provision:
Undefined:
configlets: []
image_bundle: EOS-4.25.4M
parentContainerName: Tenant
containerA:
configlets:
- configletA1
- configletA2
image_bundle: ''
parentContainerName: Tenant
containerB:
configlets:
- configletB1
- configletB2
image_bundle: ''
parentContainerName: containerA
tasks:
- name: "Build Container topology on {{inventory_hostname}}"
arista.cvp.cv_container_v3:
topology: '{{containers_provision}}'
Steps to reproduce
ansible-playbook topo_create2.yaml
Relevant log output
PLAY [container topology creation] *********************************************************************************************
TASK [Build Container topology on CloudVision] ******************************************************************************************
fatal: [CloudVision]: FAILED! => {"changed": false, "msg": "Error, your input is not valid against current schema:\n Undefined"}
PLAY RECAP ******************************************************************************************************************************
CloudVision : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Code of Conduct
Issue Summary
In ansible-cvp 3.4.0 we've added some additional features around imageBundles and also started outputting if containers have image bundles assigned to them, e.g. when running cv_facts_3 the output will be like this:
the issue is that additional properties are not allowed in our schema
setting that to True will fix the issue and any possible future enhancements where this might happen:
https://github.com/aristanetworks/ansible-cvp/blob/devel/ansible_collections/arista/cvp/plugins/module_utils/resources/schemas/v3.py#L241
Which component(s) of AVD impacted
cv_container_v3
How do you run AVD ?
Ansible CLI (with virtual-env or native python)
Input variables
Steps to reproduce
Relevant log output
Code of Conduct