F5Networks / f5-appsvcs-templates

F5 BIG-IP Application Service Templates (FAST)
Apache License 2.0
32 stars 13 forks source link

Adding template set fails with 1.20 onwards #110

Closed scshitole closed 1 year ago

scshitole commented 1 year ago

Environment

Summary

When I add tried adding a template set to the F5 application Service template it fails giving an error as image With 1.17, 1.18, and 1.19 there are no issues

Steps To Reproduce

AppRequestRouting.zip

List the steps to reproduce the behavior: Load rpm 3.36 and 1.20 and try to add the template attached

Expected Behavior

It should not fail

Actual Behavior

A clear and concise description of what actually happens. Please include any applicable error output.

shyawnkarim commented 1 year ago

I was able to deploy a custom template set today with v1.21.0, however, I was also able to duplicate your error.

When I use the incorrect byte size for my zip file I get the same error. Can you double check that you have the correct file size specified when uploading?

scshitole commented 1 year ago

@shyawnkarim how to use the correct file size? I just use Mac OS to compress the file, the same file works for 1.17 to 1.19.

shyawnkarim commented 1 year ago

The Hello World Tutorial on this page gives step by step instructions on how to create a custom template, zip it, send to BIG-IP, and install it. Are these the steps that you followed?

scshitole commented 1 year ago

@shyawnkarim I followed the steps, however the file generated is more than 1MB. I tried uploading through the GUI, it gives me same error

fast packageTemplateSet /Users/shitole/test/bd_epic/AppRequestRouting
Template set "AppRequestRouting" packaged as ./AppRequestRouting.zip
SEA-ML-00060393:AppRequestRouting shitole$ ls
AppRequestRouting.json  AppRequestRouting.yaml  arr.yaml
AppRequestRouting.mst   AppRequestRouting.zip
SEA-ML-00060393:AppRequestRouting shitole$ 
SEA-ML-00060393:AppRequestRouting shitole$ ls -lrt
total 96
-rw-r--r--  1 shitole  1437522721   4408 Nov  8 11:04 AppRequestRouting.json
-rw-r--r--  1 shitole  1437522721   6538 Nov  8 11:04 AppRequestRouting.yaml
-rw-r--r--  1 shitole  1437522721   3970 Nov  8 11:04 arr.yaml
-rw-r--r--  1 shitole  1437522721   6538 Nov  8 11:08 AppRequestRouting.mst
-rw-rw-rw-  1 shitole  1437522721  17771 Nov  8 11:10 AppRequestRouting.zip
SEA-ML-00060393:AppRequestRouting shitole$ 
shyawnkarim commented 1 year ago

When installing zips greater than 1MB via API, the upload needs to be broken up into chunks with multiple posts. Instructions on how to do this can be found here.

scshitole commented 1 year ago

I am not using API, I am directly using BIG-IP GUI to import the template set

shyawnkarim commented 1 year ago

Gotcha. There is a known GUI bug that is affecting 1.19.0 and 1.20.0 when uploading templates. The bug has already been fixed and will be released with version 1.22.0.

shyawnkarim commented 1 year ago

Closing.

This issue was resolved with Release 1.22.0.