01-19-2018 01:30 AM - last edited on 06-04-2019 09:32 AM by Paul Zimmerman
Hi all,
I'm stuck with a problem on ACI Programmability Options lab, section APIC Sandbox Environment Setup, it says:
# From within the correct virtual environment (venv) apic_fabric_setup\ $ python baseline.py
# Expected Output
Baselining APIC Simulator for Learning Labs
Setting up Fabric Nodes
Configuring Fabric Policies
Setting up Common Tenant
Setting up Heroes Tenant
Setting up SnV Tenant
But my output is:
(venv) C:\Python27\aci-learning-labs-code-samples\apic_fabric_setup>baseline.py
Baselining APIC Simulator for Learning Labs
Setting up Fabric Nodes
Configuring Fabric Policies
Traceback (most recent call last):
File "C:\Python27\aci-learning-labs-code-samples\apic_fabric_setup\baseline.py", line 11, in <module>
import startup_script
File "C:\Python27\aci-learning-labs-code-samples\apic_fabric_setup\startup_script.py", line 225, in <module>
md.commit(c)
File "c:\python27\lib\site-packages\acicobra-3.0_1k-py2.7.egg\cobra\mit\access.py", line 63, in commit
return self._accessImpl.post(configObject)
File "c:\python27\lib\site-packages\acicobra-3.0_1k-py2.7.egg\cobra\internal\rest\accessimpl.py", line 176, in post
return self.__parseError(rsp, CommitError, rsp.status_code)
File "c:\python27\lib\site-packages\acicobra-3.0_1k-py2.7.egg\cobra\internal\rest\accessimpl.py", line 234, in __parseError
parseXMLError(rsp.text, errorClass, httpCode)
File "c:\python27\lib\site-packages\acicobra-3.0_1k-py2.7.egg\cobra\mit\xmlcodec.py", line 15, in parseXMLError
raise errorClass(int(errorCode), errorStr, httpCode)
cobra.mit.request.CommitError: Validation failed: Validation failed for node: 102Overlapping interfaces. Last examined: uni/infra/accportprof-dci-l3out-104
Any ideas what I may have done wrong?
Thanks,
01-19-2018 08:37 AM
Can you please provide the link of the learning lab content you are following and the link to the sample code repo where you cloned the sample code ?
Thanks,
Yawming
01-19-2018 11:19 AM
Hi,
Its this lab:
And I followed the instructions - How To Setup Your Own Computer at the top of the page.
Ta
01-22-2018 09:57 AM
I just went followed steps on Windows and worked for me.
Can you try it again and if not worked please list all the steps you went through.
10-05-2018 06:59 AM
I have the same exact problem, here are the steps I took before encountering the error during the baseline.py run, last part of "how to set up your computer" that I followed was to install the acicobra/ acimodel .eggs which worked fine per pip freeze:
(venv) C:\Python27\CISCO_DEVNET\aci-learning-labs-code-samples\venv\Scripts\cobra-eggs>easy_install -Z acicobra-3.2_1m-py2.7.egg
Processing acicobra-3.2_1m-py2.7.egg
creating c:\python27\cisco_devnet\aci-learning-labs-code-samples\venv\lib\site-packages\acicobra-3.2_1m-py2.7.egg
Extracting acicobra-3.2_1m-py2.7.egg to c:\python27\cisco_devnet\aci-learning-labs-code-samples\venv\lib\site-packages
Adding acicobra 3.2-1m to easy-install.pth file
Installed c:\python27\cisco_devnet\aci-learning-labs-code-samples\venv\lib\site-packages\acicobra-3.2_1m-py2.7.egg
Processing dependencies for acicobra===3.2-1m
Finished processing dependencies for acicobra===3.2-1m
(venv) C:\Python27\CISCO_DEVNET\aci-learning-labs-code-samples\venv\Scripts\cobra-eggs>easy_install -Z acimodel-3.2_1m-py2.7.egg
Processing acimodel-3.2_1m-py2.7.egg
creating c:\python27\cisco_devnet\aci-learning-labs-code-samples\venv\lib\site-packages\acimodel-3.2_1m-py2.7.egg
Extracting acimodel-3.2_1m-py2.7.egg to c:\python27\cisco_devnet\aci-learning-labs-code-samples\venv\lib\site-packages
Adding acimodel 3.2-1m to easy-install.pth file
Installed c:\python27\cisco_devnet\aci-learning-labs-code-samples\venv\lib\site-packages\acimodel-3.2_1m-py2.7.egg
Processing dependencies for acimodel===3.2-1m
Finished processing dependencies for acimodel===3.2-1m
(venv) C:\Python27\CISCO_DEVNET\aci-learning-labs-code-samples\venv\Scripts\cobra-eggs>pip freeze
acicobra===3.2-1m
acimodel===3.2-1m
acitoolkit==0.4
arya==1.1.5
asn1crypto==0.24.0
attrs==18.2.0
certifi==2018.8.24
cffi==1.11.5
chardet==3.0.4
click==7.0
cryptography==2.3.1
deepdiff==3.3.0
dominate==2.3.4
enum34==1.1.6
flask==1.0.2
flask-admin==1.5.2
flask-bootstrap==3.3.7.1
flask-cors==3.0.6
flask-httpauth==3.2.4
flask-sqlalchemy==2.3.2
flask-wtf==0.14.2
functools32==3.2.3.post2
gitdb2==2.0.4
gitpython==2.1.11
graphviz==0.9
idna==2.7
ipaddress==1.0.22
itsdangerous==0.24
jinja2==2.10
jsonpickle==1.0
jsonschema==3.0.0a3
markupsafe==1.0
py-radix==0.10.0
pycparser==2.19
pymysql==0.9.2
pyrsistent==0.14.4
requests==2.19.1
six==1.11.0
smmap2==2.0.4
sqlalchemy==1.2.12
tabulate==0.8.2
urllib3==1.23
visitor==0.1.3
websocket-client==0.53.0
werkzeug==0.14.1
wtforms==2.2.1
(venv) C:\Python27\CISCO_DEVNET\aci-learning-labs-code-samples\venv\Scripts\cobra-eggs>cd ..
(venv) C:\Python27\CISCO_DEVNET\aci-learning-labs-code-samples\venv\Scripts>cd ..
(venv) C:\Python27\CISCO_DEVNET\aci-learning-labs-code-samples\venv>cd ..
(venv) C:\Python27\CISCO_DEVNET\aci-learning-labs-code-samples>cd apic_fabric_setup
(venv) C:\Python27\CISCO_DEVNET\aci-learning-labs-code-samples\apic_fabric_setup>dir
Volume in drive C is OSDisk
Volume Serial Number is 1E28-82F3
Directory of C:\Python27\CISCO_DEVNET\aci-learning-labs-code-samples\apic_fabric_setup
10/04/2018 03:56 PM <DIR> .
10/04/2018 03:56 PM <DIR> ..
10/04/2018 03:13 PM 315 baseline.py
10/04/2018 03:13 PM 3,407 create_snv_apps.py
10/04/2018 03:13 PM 82 credentials.py
10/04/2018 03:13 PM 250 requirements.txt
10/04/2018 03:13 PM 26,020 startup_script.py
10/04/2018 03:56 PM 19,427 startup_script.pyc
6 File(s) 49,501 bytes
2 Dir(s) 128,970,395,648 bytes free
(venv) C:\Python27\CISCO_DEVNET\aci-learning-labs-code-samples\apic_fabric_setup>python baseline.py
Baselining APIC Simulator for Learning Labs
Setting up Fabric Nodes
Configuring Fabric Policies
Traceback (most recent call last):
File "baseline.py", line 11, in <module>
import startup_script
File "C:\Python27\CISCO_DEVNET\aci-learning-labs-code-samples\apic_fabric_setup\startup_script.py", line 225, in <module>
md.commit(c)
File "c:\python27\cisco_devnet\aci-learning-labs-code-samples\venv\lib\site-packages\acicobra-3.2_1m-py2.7.egg\cobra\mit\access.py", line 63, in commit
return self._accessImpl.post(configObject)
File "c:\python27\cisco_devnet\aci-learning-labs-code-samples\venv\lib\site-packages\acicobra-3.2_1m-py2.7.egg\cobra\internal\rest\accessimpl.py", line 176, in post
return self.__parseError(rsp, CommitError, rsp.status_code)
File "c:\python27\cisco_devnet\aci-learning-labs-code-samples\venv\lib\site-packages\acicobra-3.2_1m-py2.7.egg\cobra\internal\rest\accessimpl.py", line 234, in __parseError
parseXMLError(rsp.text, errorClass, httpCode)
File "c:\python27\cisco_devnet\aci-learning-labs-code-samples\venv\lib\site-packages\acicobra-3.2_1m-py2.7.egg\cobra\mit\xmlcodec.py", line 15, in parseXMLError
raise errorClass(int(errorCode), errorStr, httpCode)
cobra.mit.request.CommitError: Validation failed: Validation failed for node: 102Overlapping interfaces. Last examined: uni/infra/accportprof-Demo-Ins-Pf
10-05-2018 07:02 AM
The learning lab I'm doing is : https://learninglabs.cisco.com/tracks/aci-programmability/intermediate-aci-prog/sbx-intermediate-aci-00_webarya/step/1
08-20-2019 04:59 PM
I had the same problem on my Mac and gave up on it last night. I got back from work this morning and tried again before my Mac established internet access and it worked. I don't know if that helps anyone but decided to share incase someone wants to try it.
02-28-2020 11:05 PM
i saw your comment but it was hard to believe that it will work, still i tried to run again and it worked when i run after 10 hours even i didn't make any changes to make it possible.
11-12-2019 01:50 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide