Project

General

Profile

Bug #9384

devd putting "$" before variable contents when using single quotes

Added by Jim Pingle 7 months ago. Updated 19 days ago.

Status:
New
Priority:
Normal
Category:
Interfaces
Target version:
Start date:
03/06/2019
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.5.0
Affected Architecture:
All

Description

On 2.5.0 snapshots, when check_reload_status logs a linkup event, the message contains a $ before the interface name that does not appear to be necessary/relevant:

Mar 6 14:17:25     check_reload_status     357     Linkup starting $vmx1
Mar 6 14:17:25     check_reload_status     357     Linkup starting $vmx2
Mar 6 14:17:28     check_reload_status     357     Linkup starting $vmx3

Associated revisions

Revision de9df940 (diff)
Added by Jim Pingle 19 days ago

Trim bonus '$' added by devd bug. Works around issue #9384

History

#1 Updated by Jim Pingle 7 months ago

This also appears to affect rc.carpmaster (and rc.carpbackup), which is also run through pfSctl

Mar 15 11:34:23     php-fpm     321     /rc.carpmaster: HA cluster member "(2001:db8::11:11@vmx0): (WAN)" has resumed CARP state "MASTER" for vhid $11
Mar 15 11:34:24     php-fpm     321     /rc.carpmaster: HA cluster member "(2001:db8::11:11@vmx0): (WAN)" has resumed CARP state "MASTER" for vhid $15 

Also, not sure if it's related but the IP address printed for the VHID 11 line is incorrect.

    inet6 2001:db8::12 prefixlen 64 
    inet6 2001:db8::11 prefixlen 64 vhid 15 
    inet6 2001:db8::11:11 prefixlen 64 vhid 15 
    inet 198.51.100.12 netmask 0xffffff00 broadcast 198.51.100.255 
    inet 198.51.100.11 netmask 0xffffff00 broadcast 198.51.100.255 vhid 11 
    carp: MASTER vhid 11 advbase 1 advskew 0
    carp: MASTER vhid 15 advbase 1 advskew 0

#2 Updated by Jim Pingle 19 days ago

  • Subject changed from check_reload_status linkup log message has a "$" before the interface name to devd putting "$" before variable contents when using single quotes

Adjusted title. This is a devd issue, not anything wrong with check_reload_status. Also affects other systems like OpenVPN not starting on CARP VIPs, and probably anything else touched by devd.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240411

#3 Updated by Renato Botelho 19 days ago

  • Assignee set to Renato Botelho

Also available in: Atom PDF