F5Networks / f5-bigip-runtime-init

Apache License 2.0
14 stars 15 forks source link

Skip installation delay when package is already installed #21

Open ghost opened 3 years ago

ghost commented 3 years ago

For speed of troubleshooting, it would be great to have the extension installation delay skipped if the package is already installed:

Snippet:

extension_packages:
    install_operations:
        - extensionType: do
          extensionVersion: 1.21.1
        - extensionType: as3
          extensionVersion: 3.29.0
        - extensionType: ts
          extensionVersion: 1.20.1

Result:

2021-07-29T18:04:22.378Z [12809]: silly: package is already installed
2021-07-29T18:04:22.379Z [12809]: silly: Extension installation delay is set to 10000 milliseconds
shyawnkarim commented 3 years ago

Thanks for suggesting this enhancement. We are now tracking it internally with ID ESECLDTPLT-2745.

mikeshimkus commented 1 year ago

@grf5 You can workaround this by setting the delay to 0 prior to rerunning runtime init:

[admin@bigip01:Active:Standalone] ~ # export F5_BIGIP_RUNTIME_EXTENSION_INSTALL_DELAY_IN_MS=0 [admin@bigip01:Active:Standalone] ~ # f5-bigip-runtime-init -c /config/cloud/runtime-init.conf

ghost commented 1 year ago

Is there a way to do this dynamically? The delay is important if the extension is not installed, correct? Perhaps something like F5_BIGIP_RUNTIME_EXTENSION_SKIP_DELAY_IF_INSTALLED=TRUE?

mikeshimkus commented 1 year ago

Yes, that update will be in the next release. Just pointing out the workaround in case you weren't already aware.

ghost commented 1 year ago

Fantastic. Thank you @mikeshimkus!