When you delete the host, all files remain as they were before. Nothing changes.
I have tested this flow today and this is the result:

1) For example i have host installed with ovirtmgmt as my management and i want to change the management network of the cluster or to add to a new cluster with different management network.

2) Follow the steps create another network as the management network(as explained in the mail or feature page). Make sure to check the 'default route' property as well! and make ovirtmgmt as non-required network as well.

3) Remove the host - no need to remove any files or packages

4) Add the host to the new cluster with the new management network.

5) What will happen is that engine will fail to configure the new management network on the host(and become non-operational), but it is easily can be work around by going to the setup networks dialog and switch between the networks, by detaching ovirtmgmt and attaching the new management network. After pressing OK the new management network will be saved on the host and the new network configuration will be applied on the host.

6) After this step host still remain as non-operational, all we need to do now is to 'Activate' the host  and host become operational once again with the new network changes will take place. All files will be update successfully on the host.

- So it looks like we not handling such scenario smoothly and maybe this should be fixed.
If we had a host running with 1 management network and we want to add this host to a different cluster with a different management network engine and vdsm should be able to take care of it during the installation of the host and to successfully make all the required changes.

Dan , Alona what do you think? should we handle such use case? or this is expected?





On Wed, Sep 27, 2017 at 7:24 PM, Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote:


On Wed, Sep 27, 2017 at 4:32 PM, Michael Burman <mburman@redhat.com> wrote:
I was referring to situation in which the host was there before, but you need to re-install it to the new cluster with the new management network.

No package removing is needed at all. Why would you do steps 2-4? no need.
Step 5 should work.

I'm not sure i understand what you mean by ' still I cannot remove the default ovirtmgmt network from that cluster'??
Do you want to detach it from the cluster?
Do you want to remove it from the DC?
Note that you can change the management network role only if the cluster has no hosts in it.



I will try this way.
Normally in my setups the ip on the mgmt network of the host is also the ip corresponding to its hostname
When I delete a host from engine, what happens in relation to its network files in /etc/sysconfig/network-scripts/ directory and the contents of /var/lib/vdsm/ directory and its subdirectories?
 



--

Michael Burman

Quality engineer - rhv network - redhat israel

M: 0545355725     IM: mburman