byobu MONITORED_NETWORK wrong with card alias

Bug #685748 reported by lours974 Vitry David Gilbert
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
byobu (Ubuntu)
Fix Released
Medium
Dustin Kirkland 

Bug Description

Binary package hint: byobu

Hello,
I have ubuntu working on openvz container.

my ifconfig
====================================================
lo Link encap:Boucle locale
          inet adr:127.0.0.1 Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          Packets reçus:5 erreurs:0 :0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          Octets reçus:2880 (2.8 KB) Octets transmis:2880 (2.8 KB)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet adr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Masque:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
          Packets reçus:7144 erreurs:0 :0 overruns:0 frame:0
          TX packets:3504 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          Octets reçus:586743 (586.7 KB) Octets transmis:1351738 (1.3 MB)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet adr:XXXXXXXX P-t-P:XXXXXXXX Bcast:0.0.0.0 Masque:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
====================================================

I have installed byobu and put in ~/.byobu/statusrc

MONITORED_NETWORK=venet0:0

byobu only show 127.0.0.1 venet0 addr but not venet0:0
I have to modify /usr/lib/byobu/ip_address line 54:

ipaddr=$(LC_ALL=C /sbin/ip -4 addr list dev "$interface")
>by
ipaddr=$(LC_ALL=C /sbin/ip -4 addr list dev "$interface" | grep $interface )

And it works.

Thank

Related branches

description: updated
description: updated
Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Hi there!

Thanks for the bug and the suggested fix.

Can you please paste the output of:

LC_ALL=C /sbin/ip -4 addr list dev venet0:0

That should help verify a few things. Thanks!

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Actually, I found it ;-)

Just need to add "scope global", like this:

LC_ALL=C /sbin/ip -4 addr list dev "$interface" scope global

Changed in byobu (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Dustin Kirkland (kirkland)
Changed in byobu (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package byobu - 3.15-0ubuntu1

---------------
byobu (3.15-0ubuntu1) natty; urgency=low

  * usr/lib/byobu/raid: only match one raid rebuild (the first one)
  * debian/rules, usr/share/applications/byobu.desktop: try to get
    the icon working in Unity, LP: #683444
  * usr/share/byobu/keybindings/f-keys,
    usr/share/byobu/keybindings/screen-escape-keys,
    usr/share/man/man1/byobu.1: add some keybindings for better handling
    of screen splits, LP: #686847
  * usr/lib/byobu/ip_address: look for the ip address on global scope,
    helps with labeled and tagged interfaces, LP: #685748
 -- Dustin Kirkland <email address hidden> Tue, 07 Dec 2010 21:55:52 -0600

Changed in byobu (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.