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.
Login cockpit, create bond through cockpit, configure Bond's IPv4 and IPv6 to other types than the default types. The setting does not take effect and will return to "Automatic" mode immediately.
Version-Release number of selected component (if applicable):
RHVH: rhvh-4.5.0.2-0.20220216.0+1
subscription-manager-cockpit-1.28.25-1.el8.noarch
cockpit-bridge-261-1.el8.x86_64
cockpit-system-261-1.el8.noarch
cockpit-storaged-261-1.el8.noarch
cockpit-ws-261-1.el8.x86_64
cockpit-261-1.el8.x86_64
cockpit-ovirt-dashboard-0.15.1-2.el8ev.noarch
How reproducible:
100%
Steps to Reproduce:
1. Install redhat-virtualization-host-4.5.0-202202161646_8.6
2. Login cockpit via Firefox browser
3. Go to "Networking" -> "Interfaces"
4. Click "Add bond", input bond name, mode and other information
5. Configure the Bond's IPv4 and IPv6 with other types than the default "Automatic"types
6. Click the "Change the settings" button in the "Connection will be lost" dialog that pops up
7. Check Bond's IPv4 and IPv6 types
Actual results:
1. The setting does not take effect and will return to "Automatic" mode immediately.
Expected results:
Configurations for Bond's IPv4 and IPv6 types should take effect
Additional info:
This sounds very similar to bug 2056362. But unlike that, I can actually reproduce it with a bond. (Marius: Just our bog standard `./vm-run -s cockpit.socket rhel-8-6` in bots)
I see that NM rolls back to the old connection, even though I clicked on "keep connection":
NetworkManager[884]: <info> [1645518404.0318] checkpoint[0x55dbd109dc10]: rollback of /org/freedesktop/NetworkManager/Checkpoint/11
Note that there is a lot of SELinux noise in the logs, due to bug 2055199. But that's unrelated, `setenforce 0` does not change the behaviour.
Marius, can you please have a look?
(In reply to Martin Pitt from comment #1)
> I see that NM rolls back to the old connection, even though I clicked on
> "keep connection":
>
> NetworkManager[884]: <info> [1645518404.0318] checkpoint[0x55dbd109dc10]:
> rollback of /org/freedesktop/NetworkManager/Checkpoint/11
This is expected. The checkpoint is rolled back during the "Restoring connection" phase, and if you click "Keep connection" nothing more will be done. Your changes have been undone and Cockpit is still connected to the server.
The checkpoint is always rolled back before we get the "Connection will be lost" dialog. That dialog then gives you to choice to change settings anyway, without a checkpoint to protect you.
> 7. Check Bond's IPv4 and IPv6 types
How did you check this exactly? Cockpit itself is disconnected at this point and does no longer show correct information. If you wait a bit, the network page will disappear completely and be replaced with a "Disconnected" screen. (There is a "Reconnect" button but that wont work because there is no network connectivity any more.)
If I execute your steps, "nmcli con show bond0" on the machine itself shows the expected configuration.
> Expected results:
> Configurations for Bond's IPv4 and IPv6 types should take effect
They do for me, but Cockpit does not always show them correctly because it has lost connection to the server at this point.
Hmm, this is very likely also a instance of the bug fixed here: https://github.com/cockpit-project/cockpit/pull/17036
In my comments above, I had assumed that the connection will indeed be lost for real and I had only tested those scenarios. But reading the description more closely, the disconnection is probably not expected and the wrong behavior of Cockpit can indeed be explained by https://github.com/cockpit-project/cockpit/pull/17036.
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 (Moderate: cockpit security, 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/RHSA-2022:2008