cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1192
Views
0
Helpful
3
Replies

Device pakcage upload error by ACI simulator

oyhskw
Level 1
Level 1

I am developing l4-l7 device pakcage using aci simulaotr (version 5.1-4c)

when I upload my device pakcage, i got error all the time.

fault_error.png

 

Also, I know that debug.log is created in the device pakcage path (/data/devicescript/MYCOM.TEST.1.0/logs)

However there is only `stdout_stderr.log` in the path

admin@apic1:logs> pwd
/data/devicescript/MYCOM.TEST.1.0/logs
admin@apic1:logs> ls
stdout_stderr.log

~~~ stdout_stderr.log

dir listing of / : . .. logs tmp venv dev lib64 etc lib usr sbin bin pipe install dir listing of /venv/bin : svcPrint.py scriptwrapper.py .. . calling /venv/bin/python2.7 execv failed: 2

 

 

 scripthandler log like this... (/var/log/dme/log/scripthandler.log)

 

21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1607||option p: /venv/bin/scriptwrapper.py
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1612||option s: /var/run/mgmt/devicescript/MYCOM.TEST.1.0
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1617||option t: /var/run/mgmt/devicescript/MYCOM.TEST.1.0_CONT
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1573||option g: ifc0/servicescripts
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1626||option x: -r MYCOM.TEST.1.0 -m DeviceScript.py -y uni/infra/mDev-MYCOM-TEST-1.0 -l 7 -c 20
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1164||mkdirp: '/var/run/mgmt/devicescript/MYCOM.TEST.1.0/bin'
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1164||mkdirp: '/var/run/mgmt/devicescript/MYCOM.TEST.1.0/sbin'
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1164||mkdirp: '/var/run/mgmt/devicescript/MYCOM.TEST.1.0/usr'
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1164||mkdirp: '/var/run/mgmt/devicescript/MYCOM.TEST.1.0/lib'
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1164||mkdirp: '/var/run/mgmt/devicescript/MYCOM.TEST.1.0/etc'
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1164||mkdirp: '/var/run/mgmt/devicescript/MYCOM.TEST.1.0/lib64'
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1164||mkdirp: '/var/run/mgmt/devicescript/MYCOM.TEST.1.0/dev'
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1164||mkdirp: '/var/run/mgmt/devicescript/MYCOM.TEST.1.0/dev/pts'
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1164||mkdirp: '/var/run/mgmt/devicescript/MYCOM.TEST.1.0/venv'
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1176||checking to setup old_root
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1285||mkdirp: '/var/run/mgmt/devicescript/MYCOM.TEST.1.0/tmp'
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1285||mkdirp: '/var/run/mgmt/devicescript/MYCOM.TEST.1.0/logs'
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1307||done setting up extra dirs
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1219||scandir '/var/run/mgmt/devicescript/MYCOM.TEST.1.0'
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1243||changing ownership of '/var/run/mgmt/devicescript/MYCOM.TEST.1.0/venv'
21-10-01 13:34:28||scriptcontainer||INFO||||../svc/scripthandler/src/container/ScriptContainer.cc||1248||chown /var/run/mgmt/devicescript/MYCOM.TEST.1.0/venv failed - errno: 30(Read-only file system)

 

 I think this log message casing the problem

chown /var/run/mgmt/devicescript/MYCOM.TEST.1.0/venv failed - errno: 30(Read-only file system)

 Can anyone please help me to solve this problem?

 

----

sim version : 5.1-4c (also, 4.2-6o)

I installed aci simulator on vmware workstation 16 Player.

I also get error when I upload another vendor device package (link citrix device package for netscaler)

3 Replies 3

Sergiu.Daniluk
VIP Alumni
VIP Alumni

Hi @oyhskw

According to release notes of 5.2, device packages are no longer supported: https://www.cisco.com/c/en/us/td/docs/dcn/aci/apic/5x/release-notes/cisco-apic-release-notes-521.html

End of support for device packages

Device packages are no longer supported. There is no longer a managed mode for devices; all devices are effectively unmanaged.

All device package-related information was removed from the Cisco APIC Layer 4 to Layer 7 Services Deployment Guide, Release 5.2(x).

 

I would suggest you not waste time developing devpkg if they will become obsolete in 1 year.

 

Stay safe,

Sergiu

@Sergiu.Daniluk Thank you for your response!!

Unfortunately, even if device package is not supported after 5.2, I have to develop devpkg for some reason.

Therefore, 

I would like to know the cause of this issue and how to solve it.

Have you ever seen above errors or know of a workaround?

 

 

 

 

Ruben Cocheno
Spotlight
Spotlight

@oyhskw 

All sorted?

Tag me to follow up.
Please mark it as Helpful and/or Solution Accepted if that is the case. Thanks for making Engineering easy again.
Connect with me for more on Linkedin https://www.linkedin.com/in/rubencocheno/