While removing registry [1] we by mistake removed some code related to
multiple store configuration for glance. This must be happened during
resolving merged conflicts.
Adding it back.
[1] https://review.opendev.org/708062
Change-Id: I2b84f7b7c51b7b20765a06b48c75006fd2e8ab71
| ... | ... |
@@ -143,6 +143,16 @@ function configure_glance {
|
| 143 | 143 |
local dburl |
| 144 | 144 |
dburl=`database_connection_url glance` |
| 145 | 145 |
|
| 146 |
+ # Configure multiple stores |
|
| 147 |
+ if [[ "$GLANCE_ENABLE_MULTIPLE_STORES" == "True" ]]; then |
|
| 148 |
+ local store enabled_backends |
|
| 149 |
+ enabled_backends="" |
|
| 150 |
+ for store in $(echo $GLANCE_MULTIPLE_FILE_STORES | tr "," "\n"); do |
|
| 151 |
+ enabled_backends+="${store}:file,"
|
|
| 152 |
+ done |
|
| 153 |
+ iniset $GLANCE_API_CONF DEFAULT enabled_backends ${enabled_backends::-1}
|
|
| 154 |
+ fi |
|
| 155 |
+ |
|
| 146 | 156 |
iniset $GLANCE_API_CONF DEFAULT debug $ENABLE_DEBUG_LOG_LEVEL |
| 147 | 157 |
iniset $GLANCE_API_CONF database connection $dburl |
| 148 | 158 |
iniset $GLANCE_API_CONF DEFAULT use_syslog $SYSLOG |