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.

Bug 1598625

Summary: Suggest to remove/disable the item which has been activated from "Add services" windows list in firewall page.
Product: Red Hat Enterprise Linux 7 Reporter: Wei Wang <weiwang>
Component: cockpitAssignee: Martin Pitt <mpitt>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.5CC: anilsson, bugs, cshao, huzhao, mpitt, qiyuan, rbarry, tbowling, weiwang, yaniwang, ycui
Target Milestone: pre-dev-freezeKeywords: Rebase
Target Release: 7.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: Rebase
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-06 13:11:28 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:    
Bug Blocks: 1657383    
Attachments:
Description Flags
recording of the current behavior none

Description Wei Wang 2018-07-06 03:08:23 UTC
Description of problem:
Suggest to remove/disable the item which has been activated from "Add services" windows list in firewall page. Although it will display a warning when selecting the activated services, but it is redundant operation to user and not intuitive.

Version-Release number of selected component (if applicable):
rhvh-4.2.5.0-0.20180702.0
cockpit-system-169-1.el7.noarch
cockpit-ws-169-1.el7.x86_64
cockpit-dashboard-169-1.el7.x86_64
cockpit-ovirt-dashboard-0.11.29-1.el7ev.noarch
cockpit-169-1.el7.x86_64
cockpit-machines-ovirt-169-1.el7.noarch
cockpit-bridge-169-1.el7.x86_64
cockpit-storaged-169-1.el7.noarch
imgbased-1.0.21-1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Clean install rhvh-4.2.5.0-0.20180702.0
2. Login to cockpit WebUI with root account
3. Go to firewall page in networking
4. Active one service from "Add services" window list
5. re-do step 4.
 
Actual results:
The activated service still list and enabled.

Expected results:
Suggest to remove/disable the item which has been activated.

Additional info:

Comment 2 Martin Pitt 2018-08-03 13:21:50 UTC
Andreas, I think you did the firewall page. Can you please comment here?

Comment 3 Andreas Nilsson 2018-08-03 14:04:54 UTC
Created attachment 1473014 [details]
recording of the current behavior

Comment 4 Andreas Nilsson 2018-08-03 14:07:31 UTC
Adding should be done via the dialog, removing via the page. Otherwise you'll end up with a kind of weird design where checking the box and hitting "Add Service" will actually remove the service.

I do think we should try to avoid hitting the error though. We can do it by hiding already activated items in the list in the dialog.

Comment 5 Martin Pitt 2018-08-03 16:33:11 UTC
Yes, agreed. Thanks Andreas! Reassigning back to default assignee, to keep this on my radar. Something for post dev-freeze.

Comment 7 Martin Pitt 2019-03-15 16:57:07 UTC
This isn't really a feature, it's a bug fix.

Comment 12 errata-xmlrpc 2019-08-06 13:11:28 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, 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/RHBA-2019:2262