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 2011335

Summary: [Machines] Oops in VM's "Network Interface": TypeError: Cannot read properties of undefined (reading 'name')
Product: Red Hat Enterprise Linux 8 Reporter: Ulhas Surse <usurse>
Component: cockpit-appstreamAssignee: Simon Kobyda <skobyda>
Status: CLOSED MIGRATED QA Contact: Xianghua Chen <xchen>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.4CC: kkoukiou, mmarusak, sbarcomb, yunyang
Target Milestone: rcKeywords: MigratedToJIRA
Target Release: ---Flags: pm-rhel: mirror+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-15 12:56:14 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:

Description Ulhas Surse 2021-10-06 12:57:16 UTC
Description of problem:
- Edit or new network configuration in guest's interfaces gives the Ooops! error in cockpit. 
- As a result, the VM and the host both hangs and had to reboot. 

Version-Release number of selected component (if applicable):
RHEL 8.2/8.4
KVM host

How reproducible:
Always

Steps to Reproduce:
1. Configure a KVM environment. 
2. Access cockpit interface in any browser. Configure new network interface on a bridge or remove or edit any configuration on KVM cockpit for VM.  
3. The host will be hung

Actual results:
KVM host hangs after changing network configuration from the cockpit. 

Expected results:
Host should not hang. 

Additional info:
Tried with RHVH 4.4.8 and RHVH 4.4.7 (RHEL 8.4) versions.

Comment 3 Martin Pitt 2021-10-07 13:13:24 UTC
Hello Ulhas,

I am afraid this is too vague for investigating. Can you please 

 - describe exactly what you did
 - make a screenshot right before you press the action button that causes the crash, and attach the screenshot here, and open the developer console (Ctrl+Shift+J)
 - after the oops happens: please copy all output from the developer console here; if you still see anything more interesting than a blank page, please add another screenshot.

Which browser are you using? Which RHEL version and architecture?

Thanks!

Comment 4 Ulhas Surse 2021-10-07 14:16:30 UTC
(In reply to Martin Pitt from comment #3)
> Hello Ulhas,
> 
> I am afraid this is too vague for investigating. Can you please 
> 
>  - describe exactly what you did
>  - make a screenshot right before you press the action button that causes
> the crash, and attach the screenshot here, and open the developer console
> (Ctrl+Shift+J)
>  - after the oops happens: please copy all output from the developer console
> here; if you still see anything more interesting than a blank page, please
> add another screenshot.
> 
> Which browser are you using? Which RHEL version and architecture?
> 
> Thanks!

Hi Martin,

The server I was testing crashed after this and i had to rebuild that KVM guest (nested VM) to keep the environment running. This was my test lab env. 
So basically, from the cockpit of KVM host, try to edit any network configuration (try to add or modify the network of the VMs) the Oops page will be displayed. 
I will attach screenshots.

Comment 6 Martin Pitt 2021-10-08 04:34:37 UTC
Thanks! So this is really the "Virtual Machines" page, not the "Networking" one. Can you please still check `rpm -q cockpit-system cockpit-machines`?

Katerina: The stack trace is hard to decipher (due to minimized code), but it seems to me that this crashes somewhere here:
https://github.com/cockpit-project/cockpit/blob/211.3/pkg/machines/reducers.js#L112
That part of the code has not changed significantly, but of course the question is what actually called interfaces()/networks() with that invalid network interface. Any ideas for debugging/reproducing?

Comment 7 Katerina Koukiou 2021-10-08 07:53:34 UTC
In order to reproduce the crash it would be very useful to add here as attachment the XML files of the VMs on your system. (So for each VM virsh -c qemu:///$CONNECTION_NAME dumpxml $VM_NAME > $VM_NAME.xml, or copy them from /etc/libvirt/qemu/ directory if these are on system connection)

Comment 9 Ulhas Surse 2021-12-23 11:26:32 UTC
One more observation is to set the locale from cockpit to "it_IT.UTF-8" and tried to configure the network.

Comment 11 RHEL Program Management 2023-09-15 12:54:26 UTC
Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug.

Comment 12 RHEL Program Management 2023-09-15 12:56:14 UTC
This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there.

Due to differences in account names between systems, some fields were not replicated.  Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information.

To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer.  You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like:

"Bugzilla Bug" = 1234567

In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information.

Comment 13 Red Hat Bugzilla 2024-01-14 04:25:04 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days