noironetworks/acc-provision

acc-provision openshift-4.5-esx

4ndersson opened this issue · 2 comments

When trying to provision openshift-4.5-esx on Cisco ACI Version 5.1(1h), the following error is arised.

[root@ocp-bastion ocp_upi_integrated]# acc-provision -d -c acc-provision-input.yaml -u x -p y -f openshift-4.5-esx
INFO: Loading configuration from "acc-provision-input.yaml"
INFO: Using configuration flavor openshift-4.5-esx
ERR:  KeyError: 'infraRsVlanNs'

I had to change this file /usr/local/lib/python3.6/site-packages/acc_provision/apic_provision.py, line 214.

FROM: path = "/api/node/mo/uni/vmmp-VMware/dom-%s.json?query-target=children" % (vmmdom)
TO: path = "/api/node/mo/uni/vmmp-VMware/dom-%s.json?query-target=children&target-subtree-class=infraRsVlanNs" % (vmmdom)

Thanks for the report. The issue was confirmed and the change has been applied to the main branch. The fix will be available in the next release