You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New tenant creation fails with the following error:
(brazos)ALWADHWA-M-K0E2:aryaCobra alwadhwa$ ./createBlankTenant.py <?xml version="1.0" encoding="UTF-8"?> <polUni status='created,modified'><fvTenant ownerKey='' name='Student1_lab' descr='' status='created,modified' ownerTag=''></fvTenant></polUni> Traceback (most recent call last): File "./createBlankTenant.py", line 27, in <module> c.addMo(topMo) File "/Users/alwadhwa/brazos/lib/python2.7/site-packages/acicobra-1.2_1i-py2.7.egg/cobra/mit/request.py", line 777, in addMo raise ValueError('mo context not found for {0}'.format(str(mo.dn))) ValueError: mo context not found for uni
Cobra generated script
.. snip .. topMo = cobra.model.pol.Uni('')
# build the request using cobra syntax fvTenant = cobra.model.fv.Tenant(topMo, name='Student1_lab')
# commit the generated code to APIC print toXMLStr(topMo) c = cobra.mit.request.ConfigRequest() c.addMo(topMo) md.commit(c)
**** Experienced this issue at NetApp deployment ****
python add_phys_domain.py
/usr/lib/python2.7/site-packages/urllib3/connectionpool.py:769: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
Traceback (most recent call last):
File "add_phys_domain.py", line 26, in
c.addMo(polUni)
File "/usr/lib/python2.7/site-packages/acicobra-1.2_2g-py2.7.egg/cobra/mit/request.py", line 777, in addMo
raise ValueError('mo context not found for {0}'.format(str(mo.dn)))
ValueError: mo context not found for uni
Applied the following work around which appeared to work.
New tenant creation fails with the following error:
(brazos)ALWADHWA-M-K0E2:aryaCobra alwadhwa$ ./createBlankTenant.py
<?xml version="1.0" encoding="UTF-8"?>
<polUni status='created,modified'><fvTenant ownerKey='' name='Student1_lab' descr='' status='created,modified' ownerTag=''></fvTenant></polUni>
Traceback (most recent call last):
File "./createBlankTenant.py", line 27, in <module>
c.addMo(topMo)
File "/Users/alwadhwa/brazos/lib/python2.7/site-packages/acicobra-1.2_1i-py2.7.egg/cobra/mit/request.py", line 777, in addMo
raise ValueError('mo context not found for {0}'.format(str(mo.dn))) ValueError: mo context not found for uni
Cobra generated script
.. snip ..
topMo = cobra.model.pol.Uni('')
# build the request using cobra syntax
fvTenant = cobra.model.fv.Tenant(topMo, name='Student1_lab')
# commit the generated code to APIC
print toXMLStr(topMo)
c = cobra.mit.request.ConfigRequest()
c.addMo(topMo)
md.commit(c)
Workaround
c.addMo(fvTenant)
Version 1.2(1i)
>>> import cobra
>>> print cobra.__file__
/Users/alwadhwa/brazos/lib/python2.7/site-packages/acicobra-1.2_1i-py2.7.egg/cobra/__init__.pyc
>>>
The text was updated successfully, but these errors were encountered: