using per-resource cache expiration_time fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Shade |
New
|
Undecided
|
Unassigned |
Bug Description
clouds.yaml:
cache:
class: dogpile.cache.dbm
expiration_
arguments:
filename: /tmp/os-
expiration:
servers: 0
flavors: 3600
images: 3600
networks: 3600
ports: 3600
volumes: 3600
I identified two issues here:
1. Examples online say that under "expiraton", a singular form should be used ("server", "image"), yet shade is looking for plural, according to function names: https:/
2. The value in seconds is read from os_client_config as a string in
https:/
Therefore, this happens:
2017-10-26 16:48:39.501 41343 CRITICAL test [-] Unhandled error: dogpile.
2017-10-26 16:48:39.501 41343 ERROR test Traceback (most recent call last):
2017-10-26 16:48:39.501 41343 ERROR test File "/root/
2017-10-26 16:48:39.501 41343 ERROR test sys.exit(main())
2017-10-26 16:48:39.501 41343 ERROR test File "/root/
2017-10-26 16:48:39.501 41343 ERROR test cloud = shade.openstack
2017-10-26 16:48:39.501 41343 ERROR test File "/root/
2017-10-26 16:48:39.501 41343 ERROR test return OpenStackCloud(
2017-10-26 16:48:39.501 41343 ERROR test File "/root/
2017-10-26 16:48:39.501 41343 ERROR test cache_class, expirations[
2017-10-26 16:48:39.501 41343 ERROR test File "/root/
2017-10-26 16:48:39.501 41343 ERROR test arguments=
2017-10-26 16:48:39.501 41343 ERROR test File "/root/
2017-10-26 16:48:39.501 41343 ERROR test 'expiration_time is not a number or timedelta.')
2017-10-26 16:48:39.501 41343 ERROR test dogpile.
Line 251 above simply needs to have: int(expirations