<div dir="ltr"><div><div>Hi,<br><br></div>Sounds like a bug. I think we should prohibit adding duplicate links on nailgun side, using link title + link url as a key.<br><br></div>I've created a bug: <a href="https://bugs.launchpad.net/fuel/+bug/1538209">https://bugs.launchpad.net/fuel/+bug/1538209</a>. I hope it will be fixed by the HCF so that the fix will be included in 8.0.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-26 19:23 GMT+03:00 Simon Pasquier <span dir="ltr"><<a href="mailto:spasquier@mirantis.com" target="_blank">spasquier@mirantis.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"><div><div>Hi all,<br><br></div>In the scope of the LMA plugins, we've played with the new ability to insert links in the Fuel dashboard. This works fine from the UI standpoint except that to avoid creating duplicate links we've come up with a solution that is intricate and brittle IMO.<br>Basically we have an exec resource that sends a POST request to the Fuel API and creates a "sentinel" file on the local filesystem if it succeeds [1]. If the Puppet manifest is re-executed later on, the exec resource won't be applied again if that file exists.<br></div><div>The problem arises when the node that created the link is re-provisioned or replaced since it will generate duplicated links eventually.<br>Have someone find a better way to manage this?<br><br>Regards,<br></div>Simon<br><div><br>[1] <a href="https://github.com/openstack/fuel-plugin-elasticsearch-kibana/blob/b85348aa964964f47dad1b08438e2d803ff20544/deployment_scripts/puppet/manifests/provision_services.pp#L38-L43" target="_blank">https://github.com/openstack/fuel-plugin-elasticsearch-kibana/blob/b85348aa964964f47dad1b08438e2d803ff20544/deployment_scripts/puppet/manifests/provision_services.pp#L38-L43</a><br></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"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">Vitaly Kramskikh,<br>Fuel UI Tech Lead,<br>Mirantis, Inc.</div></div></div></div>
</div>