Bug 26684 - ipv6 in vnstat/net_monitor isn't there.
Summary: ipv6 in vnstat/net_monitor isn't there.
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2020-05-26 03:17 CEST by james Whitby
Modified: 2020-07-06 22:43 CEST (History)
6 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description james Whitby 2020-05-26 03:17:03 CEST
Install vnstat and net_monitor 
Verify iopv6 is functional ping an ipv6 only site.

Watch monitor, no activity, no info re ipv6, address, route, etc.

I don't know if this is a bug or an enhancement request. 
Nor do I know which package or both it applies to.
Comment 1 Lewis Smith 2020-05-26 22:04:53 CEST
Thanks for reporting this. It is *not* a duplicate of bug 25417, which you helped with.

net_monitor maintained by no-one in particular, so assigning this globally.
However, JoséJ recently updated it, so CC'ing him.
vnstat seems to be in the hands of DavidG, CC'ing.

CC: (none) => geiger.david68210, lists.jjorge
Assignee: bugsquad => pkg-bugs

Comment 2 José Jorge 2020-05-27 09:13:47 CEST
Yes, I have added tcp6 and udp6 connections. I also see the IPv6 DNS server of my system.
As for IPv6 address and route, I think I won't have time to add them, but who knows?
Comment 3 papoteur 2020-05-28 23:11:56 CEST
Hi José,
Thank you for your contribution.
I have disabled IPv6 on my Mageia 7.
I get:
net_monitor -i wlp2s0  
Traceback (most recent call last):
  File "/usr/lib64/python3.7/site-packages/net_monitor/monitor.py", line 335, in get_connections
    with open("/proc/net/%s" % proto) as fd:
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/proc/net/tcp6'
Traceback (most recent call last):
  File "/usr/lib64/python3.7/site-packages/net_monitor/monitor.py", line 335, in get_connections
    with open("/proc/net/%s" % proto) as fd:
FileNotFoundError: [Errno 2] Aucun fichier ou dossier de ce type: '/proc/net/udp6'

CC: (none) => yves.brungard_mageia

Comment 4 papoteur 2020-05-28 23:12:44 CEST
But the program starts and continue to display the graphic.
Comment 5 José Jorge 2020-05-29 12:32:47 CEST
(In reply to papoteur from comment #4)
> But the program starts and continue to display the graphic.

Yes, it should test if the file exists, maybe I can learn a little more python to do that ;-)
Comment 6 papoteur 2020-05-29 12:39:09 CEST
(In reply to José Jorge from comment #5)
> (In reply to papoteur from comment #4)
> > But the program starts and continue to display the graphic.
> 
> Yes, it should test if the file exists, maybe I can learn a little more
> python to do that ;-)

I can have a look
Comment 7 papoteur 2020-05-31 16:57:45 CEST
This is done now, with other cosmetics things.
Traffic enabled is also now detected with new vnstat.
See release 0.28
@José
Can you push it in cauldron then Mageia 7?
Comment 8 José Jorge 2020-05-31 18:14:26 CEST
(In reply to papoteur from comment #7)
> @José
> Can you push it in cauldron then Mageia 7?

Done for cauldron and MGA7. I let you assign  to QA.
Comment 9 papoteur 2020-06-01 08:51:56 CEST
Assigning to QA

net_monitor-0.28-1.mga7

This new release adds monitoring of IPv6 connections.
It fixes also some other things:
- the with of the rate and volume is less variable, thus less window resizing occurs
- the name of ESSID of wireless connection doesn't start with b'
- traffic statistic enabling is detected and a button to acces it it displayed.
- traffic statistic display check the real radio button in relation to the graphic displayed.

Assignee: pkg-bugs => qa-bugs

Comment 10 james Whitby 2020-06-01 14:55:35 CEST
(In reply to papoteur from comment #9)
> Assigning to QA
> 
> net_monitor-0.28-1.mga7
> 
> This new release adds monitoring of IPv6 connections.
> It fixes also some other things:
> - the with of the rate and volume is less variable, thus less window
> resizing occurs
> - the name of ESSID of wireless connection doesn't start with b'
> - traffic statistic enabling is detected and a button to acces it it
> displayed.
> - traffic statistic display check the real radio button in relation to the
> graphic displayed.

Thank you!!!!!
Comment 11 james Whitby 2020-06-08 03:39:32 CEST
With the latest versions of software, I don't see any ipv6 info on main screen.

More importantly, I cannot get accounting to work for a second nic.

E.G.:  I installed cauldron on an old system, It had a 100Mb nic and a wifi. I disabled the nic, used the wifi to install from net.
Accounting works for the wifi.

Changed graphics card and added 1Gb nic.

I had accounting for the wifi, not the nic.
Removed the wfi completely, still no accounting for the nic.

Verified this on a vm, by adding a second nic. disabled the first nic, no accounting available for the second one.

Accounting is "turned on" in the ifcfg for the nic.
It shows up in net monitor, just no accounting.
Comment 12 José Jorge 2020-06-08 08:12:02 CEST
(In reply to james Whitby from comment #11)
> With the latest versions of software, I don't see any ipv6 info on main
> screen.

Yes, there is still no IPv6 address. Only the DNS servers appear, if you have IPv6 ones.

> 
> More importantly, I cannot get accounting to work for a second nic.
> 

Did you reboot the system? What gives the 'vnstat' cli?
Comment 13 james Whitby 2020-06-08 16:00:41 CEST
(In reply to José Jorge from comment #12)
> (In reply to james Whitby from comment #11)
> > With the latest versions of software, I don't see any ipv6 info on main
> > screen.
> 
> Yes, there is still no IPv6 address. Only the DNS servers appear, if you
> have IPv6 ones.
> 
> > 
> > More importantly, I cannot get accounting to work for a second nic.
> > 
> 
> Did you reboot the system? What gives the 'vnstat' cli?

Yes, it has been rebooted several times. 
Vnstat shows nothing for the second nic (enp0s8). 

In network manager:
disconnect 1st nic ( enp0s3 ).
connect 2nd nic ( enp0s8 ).
Reboot.
vnstat shows enp0s3 only, enp0s8 is active.
Comment 14 José Jorge 2020-06-08 16:26:55 CEST
(In reply to james Whitby from comment #13)
> (In reply to José Jorge from comment #12)
> > (In reply to james Whitby from comment #11)
> > > With the latest versions of software, I don't see any ipv6 info on main
> > > screen.
> > 
> > Yes, there is still no IPv6 address. Only the DNS servers appear, if you
> > have IPv6 ones.
> > 
> > > 
> > > More importantly, I cannot get accounting to work for a second nic.
> > > 
> > 
> > Did you reboot the system? What gives the 'vnstat' cli?
> 
> Yes, it has been rebooted several times. 
> Vnstat shows nothing for the second nic (enp0s8). 
> 
> In network manager:
> disconnect 1st nic ( enp0s3 ).
> connect 2nd nic ( enp0s8 ).
> Reboot.
> vnstat shows enp0s3 only, enp0s8 is active.

So this is another bug, let's not pollute this bug report with it. You can look inside /etc/vnstat.conf first lines, they are commented.
Comment 15 james Whitby 2020-06-08 19:08:38 CEST
(In reply to José Jorge from comment #14)
<snip>

 (In reply to james Whitby from comment #13)
> > (In reply to José Jorge from comment #12)
>\> 
> So this is another bug, let's not pollute this bug report with it. You can
> look inside /etc/vnstat.conf first lines, they are commented.

Thanks, will do.
David Walser 2020-06-21 14:48:23 CEST

Version: Cauldron => 7

Comment 16 José Jorge 2020-06-27 18:56:24 CEST
Tested with my 64 bits family system. IPv6 connections are shown now.

Whiteboard: (none) => MGA7-64-OK

Comment 17 Thomas Andrews 2020-06-27 23:00:18 CEST
Validating. Advisory information in Comment 9.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Nicolas Lécureuil 2020-07-06 22:10:22 CEST

CC: (none) => mageia
Keywords: (none) => advisory

Comment 18 Mageia Robot 2020-07-06 22:43:46 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2020-0154.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.