Bug 1551615
| Summary: | Networking: Gracefully handle NM not running | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Renaud Métrich <rmetrich> |
| Component: | cockpit | Assignee: | Martin Pitt <mpitt> |
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 7.4 | CC: | rmetrich, tbowling |
| Target Milestone: | rc | Keywords: | 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 | ||
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
"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! I had no network manager active (disabled it in my VM). Thanks for confirming! Retitling accordingly. I started to work on a fix, and discuss solutions at https://github.com/cockpit-project/cockpit/pull/9264 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 |
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"