<div dir="ltr">Hm... It's sounds reasonable, I will think about it.</div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-03 15:37 GMT+03:00 Thomas Herve <span dir="ltr"><<a href="mailto:therve@redhat.com" target="_blank">therve@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Dec 3, 2015 at 1:00 PM, Peter Razumovsky <span dir="ltr"><<a href="mailto:prazumovsky@mirantis.com" target="_blank">prazumovsky@mirantis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><div dir="ltr">Hello!<div><br></div><div>During get_reality implementation next problem raised: if I don't specify optional not update allowed property (like availabiliy_zone in OS::Cinder::Volume), default value will be set for this property in entity. This default value defined in configuration of entity's project (i.e. if I create OS::Cinder::Volume without az, volume will be created with az = default value, which defined in cinder.conf). </div><div><br></div><div>So, if I want to get live state of entity, I get az with value, but in template no value has been specified for az, and that's mean, stack will be repalced during update, which is awful (e.g. if we have huge stack with this problem for each resource, updating will be very slow).</div><div><br></div><div>What I can do with such properties with default values, defined in config options? I don't know any methods to get value from config of other project.</div></div></blockquote><div><br></div></span><div>I haven't thought too much about it, but I'm sure getting config from other projects is not the right idea :). One possible solution would be to get the live state of the entity just after creation, so that we can fill those default properties right away. What do you think?<span class="HOEnZb"><font color="#888888"><br><br>-- <br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Thomas<br></div><div> </div></font></span></div></div></div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best regards,<br></div>Peter Razumovsky<br></div></div>
</div>