Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem: Without adding 9090 port, Cockpit UI can't be accessed.
Version-Release number of selected component (if applicable):
cockpit-system-138-9.el7.noarch
cockpit-storaged-148-1.el7.noarch
cockpit-bridge-138-9.el7.x86_64
cockpit-ovirt-dashboard-0.10.8-2.2.ovirt41.el7ev.noarch
cockpit-ws-138-9.el7.x86_64
kernel-3.10.0-693.2.2.el7.x86_64
How reproducible: 100%
Steps to Reproduce:
1. Install RHEL 7.4 and subscribe RHV repos
2. Install cockpit-ovirt-dashboard:
# yum install cockpit-ovirt-dashboard
3. Enable and start cockpit socket:
# systemctl enable cockpit.socket
# systemctl start cockpit.socket
4. Access Cockpit UI
Actual results:
Can't access Cockpit UI via browser
Expected results:
Should be able to access Cockpit UI via browser
Additional info:
There is workaround:
# firewall-cmd --permanent --add-port=9090/tcp
success
# firewall-cmd --permanent --add-port=9090/udp
success
# firewall-cmd --reload
success
Ideally installing package or enabling service should take of adding port to firewall-policy but it is not happening. Either documentation link (https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.1/html/installation_guide/installing_cockpit_on_linux_hosts) has to be updated with steps or fix in package.
The package cockpit-ws adds
/usr/lib/firewalld/services/cockpit.xml
and then in the post section runs
test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || true
Can you run that command and see if maybe there is an error that the || true suppresses.
So to confirm, if you run `firewall-cmd --reload` it fails? (Please drop the --quiet). Does it show any output without the --quiet?
If that fails, the bug should be reassigned to firewalld.
> # test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet
Note: This doesn't work literally in a shell, as the `{_bindir}` is an rpm macro which is only valid in a spec file and changed during package build. So please just run "firewall-cmd ..." without the `test` command.
Putting needsinfo back. "I don't have that setup with me" sounds like you still have access to it in general? If not, let's just close this bug. Thanks!