cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
149
Views
0
Helpful
6
Replies

Unable to Install IPERF3 via App-Hosting - Mandatory Layer Missing

Oh Drother
Level 1
Level 1

Hi,

I have been struggling all day in an attempt to get mlabbe/iperf3 installed on a 9300 running 17.3.5 using advantage.

So far, I have tried saving the image using docker save which defaults to the "oci-archive" format (uses blobs) as well as using podman to save the file as "docker-archive" format (uses layers).

When trying with the "oci-archive" format, I get this error:

  • Jul  8 19:48:30 UTC: %IM-6-INSTALL_MSG: Switch 1 R0/0: ioxman: app-hosting: Install failed: Error during app installation: [Errno 2] No such file or directory: u'/vol/usb1/caf/tmpExtract5vWd29/rootfs/blobs/layer.tar'

And when saving with the "docker-archive" format, I get this error:

  • Jul 9 00:00:17 UTC: %IM-6-INSTALL_MSG: Switch 1 R0/0: ioxman: app-hosting: Install failed: Invalid Archive file: Unable to extract docker rootfs /usbflash1/iperf3-podman.tar to /vol/usb1/caf/tmpExtractDcN7Da/rootfs Error:Mandatory layer 75654b8eeebd3beae97271a102f57cdeb794cc91e442648544963a7e951e9558.tar is missing!

Hoping for any sort of feedback, this is driving me crazy.

6 Replies 6

marce1000
Hall of Fame
Hall of Fame

 

 - @Oh Drother   Checkout : https://community.cisco.com/t5/networking-blogs/network-performance-monitoring-with-catalyst-9300-application/ba-p/3868481
                                            https://www.cisco.com/c/en/us/support/docs/switches/catalyst-9200-series-switches/220197-use-iperf-on-catalyst-9000-switches-to-p.html

  M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

balaji.bandi
Hall of Fame
Hall of Fame

check are you effecting with this bug :

https://bst.cisco.com/bugsearch/bug/CSCwa56172?rfs=qvred

post output :

#show app-hosting infra  #show iox

try adding command in global level and test it :

app-hosting verification disable

I do not have iperf blog but i have installed iperf for testing on 17.6.X  - same procedure. (make sure the the docker file is valid)

https://www.balajibandi.com/?p=1621

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Oh Drother
Level 1
Level 1

Thanks for the replies. I know for a fact that the issue isn't with the actual app-hosting configuration because I am able to take an old iperf3.tar file from 2021 and it installs successfully. I already went through disabling app-hosting verification, and made sure that I am attempting to install from usbflash and not flash.

The issue seems to be more specific to saving the docker image as a .tar file like I mentioned in my original post. I have tried so many different ways to export/save this using both docker AND podmon, but nothing seems to work. I also have not found any Cisco documentation regarding the errors I'm receiving, or what format Cisco recommends (OCI or docker archive format). 

I am able to take an old iperf3.tar file from 2021

One works old one, the new one not working, where did you get from ? provide link see if i can role in my test switch.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Here is what I discovered:

  • If I use the latest version of Docker and save the mlabbe/iperf3 it will save it in OCI format (blobs folder in .tar file). This doesn't install for me on 17.3.5
  • If I use legacy version of Docker (4.9.1) and save the mlabbe/iperf3 it will save in the legacy Docker Archive format (layers in .tar file) and this will successfully install for me on 17.3.5

Late to this party, reading your issue and comments i think this is mentioned here https://developer.cisco.com/docs/iox/overview/

"The rootfs MUST be in Docker image format which is a tar ball that preserves all layers and layer information from the Docker image."

If i read this right and your issue, this is why you are getting the "mandatory layer missing" errors, as IOx requires the complete docker image format with all layers preserved, not the oci format or modified archive formats.

I think! Hope this helps.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io