diff --git a/src/config.yaml b/src/config.yaml index a9e85ed..05ca7fa 100644 --- a/src/config.yaml +++ b/src/config.yaml @@ -212,3 +212,11 @@ options: type: int description: | Number of days before a log object expires in swift. + swift-temp-url-duration: + default: + type: int + description: | + The length of time (in seconds) that the temporary URL will be valid + for. Defaults to 20 minutes. If some deploys get a 401 response code + when trying to download from the temporary URL, try raising this + duration. diff --git a/src/templates/train/ironic.conf b/src/templates/train/ironic.conf index 8cd48bf..5e2ff43 100644 --- a/src/templates/train/ironic.conf +++ b/src/templates/train/ironic.conf @@ -49,6 +49,9 @@ swift_container = glance {% if options.temp_url_secret -%} swift_temp_url_key = {{ options.temp_url_secret }} {% endif %} +{%- if options.swift_temp_url_duration and options.swift_temp_url_duration > 0 %} +swift_temp_url_duration = {{ options.swift_temp_url_duration }} +{%- endif %} [swift] {% include "parts/service-auth" %} diff --git a/src/tests/bundles/jammy-yoga.yaml b/src/tests/bundles/jammy-yoga.yaml index a87530d..84825ba 100644 --- a/src/tests/bundles/jammy-yoga.yaml +++ b/src/tests/bundles/jammy-yoga.yaml @@ -162,8 +162,6 @@ services: charm: ch:mysql-innodb-cluster num_units: 3 constraints: mem=4G - options: - source: *source channel: latest/edge cinder: charm: ch:cinder diff --git a/src/tests/bundles/jammy-zed.yaml b/src/tests/bundles/jammy-zed.yaml index d063b5c..40f0707 100644 --- a/src/tests/bundles/jammy-zed.yaml +++ b/src/tests/bundles/jammy-zed.yaml @@ -162,8 +162,6 @@ services: charm: ch:mysql-innodb-cluster num_units: 3 constraints: mem=4G - options: - source: *source channel: latest/edge cinder: charm: ch:cinder diff --git a/src/tests/bundles/kinetic-zed.yaml b/src/tests/bundles/kinetic-zed.yaml index 1c42847..27adb7a 100644 --- a/src/tests/bundles/kinetic-zed.yaml +++ b/src/tests/bundles/kinetic-zed.yaml @@ -162,8 +162,6 @@ services: charm: ch:mysql-innodb-cluster num_units: 3 constraints: mem=4G - options: - source: *source channel: latest/edge cinder: charm: ch:cinder