From d31c123c0201109c61bdd15f7e1ecf480df20910 Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Mon, 27 Jan 2020 08:02:45 +0000 Subject: [PATCH] Do not cache volume status attribute this field can change by itself even during processing of the stack (e.g. volume created, and considerably later attached), or by itself (e.g. going to error). If something is polling stack or its outputs while the stack is created, the first value will get cached and returned regardless of actual volume status. Change-Id: Ic48a824a330c67cd4d9c4ccff31b6f53f0ca196d Story: 2007217 Task: 38469 --- heat/engine/resources/openstack/cinder/volume.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/heat/engine/resources/openstack/cinder/volume.py b/heat/engine/resources/openstack/cinder/volume.py index 2d089860f4..71a4b9185c 100644 --- a/heat/engine/resources/openstack/cinder/volume.py +++ b/heat/engine/resources/openstack/cinder/volume.py @@ -206,7 +206,8 @@ class CinderVolume(vb.BaseVolume, sh.SchedulerHintsMixin): ), STATUS: attributes.Schema( _('The current status of the volume.'), - type=attributes.Schema.STRING + type=attributes.Schema.STRING, + cache_mode=attributes.Schema.CACHE_NONE ), CREATED_AT: attributes.Schema( _('The timestamp indicating volume creation.'),