<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 8, 2018 at 1:57 PM, Edward Haas <span dir="ltr">&lt;<a href="mailto:ehaas@redhat.com" target="_blank">ehaas@redhat.com</a>&gt;</span> wrote:<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"><div><div class="h5">On Mon, Jan 8, 2018 at 1:19 AM, Gianluca Cecchi <span dir="ltr">&lt;<a href="mailto:gianluca.cecchi@gmail.com" target="_blank">gianluca.cecchi@gmail.com</a>&gt;</span> wrote:<br><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><div class="m_-1813665837951486241gmail-h5"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 3, 2018 at 12:25 PM, Gianluca Cecchi <span dir="ltr">&lt;<a href="mailto:gianluca.cecchi@gmail.com" target="_blank">gianluca.cecchi@gmail.com</a>&gt;</span> wrote:<br><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"><span><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 3, 2018 at 11:56 AM, Marcin Mirecki <span dir="ltr">&lt;<a href="mailto:mmirecki@redhat.com" target="_blank">mmirecki@redhat.com</a>&gt;</span> wrote:<br><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">Hello Gianluca,<div><br></div><div>Add/remove would probably be the simplest way to go.</div><div>The procedure would be:</div><div>- take host to maintenance</div><div>- remove host</div><div>- use vdsm-cient to change the ip of ovirtmgmt</div><div>- add the host again</div><div><br></div><div>Just changing the dns configuration sounds quite interesting.</div><div>I suppose the host certificates should be ok if the host was added by hostname.<br></div><div><br></div></div></blockquote><div> </div></div></div></span><div class="gmail_extra">I&#39;ve already done something similar in September; see here the full thread:</div><div class="gmail_extra"><a href="http://lists.ovirt.org/pipermail/users/2017-September/084411.html" target="_blank">http://lists.ovirt.org/piperma<wbr>il/users/2017-September/084411<wbr>.html</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">In that case it was more complicated in the sense that vlan change was involved for ovirtmgmt and I passed through a new cluster.</div><div class="gmail_extra">Now it is more simple, but while on September case the hosts were plain CentOS hosts, now they are ovirt-node-ng, so my manual ifcfg files manipulation doesn&#39;t fit.</div><div class="gmail_extra"><br></div><div class="gmail_extra">If vdsm-client command is ok I presume it will be something of type:</div><div class="gmail_extra"><br></div><div class="gmail_extra"># vdsm-client Host setupNetworks  <br></div><div class="gmail_extra"><div class="gmail_extra">vdsm-client: Command Host.setupNetworks with args {} failed:</div><div class="gmail_extra">(code=-32603, message=Attempt to call function: &lt;bound method Global.setupNetworks of &lt;API.Global object at 0x2279f10&gt;&gt; with arguments: () error: setupNetworks() takes exactly 4 arguments (1 given))</div><div class="gmail_extra"># </div><div><br></div></div><div class="gmail_extra">with some sort of json configuration, but it is not clear to me what to give</div><div class="gmail_extra"><br></div><div class="gmail_extra">Can I do the change of ip from the host web cockpit mgmt interface? I set/change the ip and then eventually reboot the server to see if it works?</div><span class="m_-1813665837951486241gmail-m_-511917203588537429HOEnZb"><font color="#888888"><div class="gmail_extra"><br></div><div class="gmail_extra">Gianluca</div></font></span></div>
</blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div></div><div class="gmail_extra">hello,</div><div class="gmail_extra">any update on how to give JSON representation (or other way) to use vdsm-client and change ip/gateway of ovirt-ng node?</div><div class="gmail_extra">Thanks</div></div></blockquote><div><br></div></div></div><div>How to use vdsm-client in general: Just check its man page.<br></div><div>You will need to fill up the existing management network details in the json format, replacing just the IP address.<br></div><div>The main concern here is, that if you missed something, it may be removed.<br></div><div></div><div>You should follow <a href="https://access.redhat.com/solutions/168983" target="_blank">https://access.redhat.com/<wbr>solutions/168983</a> for full details.<br><br></div><div>I would suggest using a different approach, although I have not tested it myself:<br></div><div>Edit the persisted relevant configuration files: /var/lib/vdsm/persistence/<wbr>netconf<br></div><div>(Change the IP there, without touching the other stuff)<br></div><div>Then, reboot the host.. It should identify that the existing config is not in sync with the persisted one and a reconfig will be issued automatically.<br></div><div>The risk here is that the config will not successfully get applied, so make sure you save the previous version.<br></div><div></div><div><br></div><div>Thanks,<br></div><div>Edy.<br></div></div></div></div></blockquote><div><br></div><div>Just to avoid misunderstanding here, all these hacks are not officially supported. It is not recommended to attempt them on a production unit.<br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><span class=""><div><br> <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"><span class="m_-1813665837951486241gmail-HOEnZb"><font color="#888888"><div class="gmail_extra"><br></div><div class="gmail_extra">Gianluca<br></div></font></span></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
<br></blockquote></span></div><br></div></div>
</blockquote></div><br></div></div>