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 1946874 - NIC's ON/OFF button cannot be switched
Summary: NIC's ON/OFF button cannot be switched
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cockpit
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: 8.5
Assignee: Martin Pitt
QA Contact: peyu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-07 06:07 UTC by peyu
Modified: 2021-11-10 07:19 UTC (History)
15 users (show)

Fixed In Version: cockpit-242-1.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 19:33:27 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot (114.92 KB, image/png)
2021-04-07 06:07 UTC, peyu
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4380 0 None None None 2021-11-09 19:33:40 UTC

Description peyu 2021-04-07 06:07:02 UTC
Created attachment 1769756 [details]
screenshot

Description of problem:
Login cockpit, click to enter the page of a NIC, click the "ON/OFF" button(the switch-toggle), the up state can be switched to the inactive state, but the inactive state cannot be switched to up.

Version-Release number of selected component (if applicable):
rhvh-4.4.6.1-0.20210402.0
cockpit-bridge-238.2-1.el8.x86_64
subscription-manager-cockpit-1.28.13-2.el8.noarch
cockpit-ovirt-dashboard-0.14.20-1.el8ev.noarch
cockpit-storaged-238.2-1.el8.noarch
cockpit-238.2-1.el8.x86_64
cockpit-ws-238.2-1.el8.x86_64
cockpit-system-238.2-1.el8.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install redhat-virtualization-host-4.4.6-20210402.2.el8_4.x86_64
2. Login cockpit in firefox browser
3. Go to "Networking" -> "Interfaces"
4. Click a NIC to enter its configuration page
5. Click the "ON/OFF" button(the switch-toggle)

Actual results:
If the NIC is up, it can be switched to the inactive state, and then it cannot be switched back to the up state.

Expected results:
NIC in inactive state can be switched to up state.

Additional info:

Comment 2 Martin Pitt 2021-04-14 05:20:40 UTC
Thanks for the report! I can reproduce this. How embarrassing..

Comment 3 Martin Pitt 2021-04-14 06:24:03 UTC
Sent a fix: https://github.com/cockpit-project/cockpit/pull/15685

Comment 6 peyu 2021-04-23 01:50:15 UTC
Pending on new buid of cockpit-242-1.el8 to verify this bug.

Comment 8 Sandro Bonazzola 2021-05-20 07:40:49 UTC
can we get this backported to 8.4.z?

Comment 9 peyu 2021-05-20 08:54:52 UTC
Since there is no new RHVH build based on rhel8.5 and cockpit-242-1.el8, QE tried to verify this bug by manually installing cockpit-242-1.el8.x86_64.rpm on rhvh-4.4.6.1-0.20210505.0+1
But this bug can still be reproduced.

Test steps:
1. Install redhat-virtualization-host-4.4.6-20210505.0.el8_4
2. Download cockpit-242-1.el8.x86_64.rpm and install 
   # rpm -Uvh cockpit-242-1.el8.x86_64.rpm
3. Reboot rhvh
4. Login to cockpit and check the "ON/OFF" button(the switch-toggle)

Test results:
NIC in inactive state can not be switched to up by clicking the "ON/OFF" button.

Comment 10 Martin Pitt 2021-05-20 11:04:24 UTC
peyu: You'll need cockpit-system RPM to test this; cockpit.rpm is just a metapackage, updating only that one will change nothing.

@Sandro: Technically principle yes, we just usually do this for high-profile bugs only. This is a BaseOS package, so there are no AppStream releases (8.4.1), and this this isn't the kind of data loss/security bug that easily gets a z-stream (8.4.0.z) approval.

Comment 11 peyu 2021-05-21 02:12:38 UTC
Thanks Martin. QE verified this bug by manually installing cockpit-242-1.el8 on rhvh-4.4.6.1-0.20210505.0+1

Test steps:
1. Install redhat-virtualization-host-4.4.6-20210505.0.el8_4
2. Download cockpit-242-1.el8 and install 
   # curl -O http://download.eng.bos.redhat.com/brewroot/vol/rhel-8/packages/cockpit/242/1.el8/x86_64/cockpit-242-1.el8.x86_64.rpm
   # curl -O http://download.eng.bos.redhat.com/brewroot/vol/rhel-8/packages/cockpit/242/1.el8/noarch/cockpit-system-242-1.el8.noarch.rpm
   # curl -O http://download.eng.bos.redhat.com/brewroot/vol/rhel-8/packages/cockpit/242/1.el8/x86_64/cockpit-bridge-242-1.el8.x86_64.rpm
   # rpm -Uvh cockpit-*
3. Reboot rhvh
4. Login to cockpit and check the "ON/OFF" button(the switch-toggle)

Test results:
NIC in inactive state can be switched to up by clicking the "ON/OFF" button.

So move bug Status to "VERIFIED".

Comment 13 errata-xmlrpc 2021-11-09 19:33:27 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 (cockpit 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/RHBA-2021:4380


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