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 1551615

Summary: Networking: Gracefully handle NM not running
Product: Red Hat Enterprise Linux 7 Reporter: Renaud Métrich <rmetrich>
Component: cockpitAssignee: Martin Pitt <mpitt>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team-automation>
Severity: low Docs Contact:
Priority: low    
Version: 7.4CC: rmetrich, tbowling
Target Milestone: rcKeywords: Rebase
Target Release: 7.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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    

Description Renaud Métrich 2018-03-05 14:25:19 UTC
Description of problem:

When clicking on the Networking button, I get a page with no dynamic data being printed (interface names, Sending/Receiving graphs, etc).
In the JS console, I can see the following Warning:

interfaces.js:222 
ue {problem: "not-found", name: null, message: "not-found", toString: function}
e	@	interfaces.js:222
P	@	cockpit.js:1283
(anonymous)	@	cockpit.js:1296
j	@	cockpit.js:1174


Version-Release number of selected component (if applicable):

# rpm -qa cockpit*
cockpit-debuginfo-157-1.el7.x86_64
cockpit-bridge-138-10.el7_4.x86_64
cockpit-system-138-10.el7_4.noarch
cockpit-138-10.el7_4.x86_64
cockpit-pcp-157-1.el7.x86_64
cockpit-ws-138-10.el7_4.x86_64


How reproducible:

Always


Steps to Reproduce:
1. Set a KVM RHEL7.4 VM with default NAT interface and cockpit

  # yum -y install cockpit cockpit-pcp
  # systemctl enable cockpit.socket --now

2. Connect to cockpit interface and browse to "Networking"

Comment 2 Renaud Métrich 2018-03-05 14:27:49 UTC
May be related: after issue appears, clicking on "Add Bond" or "Add VLAN" fails in error also:

Uncaught TypeError: Cannot read property 'split' of undefined
    at n (interfaces.js:1296)
    at F (interfaces.js:1299)
    at l.$.at_least_version (interfaces.js:1314)
    at j.update (interfaces.js:3630)
    at j.enter (interfaces.js:3522)
    at HTMLDivElement.<anonymous> (interfaces.js:4494)
    at HTMLDivElement.dispatch (jquery.js:4618)
    at HTMLDivElement.m.handle (jquery.js:4293)
    at Object.trigger (jquery.js:4548)
    at HTMLDivElement.<anonymous> (jquery.js:5164)
n @ interfaces.js:1296
F @ interfaces.js:1299
$.at_least_version @ interfaces.js:1314
update @ interfaces.js:3630
enter @ interfaces.js:3522
(anonymous) @ interfaces.js:4494
dispatch @ jquery.js:4618
m.handle @ jquery.js:4293
trigger @ jquery.js:4548
(anonymous) @ jquery.js:5164
each @ jquery.js:377
each @ jquery.js:136
trigger @ jquery.js:5161
t.show @ jquery.js:10591
(anonymous) @ jquery.js:10851
each @ jquery.js:377
each @ jquery.js:136
n @ jquery.js:10842
add_bond @ interfaces.js:1779
o @ jquery.js:529
(anonymous) @ interfaces.js:1338
P @ cockpit.js:1283
(anonymous) @ cockpit.js:1296
j @ cockpit.js:1174


interfaces.js:64 Uncaught TypeError: Cannot read property 'choice' of undefined
    at r (interfaces.js:64)
    at q.update (interfaces.js:4280)
    at q.enter (interfaces.js:4231)
    at HTMLDivElement.<anonymous> (interfaces.js:4494)
    at HTMLDivElement.dispatch (jquery.js:4618)
    at HTMLDivElement.m.handle (jquery.js:4293)
    at Object.trigger (jquery.js:4548)
    at HTMLDivElement.<anonymous> (jquery.js:5164)
    at Function.each (jquery.js:377)
    at p.fn.init.each (jquery.js:136)
r @ interfaces.js:64
update @ interfaces.js:4280
enter @ interfaces.js:4231
(anonymous) @ interfaces.js:4494
dispatch @ jquery.js:4618
m.handle @ jquery.js:4293
trigger @ jquery.js:4548
(anonymous) @ jquery.js:5164
each @ jquery.js:377
each @ jquery.js:136
trigger @ jquery.js:5161
t.show @ jquery.js:10591
(anonymous) @ jquery.js:10851
each @ jquery.js:377
each @ jquery.js:136
n @ jquery.js:10842
add_vlan @ interfaces.js:1874
o @ jquery.js:529
(anonymous) @ interfaces.js:1338
P @ cockpit.js:1283
(anonymous) @ cockpit.js:1296
j @ cockpit.js:1174

Comment 3 Martin Pitt 2018-03-28 14:40:58 UTC
"not-found" is the typical error message from a nonexisting D-Bus service. Do you have NetworkManager installed and running? I. e. what does "nmcli g" show? If that fails, can you try to "systemctl start NetworkManager"? Does it work better then?

If that's it, then we need to teach the page to handle a missing NetworkManager better. If not, we'll need to debug deeper.

Thanks!

Comment 4 Renaud Métrich 2018-04-09 11:42:38 UTC
I had no network manager active (disabled it in my VM).

Comment 5 Martin Pitt 2018-04-09 12:26:15 UTC
Thanks for confirming! Retitling accordingly.

Comment 6 Martin Pitt 2018-05-29 13:14:24 UTC
I started to work on a fix, and discuss solutions at https://github.com/cockpit-project/cockpit/pull/9264

Comment 10 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