<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 10, 2019 at 11:58 PM Emilien Macchi <<a href="mailto:emilien@redhat.com">emilien@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi folks,</div><div><br></div><div>Today I spent a bit of time on:</div><div><a href="https://blueprints.launchpad.net/tripleo/+spec/scale-down-tasks" target="_blank">https://blueprints.launchpad.net/tripleo/+spec/scale-down-tasks</a></div><div><br></div><div>Which is basically adding the capability of running Ansible tasks before a node is removed during a scale down or after a scale-up.</div><div>I'm focusing on the scale-down right now, as I know it's something people have been waiting for (e.g. RHSM unsubscribe, Ceph OSD tear down, Nova Compute, etc).</div><div><br></div><div>I need inputs from folks now, on what kind of tasks would be needed, I will test them and make sure the interface we provide is enough. John, Olie, and Martin in copy have maybe some ideas, please let me know some examples of Ansible tasks that you folks want to run before a node is deleted in Ironic.<br></div></div></div></div></blockquote><div><br></div><div><div class="gmail_default" style="font-family:monospace,monospace">For nova/neutron it would be to disable the service/agent:</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">(overcloud) $ openstack compute service list</div><font face="monospace, monospace">(overcloud) $ openstack compute service set [hostname] nova-compute --disable</font><br></div><div><br></div><div><span style="font-family:monospace,monospace"><span class="gmail_default" style="font-family:monospace,monospace"></span>(overcloud) $ openstack network agent list</span><span style="font-family:monospace,monospace"><br></span></div><div><div class="gmail_default"><div class="gmail_default"><span class="gmail_default" style="font-family:monospace,monospace"></span><span style="font-family:monospace,monospace">(overcloud) $ </span><font face="monospace, monospace">openstack network agent set --disable </font><span style="font-family:monospace,monospace">[openvswitch-agent-id]</span><br></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">After service is stopped/or host delete</div><div class="gmail_default" style="font-family:monospace,monospace">(overcloud) $ openstack compute service delete [service-id]</div><div class="gmail_default" style="font-family:monospace,monospace">(overcloud) $ openstack network agent delete [openvswitch-agent-id]<br></div></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">Regards,</div><div class="gmail_default" style="font-family:monospace,monospace">Martin</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">[1] <a href="https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/14/html-single/director_installation_and_usage/index#removing-compute-nodes" style="font-family:Arial,Helvetica,sans-serif">https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/14/html-single/director_installation_and_usage/index#removing-compute-nodes</a></div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div></div><div><br></div><div>Prototype: <a href="https://review.openstack.org/#/q/topic:bp/scale-down-tasks+(status:open+OR+status:merged)" target="_blank">https://review.openstack.org/#/q/topic:bp/scale-down-tasks+(status:open+OR+status:merged)</a></div><div><br></div><div>Thanks a lot,<br></div><div>-- <br><div dir="ltr" class="gmail-m_-1863269573197089044gmail_signature"><div dir="ltr">Emilien Macchi<br></div></div></div></div></div></div>
</blockquote></div></div></div></div></div></div></div></div>