<div class="zcontentRow"><p style="font-size:14px;font-family:arial;"><br></p><div><div class="zhistoryRow" style="display:block"><div id="zwriteHistoryContainer"><div class="control-group zhistoryPanel"><br><div class="zhistoryContent"><div>On 5/14/2019 3:34 PM, Matt Riedemann wrote:<br>> 2. I had a question about when the nova CDM gets built now [2]. It looks <br>> like the nova CDM only gets built when there is an audit? But I thought <br>> the CDM was supposed to get built on start of the decision-engine <br>> service and then refreshed every hour (by default) on a periodic task or <br>> as notifications are processed that change the model. Does this mean the <br>> nova CDM is rebuilt fresh whenever there is an audit even if the audit <br>> is not scoped? If so, isn't that potentially inefficient (and an <br>> unnecessary load on the compute API every time an audit runs?).<br><br>Also, it looks like https://bugs.launchpad.net/watcher/+bug/1828582 is <br>due to a regression caused by that change. The problem is a nova <br>notification is received before the nova CDM is built which results in <br>an AttributeError traceback in the decision-engine logs.<br><br>Should we be building the nova CDM if nova is sending notifications and <br>there is no model yet? Or should we just handle the case that the nova <br>CDM hasn't been built yet when we start getting notifications (and <br>before an audit builds the CDM)?<br><p>[licanwei]:please refer to <a href="https://github.com/openstack/watcher/blob/master/watcher/decision_engine/model/notification/nova.py#L144"></a><a target="_blank" href="https://github.com/openstack/watcher/blob/master/watcher/decision_engine/model/notification/nova.py#L144">https://github.com/openstack/watcher/blob/master/watcher/decision_engine/model/notification/nova.py#L144</a> </p><p>When a nova <span style="line-height: 21px;">notification is received before the nova CDM is built or no node in the CDM,</span></p><p>the node will be add to the CDM.</p><p><br></p>-- <br><br>Thanks,<br><br>Matt<br></div></div></div></div></div></div><p><br></p></div>