Bug 1528284 - Fail host deploy process if any firewalld service isn't found, by default open all predefined firewalld services for specific cluster
Summary: Fail host deploy process if any firewalld service isn't found, by default ope...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Host-Deploy
Version: future
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.2.1
: ---
Assignee: Ondra Machacek
QA Contact: Pavol Brilla
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-21 12:51 UTC by Ondra Machacek
Modified: 2018-02-12 11:54 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-4.2.1.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-12 11:54:59 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 85675 0 'None' MERGED core: Don't ignore errors during firewalld setup 2020-11-12 09:13:26 UTC

Description Ondra Machacek 2017-12-21 12:51:59 UTC
By default we should open all ports for the specific cluster (gluster/virt) and if any predefined service isn't found ( is not provided by firewalld or specific package), we should fail the host deploy process.

To test:
Check that all relevant services for cluster have opened port - enabled firewalld service. Check that for gluster/virt cluster.

Comment 1 Pavol Brilla 2018-01-29 12:45:51 UTC
Failing on missing service 'cockpit' - gracefull error - verified

2018-01-29 13:42:24,020 p=7576 u=ovirt |  TASK [ovirt-host-deploy-firewalld : Enable firewalld rules] ********************
2018-01-29 13:42:25,528 p=7576 u=ovirt |  failed: [10.37.137.139] (item={u'service': u'cockpit'}) => {
    "changed": false, 
    "item": {
        "service": "cockpit"
    }
}

MSG:

ERROR: Exception caught: org.fedoraproject.FirewallD1.Exception: INVALID_SERVICE: 'cockpit' not among existing services Permanent and Non-Permanent(immediate) operation, Services are defined by port/tcp relationship and named as they are in /etc/services (on most systems)

Comment 2 Pavol Brilla 2018-01-29 14:13:15 UTC
virt:
# firewall-cmd --zone=public --list-all
...
  services: dhcpv6-client ssh cockpit libvirt-tls snmp vdsm ovirt-imageio ovirt-vmconsole
  ports: 22/tcp 6081/udp
...

gluster:
# firewall-cmd --zone=public --list-all
...
  services: ssh dhcpv6-client cockpit libvirt-tls snmp vdsm ovirt-imageio ovirt-vmconsole ctdb glusterfs nfs nrpe ovirt-storageconsole rpc-bind samba
  ports: 22/tcp 6081/udp 8080/tcp 963/udp 965/tcp
...

Comment 3 Sandro Bonazzola 2018-02-12 11:54:59 UTC
This bugzilla is included in oVirt 4.2.1 release, published on Feb 12th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.1 release, it has been closed with a resolution of CURRENT RELEASE.

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


Note You need to log in before you can comment on or make changes to this bug.