Bug 1832966

Summary: Automate creation of gluster logical network
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: SATHEESARAN <sasundar>
Component: rhhiAssignee: Gobinda Das <godas>
Status: CLOSED ERRATA QA Contact: SATHEESARAN <sasundar>
Severity: high Docs Contact:
Priority: high    
Version: rhhiv-1.8CC: godas, lbailey, rhs-bugs
Target Milestone: ---   
Target Release: RHHI-V 1.8   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gluster-ansible-roles-1.0.5-12.el8rhgs Doc Type: Enhancement
Doc Text:
New playbook and inventory examples are available to create the gluster logical network as part of Red Hat Hyperconverged Infrastructure for Virtualization deployment.
Story Points: ---
Clone Of:
: 1835574 (view as bug list) Environment:
Last Closed: 2020-08-04 14:52:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1835574    
Bug Blocks: 1779977    

Description SATHEESARAN 2020-05-07 14:29:24 UTC
Description of problem:
-----------------------
Creation of RHV logical network for gluster traffic is not automated and it stops with adding the additional hosts to the cluster.

In addition to adding the additional hosts to the cluster, there should also be a automated task that creates the gluster logical network and attach that network to all the hosts, to the network interface connected to gluster network

Only when there are dedicated networks for Storage and ovrtmgmt ( Remember cockpit plugin has a option to use the same network for both storage and public network), the following task should get kicked in.

1. Create a logical network with following properties:
           - Non VM network
           - VM Migration roles
           - Gluster role
           - Not required
           - Attached to 'Default' data center and 'Default' cluster

2. On all the hosts, attach this logical network to interface that's used for gluster network

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
RHHI-V 1.8

How reproducible:
-----------------
Always

Steps to Reproduce:
--------------------
1. Complete RHHI-V deployment from web console ( cockpit )

Actual results:
---------------
Logical network for gluster traffic is not created, and users had to create it manually

Expected results:
-----------------
Logical network for gluster traffic should be created automatically and attached to the corresponding network interface used for gluster traffic on all the hosts

Comment 3 SATHEESARAN 2020-06-06 11:31:24 UTC
Verified with gluster-ansible-roles-1.0.5-12.el8rhgs

1. The playbook and inventory to create the gluster network is available
[root@ ~]# ls /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/gluster_network_inventory.yml
/etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/gluster_network_inventory.yml

[root@ ~]# ls /etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/tasks/gluster_network_setup.yml 
/etc/ansible/roles/gluster.ansible/playbooks/hc-ansible-deployment/tasks/gluster_network_setup.yml

2. Run the playbook post RHHI-V deployment
3. New logical network is created and attached to all the hosts

Comment 8 errata-xmlrpc 2020-08-04 14:52:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (RHHI for Virtualization 1.8 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:3314