Renaming or deleting ovirtmgmt

Hello, I notice that in a cluster I can create a new network and then select it as the Management network, but at the same time the default "ovirtmgmt" logical network in "Manage Networks" is always checked as both as "Assign" and "Required" and also grayed so that I cannot change anything of it... and any host in this cluster must have ovirtmgmt even if it doesn't use it at all.. Is there any RFE to change this model? So for example to be able to change its name or delete it after we have defined a new network as management one. It seems something similar to the concept of the"Default" DC that now we can finally rename and /or delete Gianluca

Hello Gianluca, This is not the right flow. If you would like to have any other network in your cluster as the management network, then you need to create it as the management network of the cluster and then add hosts to the cluster, then the new network which was defined as the management network of the cluster will be the management network of the host/s in the cluster. The correct flow will be : 1) Create new network for example - 'net1-mgmt' 2) Give 'net1-mgmt' a management role via manage networks, it can be done via networks>clusters flow or via Cluster>logical networks flow(note that management network must be required and attached) 3) Create cluster and choose 'net1-mgmt' as the management network of the cluster 3) Add/install the host in the cluster See also - https://www.ovirt.org/develop/release-management/features/network/management... It's a network feature since 3.6 Cheers) On Wed, Sep 27, 2017 at 12:27 PM, Gianluca Cecchi <gianluca.cecchi@gmail.com
wrote:
Hello, I notice that in a cluster I can create a new network and then select it as the Management network, but at the same time the default "ovirtmgmt" logical network in "Manage Networks" is always checked as both as "Assign" and "Required" and also grayed so that I cannot change anything of it... and any host in this cluster must have ovirtmgmt even if it doesn't use it at all..
Is there any RFE to change this model? So for example to be able to change its name or delete it after we have defined a new network as management one. It seems something similar to the concept of the"Default" DC that now we can finally rename and /or delete
Gianluca
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Michael Burman Quality engineer - rhv network - redhat israel Red Hat <https://www.redhat.com> mburman@redhat.com M: 0545355725 IM: mburman <https://red.ht/sig>

On Wed, Sep 27, 2017 at 4:04 PM, Michael Burman <mburman@redhat.com> wrote: > Hello Gianluca, > > This is not the right flow. If you would like to have any other network in > your cluster as the management network, then you need to create it as the > management network of the cluster and then add hosts to the cluster, then > the new network which was defined as the management network of the cluster > will be the management network of the host/s in the cluster. > > The correct flow will be : > 1) Create new network for example - 'net1-mgmt' > 2) Give 'net1-mgmt' a management role via manage networks, it can be done > via networks>clusters flow or via Cluster>logical networks flow(note that > management network must be required and attached) > 3) Create cluster and choose 'net1-mgmt' as the management network of the > cluster > 3) Add/install the host in the cluster > > See also - https://www.ovirt.org/develop/release-management/features/ > network/management-network-as-a-role/ > It's a network feature since 3.6 > > Cheers) > > >> OK. But what if the hosts already existed before? Can I 1) delete host from engine gui 2) remove ovirt packages from host 3) verify also /var/lib/vdsm is removed 4) reboot host and verify all ok as a standalone server 5) add the host to the engine Will step 5) have problems because y host is sort-of-already-known by the engine before? Also, is it expected that if I set another network as mgmt one for a cluster, still I cannot remove the default ovirtmgmt network from that cluster? Thanks Gianluca

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. On Wed, Sep 27, 2017 at 5:16 PM, Gianluca Cecchi <gianluca.cecchi@gmail.com> wrote: > > > On Wed, Sep 27, 2017 at 4:04 PM, Michael Burman <mburman@redhat.com> > wrote: > >> Hello Gianluca, >> >> This is not the right flow. If you would like to have any other network >> in your cluster as the management network, then you need to create it as >> the management network of the cluster and then add hosts to the cluster, >> then the new network which was defined as the management network of the >> cluster will be the management network of the host/s in the cluster. >> >> The correct flow will be : >> 1) Create new network for example - 'net1-mgmt' >> 2) Give 'net1-mgmt' a management role via manage networks, it can be >> done via networks>clusters flow or via Cluster>logical networks flow(note >> that management network must be required and attached) >> 3) Create cluster and choose 'net1-mgmt' as the management network of the >> cluster >> 3) Add/install the host in the cluster >> >> See also - https://www.ovirt.org/develop/release-management/features/ne >> twork/management-network-as-a-role/ >> It's a network feature since 3.6 >> >> Cheers) >> >> >>> > OK. > But what if the hosts already existed before? > Can I > 1) delete host from engine gui > 2) remove ovirt packages from host > 3) verify also /var/lib/vdsm is removed > 4) reboot host and verify all ok as a standalone server > 5) add the host to the engine > Will step 5) have problems because y host is sort-of-already-known by the > engine before? > > Also, is it expected that if I set another network as mgmt one for a > cluster, still I cannot remove the default ovirtmgmt network from that > cluster? > > Thanks > Gianluca > -- Michael Burman Quality engineer - rhv network - redhat israel Red Hat <https://www.redhat.com> mburman@redhat.com M: 0545355725 IM: mburman <https://red.ht/sig>

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?

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 Red Hat <https://www.redhat.com> mburman@redhat.com M: 0545355725 IM: mburman <https://red.ht/sig>

On Thu, Sep 28, 2017 at 3:03 PM, Michael Burman <mburman@redhat.com> wrote:
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?
Pert Horacek recently wrote a vdsm-tool to remove networks from a host that is no longer used by oVirt. https://gerrit.ovirt.org/#/c/79495/ - link to Petr's code. It will be officially available on 4.2.
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
Red Hat
mburman@redhat.com M: 0545355725 IM: mburman <https://red.ht/sig>
participants (3)
-
Alona Kaplan
-
Gianluca Cecchi
-
Michael Burman