cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Community Helping Community

311
Views
0
Helpful
11
Replies
Beginner

IOx Docker app on Cisco ISR1K, C1117-4PWE, is this possible?

Morning,

 

I was looking for some advice/information on whether I should carry on learning about IOx to deploy a simple Python based app to monitor the router status on a ISR1K.  This will do the guestshell deployment but Im having issues getting it to run services and not just one time scripts.

 

If it is possible, I have tried to get the perfsonar app to deploy but there is an issue with the schema version for package.yaml, are there any good sources for training?

 

Thanks

 

Dean

11 REPLIES 11
Cisco Employee

Re: IOx Docker app on Cisco ISR1K, C1117-4PWE, is this possible?

Pls share your app pkg tar archive. You can follow through hands-on training at
https://developer.cisco.com/docs/sandbox/#!iot/featured-labs

For detailed docs,
Https://developer.cisco.com/docs/iox
Beginner

Re: IOx Docker app on Cisco ISR1K, C1117-4PWE, is this possible?

Thank you for the documents. The package file is +440mb in size but I followed the guide as per https://github.com/CiscoIOx/perfsonar it needed a few tweaks tho
Cisco Employee

Re: IOx Docker app on Cisco ISR1K, C1117-4PWE, is this possible?

Pls share your package.yaml, the step which is triggering the error and exact error msg you are getting.
Beginner

Re: IOx Docker app on Cisco ISR1K, C1117-4PWE, is this possible?

HI,

 

This is the error I get, I've tried to find which version of schema is support but had no luck.

 

z1898533#$onar package flash:output/perfsonar-testpoint.v4.1.c1.1.0.tar
% Error: Given schema version 2.9 is not supported

z1898533#

The package.yaml

 

$ cat package.yaml
descriptor-schema-version: "2.9"
info:
  name: perfsonar
  description: Cisco IOx PerfSONAR Application
  version: "1.1.0"
  author-name: Cisco
app:
  # Indicate app type (vm, docker)
  cpuarch: x86_64
  type: docker

  env:
    PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    PG_VERSION: "9.5"
    PGDATA: /var/lib/pgsql/9.5/data
    PGVERSION: "95"

  resources:
    profile: custom
    vcpu: "2"
    cpu: "4000"
    disk: "1"
    memory: "2048"

    ramfs:
      size: "64"

    network:
    - interface-name: eth0
      type: external
      hint: "Application Public External Interface"
      ports: {}

# Specify runtime and startup
  startup:
    rootfs: rootfs.tar
    target: /etc/init.d/iox_start.sh
Cisco Employee

Re: IOx Docker app on Cisco ISR1K, C1117-4PWE, is this possible?

Dean,

    After some testing, I think the following package.yaml will work. To use the package.yaml we can run the command "ioxclient docker package somebody/iox-test:latest ." substituting somebody/iox-test:latest for the image's tag and version. Viewing the issues with the package.yaml can be seen with the following command.

$ ioxclient docker package somebody/iox-test:latest . | grep "-"

After some research and reviewing, https://docs.docker.com/compose/compose-file/compose-file-v2/ resulted in the following file.

package.yaml

descriptor-schema-version: "2.9"
info:
  name: perfsonar
  description: Cisco IOx PerfSONAR Application
  version: "1.1.0"
  author-name: Cisco
app:
  # Indicate app type (vm, docker)
  cpuarch: x86_64
  type: docker
  env:
    PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    PG_VERSION: "9.5"
    PGDATA: /var/lib/pgsql/9.5/data
    PGVERSION: "95"
  resources:
    profile: custom
    vcpu: "2"
    cpu: "4000"
    disk: "1"
    memory: "2048"
    network:
    - interface-name: eth0
      type: external  
      hint: "Application Public External Interface"
      ports: {}
  startup:
    rootfs: rootfs.tar
    target: /etc/init.d/iox_start.sh

Please, test the file out and let me know the results.

Thank you,
Kyle

Beginner

Re: IOx Docker app on Cisco ISR1K, C1117-4PWE, is this possible?

Hi,

 

Thanks for the help, although it did not directly help it did send me down the right rabbit hole to install a custom docker image.

 

I'll managed to generate a package.tar (I renamed it crs-docker.tar) I've overcome some CPU architecture issues but getting this error that has me stumped

 

z1898533#app-hosting install appid perfsonar package flash:crs-docker.tar
% Error: guestshell_setup.sh returned error: 255, message: Installing apps on system flash is not allowed.
Cisco Employee

Re: IOx Docker app on Cisco ISR1K, C1117-4PWE, is this possible?

What is your IOS version ? You may need  16.12 and later to support 2.9 schema.

Beginner

Re: IOx Docker app on Cisco ISR1K, C1117-4PWE, is this possible?


@yawming wrote:

What is your IOS version ? You may need  16.12 and later to support 2.9 schema.


Morning,  Currently on 16.10.2, I believe the schema I have for my own docker image is 2.7. ioxclient generated it,  is there a table somewhere with what versions are support on what IOS version?

 

Dean

Highlighted
Cisco Employee

Re: IOx Docker app on Cisco ISR1K, C1117-4PWE, is this possible?

Dean,

I see that your message is the following.

z1898533#app-hosting install appid perfsonar package flash:crs-docker.tar
% Error: guestshell_setup.sh returned error: 255, message: Installing apps on system flash is not allowed.

 After some research the error message, the message is literal and the commands will need to be run on a device with non-flash storage.

 

Regards,

Kyle

Beginner

Re: IOx Docker app on Cisco ISR1K, C1117-4PWE, is this possible?

Hi Kyle,

 

Thanks for the update, does this mean the ISR C1117-4PWE is not capable of running docker images?

 

Dean

Cisco Employee

Re: IOx Docker app on Cisco ISR1K, C1117-4PWE, is this possible?

Dean,

The Cisco ISR1K does not support the IOx Docker app.

 

Regards,

Kyle

CreatePlease to create content
Content for Community-Ad
FusionCharts will render here