Bug 1345867

Summary: GNetworkMonitor always reports off-line mode after upgrade from rhel7.1 to rhel7.2.
Product: Red Hat Enterprise Linux 7 Reporter: Ashish Shah <ashishks>
Component: glib2Assignee: Colin Walters <walters>
Status: CLOSED WONTFIX QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.4CC: ashishks, imcleod, jkoten, mclasen, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-15 07:42:07 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: 1420851    
Attachments:
Description Flags
evolution logs with CAMEL_DEBUG=all none

Description Ashish Shah 2016-06-13 10:49:31 UTC
Created attachment 1167423 [details]
evolution logs with CAMEL_DEBUG=all

Description of problem:

After upgrade from 7.1 to 7.2, Evolution cannot create any connection anymore.
There is no network connectivity issue on affected rhel7.2 client system. 
Also the servers are accessible from rhel7.1 clients, hence no server side problem as well. 
Disabling NetworkManager, did not help.

Below is the output generated on console..

$ evolution --force-online
evolution-shell-Message: Network disconnected.  Forced offline.
evolution-shell-Message: Connection established.  Going online.
openjdk version "1.8.0_71"
OpenJDK Runtime Environment (build 1.8.0_71-b15)
OpenJDK 64-Bit Server VM (build 25.71-b15, mixed mode)

(evolution:21204): GLib-GObject-WARNING **: g_object_weak_unref: couldn't find weak ref 0x7fef7766bab0(0x94f000)

Option to switch to online mode in evolution window is grayed out.

Attached is output with CAMEL_DEBUG=all


Version-Release number of selected component (if applicable):
evolution-3.12.11-15.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. RHEL7.2 system with no internet connection
route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        0.0.0.0         255.255.255.0   U     100    0        0 eno1
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0


2. Start evolution (configured to use internal servers)

Actual results:
evolution always in offline mode.

Expected results:
evolution should start in online mode

Additional info:
Same is the case with empathy, will be filing another bug for it.

Comment 5 Milan Crha 2016-06-13 14:54:14 UTC
Please note this is not the fault of the evolution, it's in the GNetworkMonitor, thus even lower in the stack. I'd rather reassign this to glib2, to have the fix on one central place, rather than several applications (you named Empathy) trying to workaround the issue.

I tried to address this upstream recently, see commits:
https://git.gnome.org/browse/evolution-data-server/commit/?id=84bd48b7a91d
https://git.gnome.org/browse/evolution-data-server/commit/?id=c66ddd940c1e
https://git.gnome.org/browse/evolution/commit/?id=b56e474a03a179bcb303
https://git.gnome.org/browse/evolution-mapi/commit/?id=b3a682e44eef6513aba

These add new UI and translatable strings on the evolution side.

Comment 6 Milan Crha 2016-08-23 14:15:01 UTC
I'm reassigning this to glib2, per comment #5.

Comment 7 Colin Walters 2016-08-24 20:28:14 UTC
Hm, this is a regression from 7.1 to 7.2?  Can you verify whether or not the 7.3 rebase helps here?

https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=485140

It seems we now have the networkmanager backend for example in 7.3.

Comment 8 Colin Walters 2016-08-24 20:37:49 UTC
I just quickly tested the linked nm-monitor test case with `docker run --rm -ti --net=host rhel7 bash` and 7.2, and things seemed OK:

# rpm -q glib2
glib2-2.42.2-5.el7.x86_64
# env GIO_USE_NETWORK_MONITOR=base /srv/walters/tmp/nm-monitor 
[2016-08-24T20:33:24.365369Z] network_available_cb: available:1
[2016-08-24T20:33:24.410402Z] network_available_cb: www.gnome.org:80 reachable:1 
# env GIO_USE_NETWORK_MONITOR=netlink /srv/walters/tmp/nm-monitor 
[2016-08-24T20:33:27.411834Z] network_available_cb: available:1
[2016-08-24T20:33:27.455564Z] network_available_cb: www.gnome.org:80 reachable:1 
# env GIO_USE_NETWORK_MONITOR=networkmanager /srv/walters/tmp/nm-monitor 
(process:24): GLib-GIO-WARNING **: Can't find module 'networkmanager' specified in GIO_USE_NETWORK_MONITOR
[2016-08-24T20:33:31.011535Z] network_available_cb: available:1
[2016-08-24T20:33:31.055791Z] network_available_cb: www.gnome.org:80 reachable:1 

I do notice a possible relevant fix upstream here too: https://bugzilla.gnome.org/show_bug.cgi?id=694181

Comment 10 Colin Walters 2016-09-14 20:59:41 UTC
This needs verification for whether the bug still exists in 7.3.

Comment 12 Colin Walters 2016-09-20 21:43:50 UTC
May or may not be a regression, but regardless the first thing to do now is to verify 7.3.

Comment 15 RHEL Program Management 2020-12-15 07:42:07 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.